Jeospace API

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

Method Summary
 ChronAlarm createChronAlarm(ChronAlarmListener listener, java.lang.Object listenerID, ChronPeriod interval, boolean repeat)
          Create a new alarm.
 

Method Detail

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 events
listenerID - an identifying Object to be returned in the ChronAlarmEvent
interval - 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.

Jeospace API

Copyright © 2006 - jeospace.org