-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Reaction,java.io.Serializable,kotlin.Comparable
public class SteeringBehavior<T extends Object> extends AbstractReaction<T>
Reaction representing the steering behavior of a pedestrian.
-
-
Field Summary
Fields Modifier and Type Field Description private final SteeringStrategy<T, Euclidean2DPosition>steerStrategy
-
Constructor Summary
Constructors Constructor Description SteeringBehavior(Environment<T, Euclidean2DPosition> env, Pedestrian2D<T> pedestrian, TimeDistribution<T> timeDistribution, SteeringStrategy<T, Euclidean2DPosition> steerStrategy)
-
Method Summary
Modifier and Type Method Description SteeringStrategy<T, Euclidean2DPosition>getSteerStrategy()final List<SteeringAction<T, Euclidean2DPosition>>steerActions()The list of steering actions in this reaction. SteeringBehavior<T>cloneOnNewNode(Node<T> node, Time currentTime)DoublegetRate()Unitexecute()-
Methods inherited from class it.unibo.alchemist.model.implementations.reactions.SteeringBehavior
addInboundDependency, addOutboundDependency, canExecute, compareTo, equals, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getRateAsString, getReactionName, getTau, getTimeDistribution, hashCode, initializationComplete, makeClone, setActions, setConditions, setInputContext, setOutputContext, toString, update -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SteeringBehavior
SteeringBehavior(Environment<T, Euclidean2DPosition> env, Pedestrian2D<T> pedestrian, TimeDistribution<T> timeDistribution, SteeringStrategy<T, Euclidean2DPosition> steerStrategy)
- Parameters:
env-the environment inside which the pedestrian moves.pedestrian-the owner of this reaction.timeDistribution-the time distribution according to which this reaction executes.steerStrategy-the strategy used to combine steering actions.
-
-
Method Detail
-
getSteerStrategy
SteeringStrategy<T, Euclidean2DPosition> getSteerStrategy()
-
steerActions
final List<SteeringAction<T, Euclidean2DPosition>> steerActions()
The list of steering actions in this reaction.
-
cloneOnNewNode
SteeringBehavior<T> cloneOnNewNode(Node<T> node, Time currentTime)
-
-
-
-