MovableResource

constructor(parent: ModelElement, initLocation: LocationIfc, defaultVelocity: RVariableIfc, name: String? = null, stepSize: Double = 1.0)(source)

Parameters

parent

the parent model element

initLocation

the initial starting location of the resource within the spatial model

defaultVelocity

the default velocity for movement within the spatial model It also implements VehicleMovementIfc, the movement seam a fleet is written against, so that tours, dispatching and a manifest can be driven over a free path by exactly the code that drives them over a guide path or a continuous projection. Nothing about the existing move, moveWith and transportWith verbs changes: those remain one delay to the destination and are what a modeller uses to move a resource directly. The seam is a second way in, used by a fleet, and it is the one that can be interrupted and redirected part way. See "The movement seam" below.

name

the name of the resource

stepSize

how far apart the seam's decision points are, in the spatial model's own distance units. It fixes how quickly a redirection or a halt is observed -- at most stepSize/velocity later -- and is ignored entirely where the spatial model cannot interpolate, since there a journey is one step and has always been