FollowTarget

open class FollowTarget<T, P : Position<P>>(environment: Environment<T, P>, node: Node<T>, val targetMolecule: Molecule) : TargetSelectionStrategy<T, P> (source)

Strategy that reads the value of a "target" molecule and tries to interpret it as a coordinate.

Type Parameters

T

the concentration type

P

the position type

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>, node: Node<T>, targetMolecule: Molecule)

Properties

Link copied to clipboard
open override val target: P

The next target where the Node is directed.

Link copied to clipboard

the target molecule used to determine the destination

Functions

Link copied to clipboard
open override fun cloneIfNeeded(destination: Node<T>, reaction: NodeReaction<T>): FollowTarget<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.