CognitiveAgentFollowLayer
open class CognitiveAgentFollowLayer(euclidean: Euclidean2DEnvironment<Number>, reaction: NodeReaction<Number>, pedestrian: PedestrianProperty<Number>, targetMolecule: Molecule) : AbstractLayerAction(source)
Move the node towards positions of the environment with a high concentration of the target molecule.
Parameters
euclidean
the environment inside which the node moves.
reaction
the reaction which executes this action.
pedestrian
the owner of this action.
targetMolecule
the molecule whose concentration defines the scalar field to follow.
Constructors
Link copied to clipboard
constructor(euclidean: Euclidean2DEnvironment<Number>, reaction: NodeReaction<Number>, pedestrian: PedestrianProperty<Number>, targetMolecule: Molecule)