-
- 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 CognitiveAgentArrive<T extends Object, P extends Position<P>, Vector<P>, A extends GeometricTransformation<P>> extends AbstractSteeringActionWithTarget<T, P, A>
Move the agent towards a target position. It is similar to CognitiveAgentSeek but attempts to arrive at the target position with a zero velocity.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentArrive(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Double decelerationRadius, Double arrivalTolerance, Number coordinates)CognitiveAgentArrive(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Double decelerationRadius, Double arrivalTolerance, P target)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractSteeringActionWithTarget
cloneAction, getNextPosition -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.CognitiveAgentArrive
nextPosition, 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
-
CognitiveAgentArrive
CognitiveAgentArrive(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Double decelerationRadius, Double arrivalTolerance, Number coordinates)
-
CognitiveAgentArrive
CognitiveAgentArrive(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Double decelerationRadius, Double arrivalTolerance, P target)
- Parameters:
env-the environment inside which the pedestrian moves.reaction-the reaction which executes this action.pedestrian-the owner of this action.decelerationRadius-the distance from which the pedestrian starts to decelerate.arrivalTolerance-the distance at which the pedestrian is considered arrived to the target.target-the position the pedestrian moves towards.
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
-
-
-