Departure
Departure is a subclass of Event for handling departure events.
Value parameters
- customer
-
the entity that arrives, in this case a bank customer
- delay
-
the time delay for this event's occurrence
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Eventtrait Ordered[Event]trait Comparable[Event]trait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
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
Returns true if this is less than that
Returns true if this is less than that
Attributes
- Inherited from:
- Ordered
Returns true if this is less than or equal to that.
Returns true if this is less than or equal to that.
Attributes
- Inherited from:
- Ordered
Returns true if this is greater than that.
Returns true if this is greater than that.
Attributes
- Inherited from:
- Ordered
Returns true if this is greater than or equal to that.
Returns true if this is greater than or equal to that.
Attributes
- Inherited from:
- Ordered
Cancel 'this' event by marking it not live.
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
Result of comparing this with operand that.
Result of comparing this with operand that.
Attributes
- Inherited from:
- Ordered
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
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return whether this event is live (i.e., not cancelled).
Return the full identity.
Get the name.
Set the name.
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Get the type of the simulation object.
Inherited fields
The activation/occurrence time for the event
The globally unique integer identifier