Movable Resource With Q
A movable resource is a single unit capacity resource that resides within a spatial model and thus can be moved.
A movable resource is considered idle if it has not allocated. The capacity can be changed during a replication; however, the capacity of every replication starts at the same initial capacity. A movable resource can have capacity of 0 or 1.
A movable resource is inactive if its capacity is zero. Capacity can only become 0 via the use of a CapacitySchedule or via the use of a CapacityChangeNotice. A movable resource that is inactive can be seized. If a request for the movable resource occurs when the resource is inactive, the request waits (as usual) until it can be fulfilled.
Define b(t) as the number of units allocated and c(t) as the current capacity of the resource at time t.
If (b(t) = 0 and c(t) = 0) then the resource is considered inactive If b(t) = 1 and c(t) >= 0, then the resource is busy If b(t) = 0 and c(t) = 1, then the resource is idle
Note that a resource may be busy when the capacity is 0 because of the timing of capacity changes.
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