Package repast.simphony.engine.watcher
Class WatcherTrigger
- java.lang.Object
-
- repast.simphony.engine.watcher.WatcherTrigger
-
public class WatcherTrigger extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFieldSetWatch(WatchParameters params, ISchedule schedule)
Adds a watch of a field set.void
clearNotifiers()
static WatcherTrigger
getInstance()
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
triggered(String id, Object watchee, boolean val)
void
triggered(String id, Object watchee, double val)
void
triggered(String id, Object watchee, float val)
void
triggered(String id, Object watchee, int val)
void
triggered(String id, Object watchee, long val)
void
triggered(String id, Object watchee, Object val)
-
-
-
Method Detail
-
getInstance
public static WatcherTrigger 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
public static void initInstance(WatcheeInstrumentor instrumentor)
Initializes the WatcherTrigger instance with the specified instrumentor.- Parameters:
instrumentor
-
-
addFieldSetWatch
public void addFieldSetWatch(WatchParameters params, ISchedule schedule)
Adds a watch of a field set.- Parameters:
params
-schedule
-
-
removeNotifier
public void removeNotifier(Object watcher)
Removes all the Notifiers associated with the specified watcher.- Parameters:
watcher
- the watcher whose Notifiers we want to remove
-
clearNotifiers
public void clearNotifiers()
-
-