Class SteeringBehavior
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.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
private List<Action<T>>
actions
private List<Condition<T>>
conditions
private final TimeDistribution<T>
timeDistribution
private final Node<T>
node
private final Context
inputContext
private final Context
outputContext
private final ListSet<Dependency>
outboundDependencies
private final ListSet<Dependency>
inboundDependencies
private final Double
rate
private final Time
tau
-
Constructor Summary
Constructors Constructor Description SteeringBehavior(Environment<T, Euclidean2DPosition> environment, PedestrianProperty<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)
Unit
execute()
-
Methods inherited from class it.unibo.alchemist.model.reactions.AbstractReaction
canExecute, compareTo, equals, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getTau, getTimeDistribution, hashCode, initializationComplete, setActions, setConditions, toString, update
-
Methods inherited from class it.unibo.alchemist.model.Actionable
getRate
-
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> environment, PedestrianProperty<T> pedestrian, TimeDistribution<T> timeDistribution, SteeringStrategy<T, Euclidean2DPosition> steerStrategy)
- Parameters:
environment
-the environment inside which the pedestrian moves.
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)
-
-
-
-