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 resource
the line/queue where entities wait
the number of service units (e.g., bank tellers)
the service time distribution
the (x, y) coordinates for the top-left corner of the resourse.
the name of the resource
the line/queue where entities wait
the number of service units (e.g., bank tellers)
the service time distribution
the location of the resource (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.
Accumulate the value (e.g., number in queue) weighted by its time duration.
the value to accumulate
Aggregate the statistics of this component's subparts.
Aggregate the statistics of this component's subparts.
Return where this object is at (its location).
Return where this object is at (its location).
Determine whether the Resource is busy (no units available).
Change the number of units in this resourse (e.
Change the number of units in this resourse (e.g., add a teller).
the number of units to add (+ve) or remove (-ve)
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 Resource.
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
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 Resource after service is finished (also check waiting queue).
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.
Get the type of the simulation object.
Get the type of the simulation object.
List of subparts of the Component (empty for atomics, nonempty for composites)
List of subparts of the Component (empty for atomics, nonempty for composites)
Tally the duration (e.
Tally the duration (e.g., waiting time) of an activity or delay.
the time duration
Utilize the Resource for a given period of time (models an activity).
Utilize the Resource for a given period of time (models an activity).
the given service time
Utilize the Resource for a period of time (models an activity).
Utilize the Resource for a period of time (models an activity). The duration (service time) is randomly generated according to the Resource's service time distribution.
The
Resource
class provides services to entities (SimActors
). It may or may not have an associated waiting queue.