FollowTargetOnMap

open class FollowTargetOnMap<T>(environment: Environment<T, GeoPosition>, node: Node<T>, targetMolecule: Molecule) : FollowTarget<T, GeoPosition>

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

Parameters

environment

the environment

node

the node

targetMolecule

the target molecule

Type Parameters

T

concentration type

Constructors

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

Properties

Link copied to clipboard
open override val target: GeoPosition

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>): FollowTargetOnMap<T>

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.