-
- 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 CognitiveAgentSeek2D<T extends Object, P extends Position2D<P>, Vector2D<P>, A extends GeometricTransformation<P>> extends AbstractSteeringAction<T, P, A> implements SteeringActionWithTarget<T, P>
CognitiveAgentSeek behavior in a bidimensional environment, delegated to CognitiveAgentFollowScalarField (this means the pedestrian tries to overtake others on its path, in general its movements are more sophisticated than CognitiveAgentSeek).
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentSeek2D(EuclideanEnvironment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Number x, Number y)CognitiveAgentSeek2D(EuclideanEnvironment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, P target)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()Ptarget()The position the owner of this action moves towards, in absolute coordinates. PnextPosition()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.CognitiveAgentSeek2D
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
-
CognitiveAgentSeek2D
CognitiveAgentSeek2D(EuclideanEnvironment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, Number x, Number y)
-
CognitiveAgentSeek2D
CognitiveAgentSeek2D(EuclideanEnvironment<T, P> environment, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, P target)
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
nextPosition
P nextPosition()
The position the owner of this action moves to when it is executed, in relative coordinates with respect to its current position.
-
-
-
-