MovableResourcePoolWithQ

constructor(parent: ModelElement, numUnits: Int, initLocation: LocationIfc, defaultVelocity: RandomIfc, queue: RequestQ? = null, name: String? = null)

Creates the required number of movable resources for the pool. All created movable resources have the same initial starting location. The pool uses the supplied queue.

Parameters

parent

the containing model element

numUnits

the number of resources to create, must be 1 or more

initLocation

the initial starting location of the resource within the spatial model

defaultVelocity

the default velocity for movement within the spatial model

queue

the queue for the pool

name

the name of the pool


constructor(parent: ModelElement, movableResources: List<MovableResource>, defaultVelocity: RandomIfc, queue: RequestQ? = null, name: String? = null)

Parameters

parent

the parent model element

movableResources

a list of resources to be included in the pool

defaultVelocity

the default velocity for movement within the spatial model

queue

the queue for the pool

name

the name of the pool