org.jeospace.simulation
Interface ChronAlarmFactory
- All Known Implementing Classes:
- ChronManager
- public interface ChronAlarmFactory
Requirements for a factory to create ChronAlarms.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Rex Melton
createChronAlarm
public ChronAlarm createChronAlarm(ChronAlarmListener listener,
java.lang.Object listenerID,
ChronPeriod interval,
boolean repeat)
- Create a new alarm.
- Parameters:
listener - the ChronAlarmListener that will respond
to alarm eventslistenerID - an identifying Object to be returned in
the ChronAlarmEventinterval - the ChronPeriod that defines the interval
of the alarm. An alarm event will be generated when the active
Chronometer reaches or exceeds the interval period in
either the forward or backward direction.repeat - flag indicating that this alarm repeats true or
is a one shot false.
Copyright © 2006 - jeospace.org