Movable Resource Pool
constructor(parent: ModelElement, numResources: Int = 1, initLocation: LocationIfc, defaultVelocity: RandomIfc, name: String? = null)
Makes the specified number of single unit resources and includes them in the pool.
Author
rossetti
Parameters
parent
the parent model element
num Resources
number of single unit resources to include in the pool
init Location
the initial starting location of the resources within the spatial model
default Velocity
the default velocity for movement within the spatial model
name
the name of the pool
constructor(parent: ModelElement, movableResources: List<MovableResource>, defaultVelocity: RandomIfc, name: String? = null)
Parameters
parent
the parent model element
movable Resources
a list of resources to be included in the pool
name
the name of the pool