Package 

Class CognitiveAgentWander

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

    
    public class CognitiveAgentWander<T extends Object>
    extends AbstractSteeringActionWithTarget<T, Euclidean2DPosition, Euclidean2DTransformation>
                        

    Give the impression of a random walk through the environment targeting an ever changing pseudo-randomly point of a circumference at a given distance and with a given radius from the current pedestrian position.

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

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

        target
      • 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

      • CognitiveAgentWander

        CognitiveAgentWander(Physics2DEnvironment<T> environment, Reaction<T> reaction, Pedestrian2D<T> pedestrian, RandomGenerator randomGenerator, Double offset, Double radius)
        Parameters:
        environment -
            the environment inside which the pedestrian moves.
        pedestrian -
            the owner of this action.
        randomGenerator -
            the simulation {@link RandomGenerator}.
        offset -
            the distance from the pedestrian position of the center of the circle.
        radius -
            the radius of the circle.