Monitor.Omr
Class Notifier

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Monitor.Omr.Notifier
All Implemented Interfaces:
java.lang.Runnable

public class Notifier
extends java.lang.Thread

Notifies the event evaluator whenever there is a change in the operation range of the parameter being monitored.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Notifier(MonitoredEntities.Entity me, MonitoredEntities.Parameter par, EventEvaluator.Resource.ResourceManager rm)
          Receives references for the parameter and entity being monitored as well as for the resource event evaluator that must be notified when changes occur.
 
Method Summary
 void notify(int range)
          Notifies the resource event evaluator when changes occur.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Notifier

public Notifier(MonitoredEntities.Entity me,
                MonitoredEntities.Parameter par,
                EventEvaluator.Resource.ResourceManager rm)
Receives references for the parameter and entity being monitored as well as for the resource event evaluator that must be notified when changes occur.
Parameters:
me - the monitored entity
par - the parameter being monitored
rm - the event evaluator that must be notified
Method Detail

notify

public void notify(int range)
Notifies the resource event evaluator when changes occur. Whenever the operation range on which the parameter being monitored changes, this method notifies the resource event evaluator of the new operation range for the parameter being monitored. It receives the new range from the CurrentRange object.
Parameters:
range - the new operation range for the parameter being monitored