-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,it.unibo.alchemist.model.interfaces.SteeringAction,java.io.Serializable
public final class CognitiveAgentObstacleAvoidance<W extends Obstacle2D<Euclidean2DPosition>, T extends Object> extends AbstractSteeringAction<T, Euclidean2DPosition, Euclidean2DTransformation>
Move the agent avoiding potential obstacles in its path.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentObstacleAvoidance(Environment2DWithObstacles<W, T> env, SteeringBehavior<T> reaction, Pedestrian2D<T> pedestrian, Double proximityRange)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()Euclidean2DPositionnextPosition()The position the owner of this action moves to when it is executed, in relative coordinates with respect to its current position. -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.CognitiveAgentObstacleAvoidance
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
-
CognitiveAgentObstacleAvoidance
CognitiveAgentObstacleAvoidance(Environment2DWithObstacles<W, T> env, SteeringBehavior<T> reaction, Pedestrian2D<T> pedestrian, Double proximityRange)
- Parameters:
env-the environment inside which the pedestrian moves.reaction-the reaction which executes this action.pedestrian-the owner of this action.proximityRange-the distance at which an obstacle is perceived by the pedestrian.
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
nextPosition
Euclidean2DPosition nextPosition()
The position the owner of this action moves to when it is executed, in relative coordinates with respect to its current position.
-
-
-
-