MCPcopy Create free account

hub / github.com/danslimmon/qsim / functions

Functions157 in github.com/danslimmon/qsim

MethodBeforeAssign
BeforeAssign adds a callback to run immediately before the Arrival Behavior assigns a job to a Queue or Processor. This callback is passed the ArrBeh
arrbeh.go:228
MethodBeforeEvents
BeforeEvents runs at every tick when a simulation event happens (a Job arrives in the system, or a Job finishes processing and leaves the system). Bef
grocery_test.go:86
MethodBeforeEvents
(clock int)
examples/blog/blog.go:72
MethodBeforeEvents
BeforeEvents runs at every tick when a simulation event happens (a Job arrives in the system, or a Job finishes processing and leaves the system). Bef
examples/bloodbank/bloodbank.go:180
MethodBeforeEvents
BeforeEvents runs at every tick when a simulation event happens (a Job arrives in the system, or a Job finishes processing and leaves the system). Bef
examples/portapotty/portapotty.go:151
MethodBeforeFirstTick
()
grocery_test.go:77
MethodBeforeFirstTick
()
examples/blog/blog.go:65
MethodBeforeFirstTick
BeforeRun runs right before the clock starts.
examples/bloodbank/bloodbank.go:169
MethodBeforeFirstTick
()
examples/portapotty/portapotty.go:145
MethodInit
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
grocery_test.go:34
MethodInit
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
examples/blog/blog.go:39
MethodInit
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors. Ticks represent minutes.
examples/bloodbank/bloodbank.go:107
MethodInit
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
examples/portapotty/portapotty.go:37
MethodLen
()
arrbeh.go:286
MethodLess
(i, j int)
arrbeh.go:288
FunctionNewAlwaysQueueArrBeh
NewAlwaysQueueArrBeh initializes a AlwaysQueueArrBeh with the given Queue.
arrbeh.go:256
MethodOccupancy
Occupancy returns the total number of Jobs in the system.
examples/portapotty/portapotty.go:126
MethodProcessors
Processors returns the list of Processors in the system.
grocery_test.go:117
MethodProcessors
Processors returns the list of Processors in the system.
examples/blog/blog.go:68
MethodProcessors
Processors returns the list of Processors in the system.
examples/bloodbank/bloodbank.go:164
MethodProcessors
Processors returns the list of Processors in the system.
examples/portapotty/portapotty.go:141
MethodSwap
(i, j int)
arrbeh.go:287
FunctionTestAfterFinish
Tests the AfterFinish callback
processor_test.go:196
FunctionTestAfterStart
Tests the AfterStart callback
processor_test.go:116
FunctionTestBeforeFinish
Tests the BeforeFinish callback
processor_test.go:157
FunctionTestBeforeStart
Tests the BeforeStart callback
processor_test.go:77
FunctionTestBloodBankHighDrawRate
Tests the limiting case where our maximum daily draw rate is very high. In this case, we expect a low number of aborted transfusions, a high number o
examples/bloodbank/bloodbank_test.go:133
FunctionTestBloodBankLowDrawRate
Tests the limiting case where our maximum daily draw rate is very low. In this case, we expect a high number of aborted transfusions, a low number of
examples/bloodbank/bloodbank_test.go:92
FunctionTestConstantArrProc
Tests a dead-simple Arrival Process
arrproc_test.go:8
FunctionTestConstantArrProcAfterArrive
Tests the AfterArrive callback on ConstantArrProc.
arrproc_test.go:54
FunctionTestConstantArrProcBeforeArrive
Tests the BeforeArrive callback on ConstantArrProc.
arrproc_test.go:36
FunctionTestGrocery
Simulates a small grocery store checkout line: – Customers arrive at the checkout line by a Poisson process (i.e. the distribution of the time betwee
grocery_test.go:151
FunctionTestJobId
Tests that JobId is set to a random nonnegative 63-bit integer.
job_test.go:8
FunctionTestOneToOneFIFODiscipline
Tests the behavior of a OneToOneFIFODiscipline
discipline_test.go:8
FunctionTestPoissonArrProc
Tests a Poisson Arrival Process
arrproc_test.go:94
FunctionTestProcessorFinish
Tests the finishing of a job
processor_test.go:57
FunctionTestProcessorStart
Tests the starting of a job
processor_test.go:13
FunctionTestQueueAfterAppend
Tests the AfterAppend callback.
queue_test.go:162
FunctionTestQueueAfterAppendWithMaxLength
Tests the behavior of AfterAppend when appending against a MaxLength
queue_test.go:541
FunctionTestQueueAfterRemove
Tests the AfterRemove callback.
queue_test.go:392
FunctionTestQueueAfterShift
Tests the AfterShift callback.
queue_test.go:259
FunctionTestQueueAppend
Tests serial queue insertion
queue_test.go:8
FunctionTestQueueAppendWithMaxLength
Tests queue insertion with a MaxLength
queue_test.go:468
FunctionTestQueueBeforeAppend
Tests the BeforeAppend callback.
queue_test.go:122
FunctionTestQueueBeforeRemove
Tests the BeforeRemove callback.
queue_test.go:316
FunctionTestQueueBeforeShift
Tests the BeforeShift callback.
queue_test.go:202
FunctionTestQueueRemove
Tests the behavior of removing particular items from the queue.
queue_test.go:78
FunctionTestQueueShift
Tests the behavior of shifting items out of the queue.
queue_test.go:35
FunctionTestSchedule
(t *testing.T)
simulation_test.go:7
FunctionTestShortestQueueArrBeh
(t *testing.T)
arrbeh_test.go:7
FunctionTestShortestQueueArrBehAfterAssign
(t *testing.T)
arrbeh_test.go:207
FunctionTestShortestQueueArrBehBeforeAssign
(t *testing.T)
arrbeh_test.go:118
FunctionTestShortestQueueArrBehBeforeAssignWithOverride
Makes sure that BeforeAssign callbacks can override the ArrBeh's assignment logic.
arrbeh_test.go:158
Functionmain
()
examples/blog/blog.go:83
Functionmain
()
examples/bloodbank/bloodbank.go:381
Functionmain
()
examples/portapotty/portapotty.go:314
FunctionsimplePtg
A simple ProcTimeGenerator function that returns a constant
processor_test.go:8
← previous101–157 of 157, ranked by callers