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 Ordered[DiscreteEvent]
trait Comparable[DiscreteEvent]
class Object
trait Matchable
class Any

Value members

Concrete methods

def next(): Arrival

Generates the next arrival event to be queued.

Generates the next arrival event to be queued.

Returns

The next arrival event.

override
Definition Classes

Inherited methods

def <(that: DiscreteEvent): Boolean
Inherited from
Ordered
def <=(that: DiscreteEvent): Boolean
Inherited from
Ordered
def >(that: DiscreteEvent): Boolean
Inherited from
Ordered
def >=(that: DiscreteEvent): Boolean
Inherited from
Ordered
def compare(that: DiscreteEvent): Int

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
def compareTo(that: DiscreteEvent): Int
Inherited from
Ordered
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

override
val classOrder: Short