Arrival

scalation.simulation.event.example_1.CallCenterModel2.Arrival
case class Arrival(call: Entity, delay: Double) extends Event

Arrival is a subclass of Event for handling arrival events Make-a-Call.

Value parameters

call

the entity that arrives, in this case a phone call

delay

the time delay for this event's occurrence

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Event
trait Ordered[Event]
trait Comparable[Event]
trait Identifiable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def occur(): Unit

Execute this event where the event-logic is specified in the 'occur' method. This method is abstract, so it must be implemented in subclasses and it (1) may schedule other events and (2) may specify state changes.

Execute this event where the event-logic is specified in the 'occur' method. This method is abstract, so it must be implemented in subclasses and it (1) may schedule other events and (2) may specify state changes.

Attributes

Inherited methods

def <(that: Event): Boolean

Attributes

Inherited from:
Ordered
def <=(that: Event): Boolean

Attributes

Inherited from:
Ordered
def >(that: Event): Boolean

Attributes

Inherited from:
Ordered
def >=(that: Event): Boolean

Attributes

Inherited from:
Ordered
def cancel(): Unit

Cancel 'this' event by marking it not live.

Cancel 'this' event by marking it not live.

Attributes

Inherited from:
Event
def compare(ev: Event): Int

Compare the activation times (actTime) of the two events ('ev' and 'this'). Note: the order is reversed since Scala's Priority Queue is Highest Priority First (HPF).

Compare the activation times (actTime) of the two events ('ev' and 'this'). Note: the order is reversed since Scala's Priority Queue is Highest Priority First (HPF).

Value parameters

ev

the other event

Attributes

Inherited from:
Event
def compareTo(that: Event): Int

Attributes

Inherited from:
Ordered
override def equals(that: Any): Boolean

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
override def hashCode: Int

Return the hashCode as the unique id.

Return the hashCode as the unique id.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
def live: Boolean

Return whether this event is live (i.e., not cancelled).

Return whether this event is live (i.e., not cancelled).

Attributes

Inherited from:
Event
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def name: String

Get the name.

Get the name.

Attributes

Inherited from:
Identifiable
def name_=(name: String): Unit

Set the name.

Set the name.

Value parameters

name

the name to assign

Attributes

Inherited from:
Identifiable
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def simType: String

Get the type of the simulation object.

Get the type of the simulation object.

Attributes

Inherited from:
Identifiable
override def toString: String

Convert the event to a string.

Convert the event to a string.

Attributes

Definition Classes
Event -> Any
Inherited from:
Event

Inherited fields

val actTime: Double

The activation/occurrence time for the event

The activation/occurrence time for the event

Attributes

Inherited from:
Event
val entity: Entity

Attributes

Inherited from:
Event
val id: Int

The globally unique integer identifier

The globally unique integer identifier

Attributes

Inherited from:
Identifiable

Attributes

Inherited from:
Event