Package repast.simphony.engine.watcher
Class WatcherTrigger
java.lang.Object
repast.simphony.engine.watcher.WatcherTrigger
Triggers registered watchers when a watched field and so on in a watchee fires.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldSetWatch(WatchParameters params, ISchedule schedule) Adds a watch of a field set.voidstatic WatcherTriggerGets the instance of the WatcherTrigger.static voidinitInstance(WatcheeInstrumentor instrumentor) Initializes the WatcherTrigger instance with the specified instrumentor.voidremoveNotifier(Object watcher) Removes all the Notifiers associated with the specified watcher.voidvoidvoidvoidvoidvoid
-
Method Details
-
getInstance
Gets the instance of the WatcherTrigger. initInstance must have been called prior to this or this will return null.- Returns:
- the instance of the WatcherTrigger.
-
initInstance
Initializes the WatcherTrigger instance with the specified instrumentor.- Parameters:
instrumentor-
-
addFieldSetWatch
Adds a watch of a field set.- Parameters:
params-schedule-
-
removeNotifier
Removes all the Notifiers associated with the specified watcher.- Parameters:
watcher- the watcher whose Notifiers we want to remove
-
triggered
-
triggered
-
triggered
-
triggered
-
triggered
-
triggered
-
clearNotifiers
public void clearNotifiers()
-