Implement a basic timer class (not to be confused with
java.util.Timer ) that invokes Alarm "expire()" methods
when they are due.
The base class operated on System time, but subclasses may operate
on different scales.
Visible feedback may be controlled by standard logging for class:
org.cougaar.core.agent.service.alarm.Timer:
WARN also enables logging of when (real-time only) alarms are more than Epsilon millis late
INFO also enables logging of when alarms take more than Epsilon millis to ring
DEBUG also enables reports of every alarm ringing.
Subclasses may override the feedback printed.
|