SteeringActionWithTarget

A SteeringAction that exposes an absolute target position.

Type Parameters

T

the concentration type.

P

the Position and Vector type used by the environment.

Inheritors

Properties

Link copied to clipboard
abstract override val context: Context?
Link copied to clipboard
@get:Nonnull
abstract override val outboundDependencies: ListSet<out Dependency?>

Functions

Link copied to clipboard
abstract fun cloneAction(node: Node<T?>?, reaction: Reaction<T?>?): Action<T?>?
Link copied to clipboard
abstract fun execute()

Effectively executes this action.

Link copied to clipboard
abstract fun nextPosition(): P

Returns the target relative position the owner will move to when this action is executed. The position is relative to the owner's current position.

Link copied to clipboard
infix fun Action<*>.shouldEqual(other: Action<*>)
Link copied to clipboard
abstract fun target(): P

Returns the absolute target position this action points to.

Link copied to clipboard
open fun targetDistanceTo(node: Node<T>, environment: Environment<T, P>): Double

Computes the distance between this action's target and the given node within the provided environment.