Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danslimmon/qsim
/ functions
Functions
157 in github.com/danslimmon/qsim
⨍
Functions
157
◇
Types & classes
25
Method
BeforeAssign
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
Method
BeforeEvents
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
Method
BeforeEvents
(clock int)
examples/blog/blog.go:72
Method
BeforeEvents
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
Method
BeforeEvents
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
Method
BeforeFirstTick
()
grocery_test.go:77
Method
BeforeFirstTick
()
examples/blog/blog.go:65
Method
BeforeFirstTick
BeforeRun runs right before the clock starts.
examples/bloodbank/bloodbank.go:169
Method
BeforeFirstTick
()
examples/portapotty/portapotty.go:145
Method
Init
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
grocery_test.go:34
Method
Init
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
examples/blog/blog.go:39
Method
Init
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
Method
Init
Init runs before the simulation begins, and its job is to set up the queues, processors, and behaviors.
examples/portapotty/portapotty.go:37
Method
Len
()
arrbeh.go:286
Method
Less
(i, j int)
arrbeh.go:288
Function
NewAlwaysQueueArrBeh
NewAlwaysQueueArrBeh initializes a AlwaysQueueArrBeh with the given Queue.
arrbeh.go:256
Method
Occupancy
Occupancy returns the total number of Jobs in the system.
examples/portapotty/portapotty.go:126
Method
Processors
Processors returns the list of Processors in the system.
grocery_test.go:117
Method
Processors
Processors returns the list of Processors in the system.
examples/blog/blog.go:68
Method
Processors
Processors returns the list of Processors in the system.
examples/bloodbank/bloodbank.go:164
Method
Processors
Processors returns the list of Processors in the system.
examples/portapotty/portapotty.go:141
Method
Swap
(i, j int)
arrbeh.go:287
Function
TestAfterFinish
Tests the AfterFinish callback
processor_test.go:196
Function
TestAfterStart
Tests the AfterStart callback
processor_test.go:116
Function
TestBeforeFinish
Tests the BeforeFinish callback
processor_test.go:157
Function
TestBeforeStart
Tests the BeforeStart callback
processor_test.go:77
Function
TestBloodBankHighDrawRate
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
Function
TestBloodBankLowDrawRate
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
Function
TestConstantArrProc
Tests a dead-simple Arrival Process
arrproc_test.go:8
Function
TestConstantArrProcAfterArrive
Tests the AfterArrive callback on ConstantArrProc.
arrproc_test.go:54
Function
TestConstantArrProcBeforeArrive
Tests the BeforeArrive callback on ConstantArrProc.
arrproc_test.go:36
Function
TestGrocery
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
Function
TestJobId
Tests that JobId is set to a random nonnegative 63-bit integer.
job_test.go:8
Function
TestOneToOneFIFODiscipline
Tests the behavior of a OneToOneFIFODiscipline
discipline_test.go:8
Function
TestPoissonArrProc
Tests a Poisson Arrival Process
arrproc_test.go:94
Function
TestProcessorFinish
Tests the finishing of a job
processor_test.go:57
Function
TestProcessorStart
Tests the starting of a job
processor_test.go:13
Function
TestQueueAfterAppend
Tests the AfterAppend callback.
queue_test.go:162
Function
TestQueueAfterAppendWithMaxLength
Tests the behavior of AfterAppend when appending against a MaxLength
queue_test.go:541
Function
TestQueueAfterRemove
Tests the AfterRemove callback.
queue_test.go:392
Function
TestQueueAfterShift
Tests the AfterShift callback.
queue_test.go:259
Function
TestQueueAppend
Tests serial queue insertion
queue_test.go:8
Function
TestQueueAppendWithMaxLength
Tests queue insertion with a MaxLength
queue_test.go:468
Function
TestQueueBeforeAppend
Tests the BeforeAppend callback.
queue_test.go:122
Function
TestQueueBeforeRemove
Tests the BeforeRemove callback.
queue_test.go:316
Function
TestQueueBeforeShift
Tests the BeforeShift callback.
queue_test.go:202
Function
TestQueueRemove
Tests the behavior of removing particular items from the queue.
queue_test.go:78
Function
TestQueueShift
Tests the behavior of shifting items out of the queue.
queue_test.go:35
Function
TestSchedule
(t *testing.T)
simulation_test.go:7
Function
TestShortestQueueArrBeh
(t *testing.T)
arrbeh_test.go:7
Function
TestShortestQueueArrBehAfterAssign
(t *testing.T)
arrbeh_test.go:207
Function
TestShortestQueueArrBehBeforeAssign
(t *testing.T)
arrbeh_test.go:118
Function
TestShortestQueueArrBehBeforeAssignWithOverride
Makes sure that BeforeAssign callbacks can override the ArrBeh's assignment logic.
arrbeh_test.go:158
Function
main
()
examples/blog/blog.go:83
Function
main
()
examples/bloodbank/bloodbank.go:381
Function
main
()
examples/portapotty/portapotty.go:314
Function
simplePtg
A simple ProcTimeGenerator function that returns a constant
processor_test.go:8
← previous
101–157 of 157, ranked by callers