-
- 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.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentWander(Physics2DEnvironment<T> environment, Reaction<T> reaction, Pedestrian2D<T> pedestrian, RandomGenerator randomGenerator, Double offset, Double radius)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()Euclidean2DPositionnextPosition()-
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.
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
nextPosition
Euclidean2DPosition nextPosition()
-
-
-
-