Diameter of a token (for animating entities)
Diameter of a token (for animating entities)
Radius of a token (for animating entities)
Radius of a token (for animating entities)
The clock that keep track of the current simulation time
The clock that keep track of the current simulation time
Accumulate the value (e.
Accumulate the value (e.g., number in queue) weighted by its time duration.
the value to accumulate
the current time of the observation
The model itself is an Actor (not an ordinary SimActor) and may be thought of as the director.
The model itself is an Actor (not an ordinary SimActor) and may be thought of as the director. The director iteratively manages the clock and the agenda of actors until the simulation flag becomes false or the agenda becomes empty.
Add the component parts to the model.
Add the component parts to the model.
the component parts
Put a edge command on the animation queue.
Put a edge command on the animation queue.
who is being animated
what animation command
the color the edge
the shape of the edge
the location of the origination node
the location of the destination node
the location of the edge (empty array => implicitly determined)
Put a node/token command on the animation queue.
Put a node/token command on the animation queue.
who is being animated
what animation command
the color the node/token
the shape of the node/token
the location of the node/token
Animation execution flag
Animation execution flag
Return where this component is at (its location).
Return where this component is at (its location).
Return the current value of the director's clock.
Return the current value of the director's clock.
Return the director who controls the play/simulation this component is in.
Return the director who controls the play/simulation this component is in.
Put the components on the animation engine's queue.
Return sample statistics for durations for this component (e.
Return sample statistics for durations for this component (e.g., Time in queue).
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Return the statistical results of the simulation (statistics for each part).
Get the id (unique identifier).
Get the id (unique identifier).
Initialize this component (all of its vars).
Initialize this component (all of its vars).
the name of this component
the location of this component
Initialize this component's statistical collectors.
Initialize this component's statistical collectors.
the name of this component
Return the full identity.
Return the full identity.
Compare the order of actors based on their actTime.
Compare the order of actors based on their actTime.
the first actor in comparison
Return time persistent statistics for value for this component (e.
Return time persistent statistics for value for this component (e.g. Number in queue).
Report on the statistical results of the simulation.
Schedule (first time) or reschedule (subsequent times) an actor to act.
Schedule (first time) or reschedule (subsequent times) an actor to act.
the actor to be scheduled
Set the location of this component.
Set this component's director (the controller of the simulation model).
Set this component's director (the controller of the simulation model).
the director of the play/simulation
Set the name.
Get the type of the simulation object.
Get the type of the simulation object.
Execute the simulation (includes scheduling all Sources) returning summary statistics.
Simulation execution/termination flag
Simulation execution/termination flag
Tally the duration (e.
Tally the duration (e.g., waiting time) of an activity or delay.
the time duration
Return the current acting actor.
The Model class maintains a list of components making up the model and controls the flow of entities (SimActors) through the model, following the process-interaction world-view. It maintains a time-ordered priority queue to activate/re-activate each of the entities. Each entity (SimActor) is implemeneted as a Scala Actor and therefore runs in its own thread.