Arrival
case
class Arrival(time: Long, rate: Distribution, simulationGenerator: SimulationRefGenerator, limit: Option[Int], count: Int) extends DiscreteEvent
Event used to model a repeating process.
An arrival rate is used to indicate when new instances of a simulation should be added to the coordinator.
- Value Params
- count
A counter of the next simulation instance that will be generated
- rate
The arrival rate of the simulation
- simulationGenerator
The simulation generator for getting new instances of a simulation
- time
The timestamp of the event
trait Serializable
trait Product
trait Equals
trait DiscreteEvent
trait Ordered[DiscreteEvent]
trait Comparable[DiscreteEvent]
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
Comparison method to order DiscreteEvents
Comparison method to order DiscreteEvents
Orders based on timestamp first (earlier first), class order second (lower first), and finally using sameClassCompare.
- Value Params
- that
Another event to compare to.
- Returns
The relative order of the events: lower means this event comes first
- Inherited from
- DiscreteEvent