SOMEModel
The SOMEModel
class defines a template for eveny-scheduling models.
Value parameters
- nStop
-
the number arrivals before stopping
- name
-
the name of the simulation model
- reps
-
the number of independent replications to run
- stream
-
the base random number stream (0 to 999)
Attributes
- Graph
-
- Supertypes
Members list
Type members
Classlikes
Arrival
is a subclass of Event
for handling arrival events. The 'occur' method triggers future events and updates the current state.
Arrival
is a subclass of Event
for handling arrival events. The 'occur' method triggers future events and updates the current state.
Value parameters
- customer
-
the entity that arrives
- delay
-
the time delay for this event's occurrence
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Eventtrait Ordered[Event]trait Comparable[Event]trait Identifiableclass Objecttrait Matchableclass AnyShow all
Value members
Inherited methods
Add statistical collector to the model.
Add statistical collector to the model.
Value parameters
- stat
-
one or more statistical collectors
Attributes
- Inherited from:
- Model
Put a edge command on the animation queue.
Put a edge command on the animation queue.
Value parameters
- at
-
the location of the edge (empty array => implicitly determined)
- color
-
the color the edge
- from
-
the location of the origination node
- shape
-
the shape of the edge
- to
-
the location of the destination node
- what
-
what animation command
- who
-
who is being animated
Attributes
- Inherited from:
- Model
Put a node/token command on the animation queue.
Put a node/token command on the animation queue.
Value parameters
- at
-
the location of the node/token
- color
-
the color the node/token
- shape
-
the shape of the node/token
- what
-
what animation command
- who
-
who is being animated
Attributes
- Inherited from:
- Model
Cancel the specified 'event' so it will not occur.
Cancel the specified 'event' so it will not occur.
Value parameters
- event
-
the event to cancel
Attributes
- Inherited from:
- Model
Return the current value of the director's clock.
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 statistical results of the simulation (statistics for each part).
Return the statistical results of the simulation (statistics for each part).
Attributes
- Inherited from:
- Model
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Leave the model recording the entity's time in the sYstem.
Leave the model recording the entity's time in the sYstem.
Value parameters
- entity
-
the entity leaving the model
Attributes
- Inherited from:
- Model
Return the full identity.
Set the name.
Report values of the specified model result/output variables.
Report values of the specified model result/output variables.
Value parameters
- vars
-
the result/output variables for the simulation
Attributes
- Inherited from:
- Model
Report statistical results of the simulation for all the collectors.
Report statistical results of the simulation for all the collectors.
Attributes
- Inherited from:
- Model
Place an event on the Future Event List 'FEL' for later execution, thus scheduling the event to occur sometime in the future. Events are ordered by their event/act time.
Place an event on the Future Event List 'FEL' for later execution, thus scheduling the event to occur sometime in the future. Events are ordered by their event/act time.
Value parameters
- event
-
the event to schedule
Attributes
- Inherited from:
- Model
Get the type of the simulation object.
Run the simulation by iteratively processing events in time order. Requires at least one to already be scheduled (see next method).
Run the simulation by iteratively processing events in time order. Requires at least one to already be scheduled (see next method).
Value parameters
- startTime
-
the time at which the simulation is to begin
Attributes
- Inherited from:
- Model
Concrete fields
Inherited fields
The clock that keep track of the current simulation time
The globally unique integer identifier
Simulation execution/termination flag