Auxiliary constructor that uses defaults for width (w) and heigth (h).
Auxiliary constructor that uses defaults for width (w) and heigth (h).
the name of the gate
the model/container for this gate
the queue holding entities waiting for this gate to open
number of units/phases of operation
distribution of time that gate will be open
distribution of time that gate will be closed
the (x, y) coordinates for the top-left corner of the sink.
boolean indicating if the gate is initially opened or closed
the maximum number of entities that will be released when the gate is opened
the name of the gate
the model/container for this gate
the queue holding entities waiting for this gate to open
number of units/phases of operation
distribution of time that gate will be open
distribution of time that gate will be closed
the location of the Gate (x, y, w, h)
boolean indicating if the gate is initially opened or closed
the maximum number of entities that will be released when the gate is opened
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.
Accumulate the value (e.g., number in queue) weighted by its time duration.
the value to accumulate
Specifies how the gate is controlled.
The activation time for the item in the time-ordered priority queue
The activation time for the item in the time-ordered priority queue
Aggregate the statistics of this component's subparts.
Aggregate the statistics of this component's subparts.
The time at which the entity/sim-actor arrived
The time at which the entity/sim-actor arrived
Return where this object is at (its location).
Return where this object is at (its location).
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.
Indicate whether this component is composite, i.e., has subparts.
Return the director who controls the play/simulation this component is in.
Return the director who controls the play/simulation this component is in.
Tell the animation engine to display this Gate.
Returns a Double for the amount of time the gate should stay open or closed based on whether or not the gate is open or closed
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
Toggles the value of shut.
Return the current color of the gate which indicates (within the animation) whether the gate is open or closed.
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
Return the full identity.
Return the full identity.
Get the name.
Get the name.
Return time persistent statistics for value for this component (e.
Return time persistent statistics for value for this component (e.g. Number in queue).
Release the Gate after service is finished (also check waiting queue).
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 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 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
Return whether the gate is shut (e.
Return whether the gate is shut (e.g., traffic light is red).
Get the type of the simulation object.
Get the type of the simulation object.
Start this coroutine, i.
Start this coroutine, i.e., invoke its '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.
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 to the 'other' coroutine.
Yield control to the 'other' coroutine.
the other coroutine to yield control to
whether to wait via a receive or quit via exit
The
Gate
class models the operation of gate that can open and shut. When the gate is open, entities can flow through and when shut, they cannot. They may wait in a queue or go elsewhere. A gate can model a traffic light (green => open, red => shut).