moveWith

abstract suspend fun moveWith(spatialElement: SpatialElementIfc, toLoc: LocationIfc, velocity: Double, movePriority: Int = PRIORITY, suspensionName: String? = null)

Causes movement of the entity and the spatial element from the current location to the specified location at the supplied velocity. The entity and the spatial element must be at the same location to start the movement. If not specified, the default velocity of the spatial element is used for the movement.

Parameters

spatialElement

, the spatial element that will be moved

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.


abstract suspend fun moveWith(movableResource: MovableResource, toLoc: LocationIfc, velocity: Double = movableResource.velocity.value, movePriority: Int = PRIORITY, suspensionName: String? = null)

Causes movement of the entity and the movable resource from the current location to the specified location at the supplied velocity. The entity and the movable resource must be at the same location to start the movement. If not specified, the default velocity of the spatial element is used for the movement.

Parameters

movableResource

, the spatial element that will be moved

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.


abstract suspend fun moveWith(movableResourceWithQ: MovableResourceWithQ, toLoc: LocationIfc, velocity: Double = movableResourceWithQ.velocity.value, movePriority: Int = PRIORITY, suspensionName: String? = null)

Causes movement of the entity and the movable resource from the current location to the specified location at the supplied velocity. The entity and the movable resource must be at the same location to start the movement. If not specified, the default velocity of the spatial element is used for the movement.

Parameters

movableResourceWithQ

, the spatial element that will be moved

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.