scalation.simulation.event
Members list
Packages
Type members
Classlikes
The CausalLink
class provides casual links between events. A causal link indicates that a "causing event" (from node) conditionally may triggers a "caused event" (to node).
The CausalLink
class provides casual links between events. A causal link indicates that a "causing event" (from node) conditionally may triggers a "caused event" (to node).
Value parameters
- causedEvent
-
the event caused by this causal link
- condition
-
the condition under which the link is triggered
- director
-
the controller/scheduler that this causal link is a part of
- label
-
the name/label of the causal link
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Identifiableclass Objecttrait Matchableclass AnyShow all
The Entity
class represents a single simulation entity for event-scheduling simulation.
The Entity
class represents a single simulation entity for event-scheduling simulation.
Value parameters
- director
-
the controller/scheduler that this event is a part of
- iArrivalT
-
the time from the last arrival
- serviceT
-
the amount of time required for the entity's next service
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Identifiableclass Objecttrait Matchableclass AnyShow all
The Event
class provides facilities for defining simulation events. Subclasses of Event provide event-logic in their implementation of the 'occur' method. Note: unique identification is mixed in via the Identifiable
trait.
The Event
class provides facilities for defining simulation events. Subclasses of Event provide event-logic in their implementation of the 'occur' method. Note: unique identification is mixed in via the Identifiable
trait.
Value parameters
- delay
-
the time delay before this event's occurrence
- director
-
the controller/scheduler that this event is a part of
- entity
-
the entity involved in this event
- proto
-
the prototype (serves as node in animation) for this event
- stat
-
the object for collecting statistics about delay times
Attributes
- Supertypes
-
trait Ordered[Event]trait Comparable[Event]trait Identifiableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Arrivalclass Departureclass Arrivalclass Departureclass Arrivalclass Departureclass Arrivalclass Departureclass Arrivalclass Departureclass Arrivalclass Departureclass Arrivalclass FinishMachine1class FinishMachine2class Arrivalclass Arrivalclass EventNodeclass ArrivalShow all
The EventNode
class provides facilities for representing simulation events graphically. It extends the Event
class with animation capabilities. Note: unique identification is mixed in via the Identifiable
trait in the Event
superclass.
The EventNode
class provides facilities for representing simulation events graphically. It extends the Event
class with animation capabilities. Note: unique identification is mixed in via the Identifiable
trait in the Event
superclass.
Value parameters
- at
-
the location of this event node
- director
-
the controller/scheduler that this event node is a part of
Attributes
- Companion
- object
- Supertypes
-
class Eventtrait Ordered[Event]trait Comparable[Event]trait Identifiableclass Objecttrait Matchableclass AnyShow all
The EventNode
companion object provides a method for making a prototype entity. A prototype event or entity is thought to exist before the simulation starts.
The Model
class schedules events and implements the time advance mechanism for simulation model following the event-scheduling world view.
The Model
class schedules events and implements the time advance mechanism for simulation model following the event-scheduling world view.
Value parameters
- animating
-
whether to animate the model (only for Event Graphs)
- name
-
the name of the model
- reps
-
the number of independent replications to run (to be implemented)
Attributes
- Supertypes
- Known subtypes
-
class BankModelclass BankModel2class BankModel3class CallCenterModelclass CallCenterModel2class FastFoodModelclass MachineModelclass PoissonModelclass PoissonModel2class SOMEModelShow all
The SOMEModel
class defines a template for eveny-scheduling models.
The SOMEModel
class defines a template for eveny-scheduling models.
Value parameters
- nStop
-
the number arrivals before stopping
- name
-
the name of the simulation model
- reps
-
the number of independent replications to run
- stream
-
the base random number stream (0 to 999)
Attributes
- Supertypes
The WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times. When the queue is full, entities are 'barred' from entering the queue.
The WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times. When the queue is full, entities are 'barred' from entering the queue.
Value parameters
- cap
-
the capacity of the queue (defaults to unbounded)
- director
-
the controller/scheduler that this event is a part of
- ext
-
the extension to distinguish the wait queues
Attributes
- Supertypes
-
trait Productclass Queue[Entity]class ArrayDeque[Entity]trait DefaultSerializabletrait Serializabletrait IndexedBuffer[Entity]trait IndexedSeq[Entity]trait IndexedSeq[Entity]class AbstractBuffer[Entity]trait Buffer[Entity]trait Shrinkable[Entity]trait Growable[Entity]trait Clearableclass AbstractSeq[Entity]trait Seq[Entity]trait Cloneabletrait Iterable[Entity]class AbstractSeq[Entity]trait Seq[Entity]trait Equalsclass AbstractIterable[Entity]trait Iterable[Entity]trait IterableOnce[Entity]class Objecttrait Matchableclass AnyShow all
The WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times. When the queue is full, entities are 'barred' from entering the queue.
The WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times. When the queue is full, entities are 'barred' from entering the queue.
Value parameters
- cap
-
the capacity of the queue (defaults to unbounded)
- director
-
the controller/scheduler that this event is a part of
- ext
-
the extension to distinguish the wait queues
Attributes
- Supertypes
-
trait Productclass Stack[Entity]class ArrayDeque[Entity]trait DefaultSerializabletrait Serializabletrait IndexedBuffer[Entity]trait IndexedSeq[Entity]trait IndexedSeq[Entity]class AbstractBuffer[Entity]trait Buffer[Entity]trait Shrinkable[Entity]trait Growable[Entity]trait Clearableclass AbstractSeq[Entity]trait Seq[Entity]trait Cloneabletrait Iterable[Entity]class AbstractSeq[Entity]trait Seq[Entity]trait Equalsclass AbstractIterable[Entity]trait Iterable[Entity]trait IterableOnce[Entity]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
The runSOME
function is used to launch the SOMEModel
class. The code severs as a template for writing useful simulation models.
The runSOME
function is used to launch the SOMEModel
class. The code severs as a template for writing useful simulation models.
runMain scalation.simulation.event.runSOME