-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,it.unibo.alchemist.model.interfaces.SteeringAction,java.io.Serializable
public final class CognitiveAgentFollowScalarField<T extends Object, P extends Position2D<P>, Vector2D<P>, A extends GeometricTransformation<P>> extends AbstractSteeringAction<T, P, A>
Moves the pedestrian where the given scalar field is higher.
-
-
Constructor Summary
Constructors Constructor Description CognitiveAgentFollowScalarField(Environment<T, P> env, Reaction<T> reaction, Pedestrian<T, P, A> pedestrian, P center, Function1<P, Double> valueIn)
-
Method Summary
Modifier and Type Method Description DoublegetMaxWalk()PnextPosition()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.CognitiveAgentFollowScalarField
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
-
-
Method Detail
-
getMaxWalk
Double getMaxWalk()
-
nextPosition
P nextPosition()
-
-
-
-