The Resource object is used to represent a pool of identical equipment or processor units.
The number of resource units is specified using the Capacity keyword, which can accept a constant value or an expression. If the number of units is allowed to vary, it is possible for the number of units in use to be greater than the present value for Capacity. If this situation occurs, the model continues normally and takes resource units out of service one-by-one as they are released. If the Capacity increases, the Resource attempts to make use of the additional capacity immediately.
Resource Inputs
Keyword |
Description |
Key Inputs |
|
Description |
A free-form string describing the object. |
StrictOrder |
If TRUE, the next entity to seize the resource will be chosen strictly on the basis of priority and waiting time. If this entity is unable to seize the resource because of other restrictions such as an OperatingThreshold input or the unavailability of other resources it needs to seize at the same time, then other entities with lower priority or shorter waiting time will NOT be allowed to seize the resource. If FALSE, the entities will be tested in the same order of priority and waiting time, but the first entity that is able to seize the resource will be allowed to do so. |
Capacity |
The number of equivalent resource units that are available. Only an integer number of resource units can be specified. A decimal value will be truncated to an integer. If the capacity changes during the simulation run, the Resource will attempt to use an increase in capacity as soon as it occurs. However, a decrease in capacity will have no affect on entities that have already seized Resource capacity. |
Options |
|
AttributeDefinitionList, CustomOutputList |
See Section 6.2. |
Graphics |
|
Position, Alignment, Size, Orientation, Region, RelativeEntity, DisplayModel, Show, Movable, VisibleViews, DrawRange |
See Section 11.1. |
Resource Outputs
Output Name |
Description |
Entity and DisplayEntity |
|
Name, ObjectType, SimTime, Parent, Attributes, Custom Outputs, Position, Size, Orientation, Alignment, GraphicalLength, ObserverList, NextList, PreviousList |
See Section 10.1. |
AbstractResourceProvider |
|
UserList |
The objects that can seize units from this resource. |
Capacity |
The total number of resource units that can be used. |
UnitsInUse |
The number of units that are in use. |
AvailableUnits |
The number of resource units that are not in use. |
UnitsSeized |
The number of units that have been seized. |
UnitsReleased |
The number of units that have been released. |
UnitsInUseAverage |
The average number of units that have been in use. |
UnitsInUseStandardDeviation |
The standard deviation of the number of units that have been in use. |
UnitsInUseMinimum |
The minimum number of units that have been in use. |
UnitsInUseMaximum |
The maximum number of units that have been in use. |
UnitsInUseTimes |
The total time that the number of resource units in use was 0, 1, 2, etc. |