Package it.unibo.alchemist.test
Class GlobalTestReaction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.GlobalReaction
,java.io.Serializable
,kotlin.Comparable
public final class GlobalTestReaction<T extends Object> implements GlobalReaction<T>
-
-
Field Summary
Fields Modifier and Type Field Description private List<Action<T>>
actions
private List<Condition<T>>
conditions
private final ListSet<out Dependency>
outboundDependencies
private final ListSet<out Dependency>
inboundDependencies
private final TimeDistribution<T>
timeDistribution
private final Environment<T, ?>
environment
private final Double
rate
private final Time
tau
-
Constructor Summary
Constructors Constructor Description GlobalTestReaction(TimeDistribution<T> timeDistribution, Environment<T, ?> environment)
-
Method Summary
Modifier and Type Method Description List<Action<T>>
getActions()
Unit
setActions(List<Action<T>> actions)
List<Condition<T>>
getConditions()
Unit
setConditions(List<Condition<T>> conditions)
ListSet<out Dependency>
getOutboundDependencies()
ListSet<out Dependency>
getInboundDependencies()
TimeDistribution<T>
getTimeDistribution()
final Environment<T, ?>
getEnvironment()
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
-
GlobalTestReaction
GlobalTestReaction(TimeDistribution<T> timeDistribution, Environment<T, ?> environment)
-
-
Method Detail
-
getActions
List<Action<T>> getActions()
-
setActions
Unit setActions(List<Action<T>> actions)
-
getConditions
List<Condition<T>> getConditions()
-
setConditions
Unit setConditions(List<Condition<T>> conditions)
-
getOutboundDependencies
ListSet<out Dependency> getOutboundDependencies()
-
getInboundDependencies
ListSet<out Dependency> getInboundDependencies()
-
getTimeDistribution
TimeDistribution<T> getTimeDistribution()
-
getEnvironment
final Environment<T, ?> getEnvironment()
-
compareTo
Integer compareTo(Actionable<T> other)
-
canExecute
Boolean canExecute()
-
initializationComplete
Unit initializationComplete(Time atTime, Environment<T, ?> environment)
-
-
-
-