Class AbstractSteeringActionWithTarget
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.cognitive.SteeringAction
,it.unibo.alchemist.model.cognitive.SteeringActionWithTarget
,java.io.Serializable
public abstract class AbstractSteeringActionWithTarget<T extends Object, P extends Position<P>, Vector<P>, A extends Transformation<P>> extends AbstractSteeringAction<T, P, A> implements SteeringActionWithTarget<T, P>
A SteeringActionWithTarget in a vector space.
-
-
Constructor Summary
Constructors Constructor Description AbstractSteeringActionWithTarget(Environment<T, P> environment, Reaction<T> reaction, PedestrianProperty<T> pedestrian, P target)
AbstractSteeringActionWithTarget(Environment<T, P> environment, Reaction<T> reaction, PedestrianProperty<T> pedestrian, TargetSelectionStrategy<T, P> targetSelectionStrategy)
-
Method Summary
Modifier and Type Method Description P
target()
The position the owner of this action moves towards, in absolute coordinates. P
nextPosition()
-
Methods inherited from class it.unibo.alchemist.model.cognitive.actions.AbstractSteeringAction
cloneAction, getMaxWalk, getNextPosition
-
Methods inherited from class it.unibo.alchemist.model.cognitive.SteeringActionWithTarget
targetDistanceTo
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode
execute, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractSteeringActionWithTarget
AbstractSteeringActionWithTarget(Environment<T, P> environment, Reaction<T> reaction, PedestrianProperty<T> pedestrian, P target)
-
AbstractSteeringActionWithTarget
AbstractSteeringActionWithTarget(Environment<T, P> environment, Reaction<T> reaction, PedestrianProperty<T> pedestrian, TargetSelectionStrategy<T, P> targetSelectionStrategy)
- Parameters:
environment
-the environment inside which the node moves.
pedestrian
-the owner of this action.
targetSelectionStrategy
-strategy selecting the next target.
-
-
Method Detail
-
nextPosition
P nextPosition()
-
-
-
-