PhysicalSteeringStrategy

Strategy that combines physical forces with intentional steering actions to compute a node's next position.

The aggregation of steering actions and target computation is delegated to nonPhysicalStrategy. The resulting intentional force is then combined with the physical forces to compute the final displacement of node.

Type Parameters

T

the concentration type.

P

the Position and Vector type used by the environment.

A

the transformation type supported by shapes in this space.

F

the geometric shape factory used by the environment.

Inheritors

Properties

Link copied to clipboard
abstract val node: Node<T>

The node to be moved.

Link copied to clipboard

Strategy responsible for combining intentional steering actions and computing the target.

Functions

Link copied to clipboard
abstract fun computeNextPosition(overallIntentionalForce: P): P

Computes the next relative position given the overall intentional force.

open override fun computeNextPosition(actions: List<SteeringAction<T, P>>): P

Computes the next position by delegating the combination of steering actions to nonPhysicalStrategy and then applying physical dynamics.

Link copied to clipboard
open override fun computeTarget(actions: List<SteeringAction<T, P>>): P

Delegates target computation to nonPhysicalStrategy.