Abstract Resource Pool
An abstract base class that represents a pool of resources (or subclasses of Resource).
Inheritors
Properties
If a(t) is greater than zero
The pool is considered in active if all of its associated resources are inactive
The resources that the resource pool contains
If c(t) is the current capacity and b(t) is the current number busy, then a(t) = c(t) - b(t) is the current number of available units. Under some capacity change situations, a(t) may be negative.
Functions
Adds a resource to the pool. The model must not be running when adding a resource.
This method should be overridden by subclasses that need actions performed when the replication ends and prior to the calling of afterReplication(). It is called when each replication ends and can be used to collect data from the model element, etc.