Package 

Class CognitiveAgentAvoidLayer

  • All Implemented Interfaces:
    it.unibo.alchemist.model.interfaces.Action , it.unibo.alchemist.model.interfaces.SteeringAction , java.io.Serializable

    
    public final class CognitiveAgentAvoidLayer
    extends AbstractLayerAction
                        

    Move the pedestrian towards positions of the environment with a low concentration of the target molecule.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Double maxWalk
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double getMaxWalk()
      Euclidean2DPosition nextPosition()
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractLayerAction

        cloneAction, getNextPosition
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractMoveNode

        declareDependencyTo, getConcentration, getOutboundDependencies, nodeContains, removeConcentration, setConcentration, toString
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractSteeringAction

        execute, getContext, getCurrentPosition, getEnvironment, getNodePosition, isAbsolute
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CognitiveAgentAvoidLayer

        CognitiveAgentAvoidLayer(Euclidean2DEnvironment<Number> environment, Reaction<Number> reaction, Pedestrian2D<Number> pedestrian, Molecule targetMolecule, Double viewDepth)
        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.
      • CognitiveAgentAvoidLayer

        CognitiveAgentAvoidLayer(Euclidean2DEnvironment<Number> environment, Reaction<Number> reaction, Pedestrian2D<Number> pedestrian, Molecule targetMolecule)
        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.