Class 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 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
      • triggered

        public void triggered​(String id,
                              Object watchee,
                              double val)
      • triggered

        public void triggered​(String id,
                              Object watchee,
                              int val)
      • triggered

        public void triggered​(String id,
                              Object watchee,
                              float val)
      • triggered

        public void triggered​(String id,
                              Object watchee,
                              long val)
      • triggered

        public void triggered​(String id,
                              Object watchee,
                              boolean val)
      • clearNotifiers

        public void clearNotifiers()