-
- 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 CognitiveAgentSeek<T extends Object, P extends Position<P>, Vector<P>, A extends GeometricTransformation<P>> extends CognitiveAgentArrive<T, P, A>
Move the pedestrian towards the target position as fast as possible.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentSeek(Environment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Number coordinates)CognitiveAgentSeek(Environment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, 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
-
CognitiveAgentSeek
CognitiveAgentSeek(Environment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Number coordinates)
-
CognitiveAgentSeek
CognitiveAgentSeek(Environment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, P target)
- Parameters:
environment-the environment inside which the pedestrian moves.pedestrian-the owner of this action.target-the position the pedestrian moves towards.
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
-
-
-