Movable Resource
A movable resource is a single unit capacity resource that resides within a spatial model and thus can be moved.
Parameters
the parent model element
the initial starting location of the resource within the spatial model
the default velocity for movement within the spatial model
the name of the resource
Inheritors
Constructors
Properties
The initial capacity of the resource at the start of the replication. The initial capacity must be greater than 0.
True indicates that the movable resource is in the process of returning to its home base.
A value for the velocity. May be random
Functions
Allows the adding (attaching) of an observer to the observable
Returns how many observers are currently attached to the observable
Detaches all the observers from the observable
Allows the deletion (removing) of an observer from the observable
Returns true if the observer is already attached
If the movable resource has a defined home base, and it is not already returning to home, this function causes the movable resource to be requested and sent to its home base. If there are pending requests, this request will compete with them, possibly waiting until finally causing the resource to return to its home base.