package event
The event
package contains classes, traits and objects for event oriented
simulation models (for example, event scheduling or event graphs).
- Alphabetic
- By Inheritance
- event
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
CausalLink(label: String, director: Model, condition: () ⇒ Boolean, causedEvent: Event) extends Identifiable with Product with Serializable
The
CausalLink
class provides casual links between events.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).- label
the name/label of the causal link
- director
the controller/scheduler that this causal link is a part of
- condition
the condition under which the link is triggered
- causedEvent
the event caused by this causal link
-
case class
Entity(iArrivalT: Double, serviceT: Double, director: Model) extends Product with Serializable
The
Entity
class represents a single simulation entity for event-scheduling simulation.The
Entity
class represents a single simulation entity for event-scheduling simulation.- iArrivalT
the time from the last arrival
- serviceT
the amount of time required for the entity's next service
- director
the controller/scheduler that this event is a part of
-
abstract
class
Event extends Identifiable with Ordered[Event]
The
Event
class provides facilities for defining simulation events.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 theIdentifiable
trait. -
class
EventNode extends Event
The
EventNode
class provides facilities for representing simulation events graphically.The
EventNode
class provides facilities for representing simulation events graphically. It extends theEvent
class with animation capabilities. Note: unique identification is mixed in via theIdentifiable
trait in theEvent
superclass. -
class
Model extends Modelable with Identifiable
The
Model
class schedules events and implements the time advance mechanism for simulation model following the event-scheduling world view. -
case class
WaitQueue(director: Model, ext: String = "", cap: Int = Int.MaxValue) extends Queue[Entity] with Product with Serializable
The
WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times.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.- director
the controller/scheduler that this event is a part of
- ext
the extension to distinguish the wait queues
- cap
the capacity of the queue (defaults to unbounded)
Value Members
-
object
Entity extends Serializable
The
Entity
companion object provides a counter for generating entity ids. -
object
EventNode
The
EventNode
companion object provides a method for making a prototype entity.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. -
object
ModelTest extends App
The
ModelTest
object is used to test theModel
class.The
ModelTest
object is used to test theModel
class. > runMain scalation.event.ModelTest