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
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.