Auxiliary constructor that uses defaults for width (w) and height (h).
Auxiliary constructor that uses defaults for width (w) and height (h).
the name of the source
the director controlling the model
the function to make entities of a specified type
the number of entities to make
the inter-arrival time distribution
the (x, y) coordinates for the top-left corner of the source.
the name of the source
the director controlling the model
the function to make entities of a specified type
indicator of the subtype of the entities to me made
the number of entities to make
the inter-arrival time distribution
the location of the source (x, y, w, h)
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)
Accumulate the value (e.g., number in queue) weighted by its time duration.
Accumulate the value (e.g., number in queue) weighted by its time duration.
the value to accumulate
The Sources as a special SimActor will act over time to make entities (other SimActors).
The activation time for the item in the time-ordered priority queue
The activation time for the item in the time-ordered priority queue
Add a zombie actor to add to queue of zombies.
Add a zombie actor to add to queue of zombies.
the zombie actor to add to queue
Aggregate the statistics of this component's subparts.
Aggregate the statistics of this component's subparts.
Return this actor's arrival/(re)-creation time.
Return this actor's arrival/(re)-creation time.
Return where this object is at (its location).
Return where this object is at (its location).
Clean-up all of the zombie actors for this source.
Clean-up all of the zombie actors for this source. The model should call this method after all replications have been run.
Compare the activation times of the two actors, 'this' and 'actror2'.
Compare the activation times of the two actors, 'this' and 'actror2'. Their activation times are used to order them in the director's agenda (a time-based priority queue).
the other actor to compare with this
Compare two items (PQItems) based on their actTime.
Compare two items (PQItems) based on their actTime.
the other item to compare with this item
Indicate whether this component is composite, i.e., has subparts.
Indicate whether this component is composite, i.e., has subparts.
Return the Coroutine counts.
Return the Coroutine counts.
Return the director who controls the play/simulation this component is in.
Return the director who controls the play/simulation this component is in.
Display this source as a node on the animation canvas.
Return sample statistics for durations for this component (e.g., Time in queue).
Return sample statistics for durations for this component (e.g., Time in queue).
Determine whether Identifiable object 'this' equals Identifiable object 'that'.
Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.
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 hashCode as the unique id.
Return the hashCode as the unique id.
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.
Sample statistics: all Component
s.
Time-persistent statistics: all except Gate
, Source
and Sink
.
the name of this component
Interrupt this waiting zombie coroutine.
Interrupt this waiting zombie coroutine.
Return whether this coroutine is a zombie.
Return whether this coroutine is a zombie.
Return the full identity.
Return the full identity.
Return the sim-actor's source.
Return the sim-actor's source.
Get the name.
Get the name.
Return time persistent statistics for value for this component (e.g.
Return time persistent statistics for value for this component (e.g. Number in queue).
Thread's 'run' method delegates to the 'act' method.
Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.
Schedule a reactivation of this SimActor delay time units in the future.
Schedule a reactivation of this SimActor delay time units in the future.
the time delay before reactivation
Set this actor's arrival/(re)-creation time.
Set this actor's arrival/(re)-creation time.
Set the location of this object.
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 sim-actor's source.
Set the sim-actor's source.
Set the name.
Set the sim-actor's subtype.
Set the value of the trajectory along the curve for this SimActor.
Set the value of the trajectory along the curve for this SimActor.
the new trajectory for the SimActor
Get the type of the simulation object.
Get the type of the simulation object.
Start this coroutine, i.e., invoke its 'run' -> 'act' method.
Start this coroutine, i.e., invoke its 'run' -> 'act' method.
List of subparts of the Component (empty for atomics, nonempty for composites)
List of subparts of the Component (empty for atomics, nonempty for composites)
Return the sim-actor's subtype.
Return the sim-actor's subtype.
Tally the duration (e.g., waiting time) of an activity or delay.
Tally the duration (e.g., waiting time) of an activity or delay.
the time duration
Show the SimActor's full name and activation time.
Return the current trajectory (along the Qcurve) of this SimActor.
Return the current trajectory (along the Qcurve) of this SimActor.
Yield control to the director so the director can take the next action.
Yield control to the director so the director can take the next action.
the flag indicating whether this actor is done
Yield control from 'this' to 'that' coroutine.
Yield control from 'this' to 'that' coroutine.
the other coroutine to yield control to
whether 'this' coroutine is to terminate (true) or wait to be resumed (false)
Zombify this coroutine.
Zombify this coroutine.
The
Source
class is used to periodically inject entities (SimActors
) into a running simulation model. May act as an arrival generator. Source is both a simulationComponent
and specialSimActor
and therefore runs in own thread.