Class PhysicsUpdate
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.GlobalReaction
,java.io.Serializable
,kotlin.Comparable
public final class PhysicsUpdate<T extends Object> implements GlobalReaction<T>
A global Reaction responsible for updating the physics of an Dynamics2DEnvironment.
-
-
Field Summary
Fields Modifier and Type Field Description private final ListSet<out Dependency>
outboundDependencies
private final ListSet<out Dependency>
inboundDependencies
private final Double
rate
private final Time
tau
private List<Action<T>>
actions
private List<Condition<T>>
conditions
private final Dynamics2DEnvironment<T>
environment
private final TimeDistribution<T>
timeDistribution
-
Constructor Summary
Constructors Constructor Description PhysicsUpdate(Dynamics2DEnvironment<T> environment, Double updateRate)
PhysicsUpdate(Dynamics2DEnvironment<T> environment, TimeDistribution<T> timeDistribution)
-
Method Summary
Modifier and Type Method Description ListSet<out Dependency>
getOutboundDependencies()
ListSet<out Dependency>
getInboundDependencies()
Double
getRate()
Time
getTau()
List<Action<T>>
getActions()
Unit
setActions(List<Action<T>> actions)
List<Condition<T>>
getConditions()
Unit
setConditions(List<Condition<T>> conditions)
final Dynamics2DEnvironment<T>
getEnvironment()
The environment to update. TimeDistribution<T>
getTimeDistribution()
Integer
compareTo(Actionable<T> other)
Boolean
canExecute()
Unit
execute()
Unit
update(Time currentTime, Boolean hasBeenExecuted, Environment<T, ?> environment)
Unit
initializationComplete(Time atTime, Environment<T, ?> environment)
-
-
Constructor Detail
-
PhysicsUpdate
PhysicsUpdate(Dynamics2DEnvironment<T> environment, Double updateRate)
-
PhysicsUpdate
PhysicsUpdate(Dynamics2DEnvironment<T> environment, TimeDistribution<T> timeDistribution)
-
-
Method Detail
-
getOutboundDependencies
ListSet<out Dependency> getOutboundDependencies()
-
getInboundDependencies
ListSet<out Dependency> getInboundDependencies()
-
getActions
List<Action<T>> getActions()
-
setActions
Unit setActions(List<Action<T>> actions)
-
getConditions
List<Condition<T>> getConditions()
-
setConditions
Unit setConditions(List<Condition<T>> conditions)
-
getEnvironment
final Dynamics2DEnvironment<T> getEnvironment()
The environment to update.
-
getTimeDistribution
TimeDistribution<T> getTimeDistribution()
-
compareTo
Integer compareTo(Actionable<T> other)
-
canExecute
Boolean canExecute()
-
initializationComplete
Unit initializationComplete(Time atTime, Environment<T, ?> environment)
-
-
-
-