org.jscience.history.time
Class AlarmClock

java.lang.Object
  extended by org.jscience.history.time.Clock
      extended by org.jscience.history.time.AlarmClock
All Implemented Interfaces:
java.util.EventListener, TimeListener

public abstract class AlarmClock
extends Clock

A class representing a way to display and change time.


Constructor Summary
AlarmClock(TimeServer timeServer)
          Creates a new AlarmClock object.
 
Method Summary
abstract  void fireAlarm()
          DOCUMENT ME!
 ModernTime getAlarmTime()
          DOCUMENT ME!
 ModernTime getTime()
          DOCUMENT ME!
 void setAlarmTime(ModernTime alarmTime)
          DOCUMENT ME!
 void setTime(ModernTime time)
          DOCUMENT ME!
 void start()
          DOCUMENT ME!
 void stop()
          DOCUMENT ME!
 void timeChanged(TimeEvent event)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.history.time.Clock
getTimeServer, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlarmClock

public AlarmClock(TimeServer timeServer)
Creates a new AlarmClock object.

Parameters:
timeServer - DOCUMENT ME!
Method Detail

start

public void start()
DOCUMENT ME!


stop

public void stop()
DOCUMENT ME!


getAlarmTime

public ModernTime getAlarmTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAlarmTime

public void setAlarmTime(ModernTime alarmTime)
DOCUMENT ME!

Parameters:
alarmTime - DOCUMENT ME!

getTime

public ModernTime getTime()
DOCUMENT ME!

Specified by:
getTime in class Clock
Returns:
DOCUMENT ME!

setTime

public void setTime(ModernTime time)
DOCUMENT ME!

Parameters:
time - DOCUMENT ME!

timeChanged

public void timeChanged(TimeEvent event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!

fireAlarm

public abstract void fireAlarm()
DOCUMENT ME!