Movable Resource Pool
A MovableResourcePool represents a list of movable resources from which resources can be selected to fill requests made by Entities.
Resources are selected according to a ResourceSelectionRule. The assumption is that any of the resources within the pool may be used to fill the request.
If no selection rule is supplied the pool selects a list of resources that can fully satisfy the request. The default allocation rule is to allocate the movable resource that is closest to the entity.
If no default rules are supplied, the first available movable resource is selected based on the order of the resources supplied.
Author
rossetti
Parameters
the parent model element
a list of resources to be included in the pool
the default velocity fore all resources to use.
the name of the pool
Inheritors
Constructors
Properties
Functions
Adds a movable resource to the pool. The model must not be running when adding a resource.
For use, before calling allocate()
This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called
A trigger for a movable resource of this pool, for use in a wait for the first of several things (waitForFirst). As the trigger of a resource pool, for one unit. A null requestLocation means the entity's location when the wait starts, which is what seize uses by default.
Uses the pool's resource selection rule to select resources from those that are available that have enough units available to satisfy the request in full. If there are insufficient resources in the pool to satisfy the full amount, then the returned list will be empty. In general, the returned list may have more units available than the requested amount.