Package repast.simphony.engine.watcher
Class ImmediateExecutor
java.lang.Object
repast.simphony.engine.watcher.AbstractTriggerScheduler
repast.simphony.engine.watcher.ImmediateExecutor
- All Implemented Interfaces:
TriggerScheduler
A trigger scheduler that executes the trigger
immediately.
- Author:
- Nick Collier
-
Field Summary
Fields inherited from class repast.simphony.engine.watcher.AbstractTriggerScheduler
amtToTrigger, condition, queryCondition, shuffle, trigger
-
Constructor Summary
ConstructorDescriptionImmediateExecutor
(repast.simphony.engine.watcher.NotifierTrigger trigger, IBooleanExpression condition, int amtToTrigger, boolean shuffle) -
Method Summary
Modifier and TypeMethodDescriptionvoid
scheduleExecution
(Notifier2 notifier, Object watchee, Object value) Executes the trigger immediately for all watchers managed by the notifier.
-
Constructor Details
-
ImmediateExecutor
public ImmediateExecutor(repast.simphony.engine.watcher.NotifierTrigger trigger, IBooleanExpression condition, int amtToTrigger, boolean shuffle)
-
-
Method Details
-
scheduleExecution
Executes the trigger immediately for all watchers managed by the notifier.- Parameters:
notifier
- the notifier responsible for this particular watchwatchee
- the watcheevalue
- the new field value.
-