AbstractTraceDependantSpeed

This strategy dynamically tries to move the node adjusting its speed to synchronize the reaction rate and the traces' data.

Parameters

<T>

Concentration type

Inheritors

Constructors

Link copied to clipboard
constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: NodeReaction<T>)
Builds a new trace-dependant speed strategy for the given node and reaction.

Properties

Link copied to clipboard
protected open var trace: GPSTrace

Functions

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

Returns a clone for destination and reaction when the strategy is stateful.

Link copied to clipboard
Computes the movement length toward target.