TargetSelectionStrategy

This interface models a strategy for selecting positions where to move.

Type Parameters

T

Concentration type

P

Position type

Inheritors

Properties

Link copied to clipboard
abstract val target: P

The next target where the Node is directed.

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: NodeReaction<T>): TargetSelectionStrategy<T, P>

Clones this strategy, if needed, for the destination node and its reaction. Returns a copy of the strategy if the strategy is stateful, and this object otherwise: the default implementation assumes a stateless strategy.