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 TypeMethodDescriptionvoid
addFieldSetWatch
(WatchParameters params, ISchedule schedule) Adds a watch of a field set.void
static WatcherTrigger
Gets the instance of the WatcherTrigger.static void
initInstance
(WatcheeInstrumentor instrumentor) Initializes the WatcherTrigger instance with the specified instrumentor.void
removeNotifier
(Object watcher) Removes all the Notifiers associated with the specified watcher.void
void
void
void
void
void
-
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()
-