CognitiveAgentAvoidLayer

fun CognitiveAgentAvoidLayer(environment: Euclidean2DEnvironment<Number>, reaction: Reaction<Number>, pedestrian: Pedestrian2D<Number>, targetMolecule: Molecule, viewDepth: Double = Double.POSITIVE_INFINITY)

Parameters

environment
    the environment inside which the pedestrian moves.
reaction
    the reaction which executes this action.
pedestrian
    the owner of this action.
targetMolecule
    the {@link Molecule} you want to know the concentration in the different positions of the environment.
viewDepth
    the depth of view of the pedestrian, defaults to infinity.