The VSource
class is used to periodically inject entities (Vehicle
s) into a running simulation model. May act as an arrival generator. VSource is both a simulation Component
and special SimActor
and therefore runs in own thread.
Value parameters
- director
-
the director controlling the model
- esubtype
-
indicator of the subtype of the entities to be made
- iArrivalTime
-
the inter-arrival time distribution
- loc
-
the location of the source (x, y, w, h)
- makeEntity
-
the function to make entities of a specified type
- name
-
the name of the source
- units
-
the number of entities to make
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
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.
Value parameters
- value
-
the value to accumulate
Attributes
- Inherited from:
- Component
Aggregate the statistics of this component's subparts.
Get the location where this object is currently at.
Set the location of this object.
Set the location of this object.
Value parameters
- at
-
the location of this object
Attributes
- Inherited from:
- Locatable
Compare the activation times of the two actors, this and actor2. Their activation times are used to order them in the director's agenda (a time-based priority queue).
Compare the activation times of the two actors, this and actor2. Their activation times are used to order them in the director's agenda (a time-based priority queue).
Value parameters
- actor2
-
the other actor to compare with this
Attributes
- Inherited from:
- SimActor
Compare two temporal objects based on their actTime.
Compare two temporal objects based on their actTime.
Value parameters
- other
-
the other item to compare with this item
Attributes
- Inherited from:
- Temporal
Indicate whether this component is composite, i.e., has subparts.
Indicate whether this component is composite, i.e., has subparts.
Attributes
- Inherited from:
- Component
Return the Coroutine counts.
Set this component's director (the controller of the simulation model).
Set this component's director (the controller of the simulation model).
Value parameters
- director
-
the director of the play/simulation
Attributes
- Inherited from:
- Component
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).
Attributes
- Inherited from:
- Component
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
Initialize this component (all of its 'var's).
Initialize this component (all of its 'var's).
Value parameters
- label
-
the name of this component
- loc
-
the location of this component
Attributes
- Inherited from:
- Component
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Value parameters
- label
-
the name of this component
Attributes
- Inherited from:
- Component
Interrupt this waiting coroutine.
Check this thread to see if it is virtual.
Return the full identity.
Set the name.
Return time persistent statistics for value for this component (e.g. Number in queue).
Return time persistent statistics for value for this component (e.g. Number in queue).
Attributes
- Inherited from:
- Component
Record the entity and optionally its speed.
Record the entity and optionally its speed.
Value parameters
- ctime
-
the clock time the entity entered the component (e.g., Sink)
- speed
-
the speed at which entity entered the component (e.g., Sink)
Attributes
- Inherited from:
- Recorder
For multiple sources and more than one replication otherwise, after one replication, all the sources are already started the first source from agenda will be invoked by the yield to null but the second resource from the won't so needs to be reset
For multiple sources and more than one replication otherwise, after one replication, all the sources are already started the first source from agenda will be invoked by the yield to null but the second resource from the won't so needs to be reset
Attributes
- Inherited from:
- Coroutine
Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.
Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.
Attributes
- Inherited from:
- Coroutine
Schedule a reactivation of this SimActor
delay time units in the future.
Schedule a reactivation of this SimActor
delay time units in the future.
Value parameters
- delay
-
the time delay before reactivation
Attributes
- Inherited from:
- SimActor
Get the type of the simulation object.
Start this coroutine, i.e., invoke its 'run' -> 'act' method.
Tally the duration (e.g., waiting time) of an activity or delay.
Tally the duration (e.g., waiting time) of an activity or delay.
Value parameters
- duration
-
the time duration
Attributes
- Inherited from:
- Component
Get the current trajectory (along the QCurve
) of this SimActor
.
Set the value of the trajectory along the QCurve
for this SimActor
.
Set the value of the trajectory along the QCurve
for this SimActor
.
Value parameters
- t
-
the new trajectory for the
SimActor
Attributes
- Inherited from:
- 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.
Value parameters
- quit
-
the flag indicating whether this actor is done
Attributes
- Inherited from:
- SimActor
Yield control from 'this' to 'that' coroutine.
Yield control from 'this' to 'that' coroutine.
Value parameters
- quit
-
whether 'this' coroutine is to terminate (true) or wait to be resumed (false)
- that
-
the other coroutine to yield control to
Attributes
- Inherited from:
- Coroutine
Inherited fields
The activation time for the temporal object
The globally unique integer identifier
Attributes
- Inherited from:
- SimActor