The Resource
class provides services to entities (SimAgents
).
Value parameters
- director
-
the
Model
directing the simulation - name
-
the name of this server
- pos
-
the Euclidean coordinates of this server
- prop
-
the properties of this server
- serviceRV
-
the service time random variate
- units
-
the number of service units (e.g., bank tellers)
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Statisticalclass Vertextrait Serializabletrait Spatialtrait PartiallyOrdered[Vertex]trait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- PartiallyOrdered
Value members
Concrete methods
Determine whether this resource is busy (no units available).
Determine whether this resource is busy (no units available).
Attributes
Change the number of units in this resource (e.g., add a teller).
Change the number of units in this resource (e.g., add a teller).
Value parameters
- dUnits
-
the number of units to add (+ve) or remove (-ve)
Attributes
Release one unit of this server after work is finished.
Release one unit of this server after work is finished.
Value parameters
- agent
-
the agent who is finished working with this server
Attributes
Work with one unit of this server for a period of time (models an activity).
Work with one unit of this server for a period of time (models an activity).
Value parameters
- agent
-
the agent who is working with this server
- duration
-
the agent's given service time (defaults to serviceRV)
Attributes
Inherited methods
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
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:
- Statistical
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 center coordinates for this vertex.
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return the full identity.
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:
- Statistical
Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).
Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).
Value parameters
- factor
-
the space rescaling factor
Attributes
- Inherited from:
- Spatial
SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width
SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width
Attributes
- Inherited from:
- Vertex
Get the type of the object.