-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,it.unibo.alchemist.model.interfaces.SteeringAction,java.io.Serializable
public final class CognitiveAgentCombineSteering<T extends Object, P extends Position<P>, Vector<P>, A extends GeometricTransformation<P>> extends AbstractSteeringAction<T, P, A>
Combination of multiple steering actions.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentCombineSteering(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, List<SteeringAction<T, P>> actions, SteeringStrategy<T, P> steerStrategy)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()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.CognitiveAgentCombineSteering
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
-
CognitiveAgentCombineSteering
CognitiveAgentCombineSteering(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, List<SteeringAction<T, P>> actions, SteeringStrategy<T, P> steerStrategy)
- Parameters:
env-the environment inside which the pedestrian moves.pedestrian-the owner of this action.actions-the list of actions to combine to determine the pedestrian movement.steerStrategy-the logic according to the steering actions are combined.
-
-
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.
-
-
-
-