Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danslimmon/qsim
/ types & classes
Types & classes
25 in github.com/danslimmon/qsim
⨍
Functions
157
◇
Types & classes
25
↓ 1 callers
TypeAlias
ByQueueLength
ByQueueLength implements sort.Interface for []*Queue based on Length.
arrbeh.go:284
Struct
AlwaysQueueArrBeh
AlwaysQueueArrBeh always puts incoming jobs in the given queue. Processors don't even enter into it.
arrbeh.go:181
Interface
ArrBeh
An ArrBeh ("arrival behavior") assigns new jobs to queues or processors.
arrbeh.go:9
Interface
ArrProc
An ArrProc (short for "arrival process") generates new Jobs at some interval.
arrproc.go:8
Struct
Assignment
An Assignment indicates where a Job has been assigned by an Arrival Behavior. The string Type will be either "Processor" or "Queue", and the correspo
arrbeh.go:277
Struct
BlogSystem
To run a simulation, you have to implement the System interface: https://godoc.org/github.com/danslimmon/qsim#System
examples/blog/blog.go:19
Struct
BloodBankArrProc
examples/bloodbank/bloodbank.go:14
Struct
BloodBankSystem
examples/bloodbank/bloodbank.go:63
Struct
ConstantArrProc
ConstantArrProc generates jobs at a constant interval. It implements the ArrProc interface.
arrproc.go:17
Interface
Discipline
discipline.go:3
Struct
GrocerySystem
To run a simulation, you have to implement the System interface: https://godoc.org/github.com/danslimmon/qsim#System
grocery_test.go:12
Struct
Job
A Job is the object that passes through a queueing system.
job.go:8
Struct
OneToOneFIFODiscipline
OneToOneFIFODiscipline moves Jobs from Queues to Processors based on the following algorithm: – There is a one-to-one relationship between Queues and
discipline.go:13
Struct
PoissonArrProc
PoissonArrProc generates jobs according to a Poisson process. This means that the distribution of intervals between arrivals is an exponential distrib
arrproc.go:85
Struct
PortaPottySystem
examples/portapotty/portapotty.go:11
Struct
Processor
A Processor is the piece of the queueing system that processes jobs.
processor.go:8
Struct
Queue
A Queue holds Jobs until they're ready for processing.
queue.go:4
Struct
Schedule
Schedule holds simEvents in the order that they need to be run. Events that have already occurred are removed.
simulation.go:13
Struct
ShortestQueueArrBeh
ShortestQueueArrBeh implements the ArrBeh interface, assigning new Jobs by the following algorithm: – If there is at least one idle Processor, pick a
arrbeh.go:27
Interface
System
A System is the thing you simulate. You implement this interface and pass your implementation to RunSimulation().
simulation.go:78
Struct
bloodBankResult
examples/bloodbank/bloodbank_test.go:13
Struct
recvExpectation
simulation_test.go:14
Struct
simEvent
An event scheduled to occur in the simulation We'll run the function F at tick Time. F will be called at time Time with the current clock time as its
simulation.go:6
Struct
simResult
examples/bloodbank/bloodbank.go:268
Struct
simResult
examples/portapotty/portapotty.go:250