org.jscience.history.time
Class Clock

java.lang.Object
  extended by org.jscience.history.time.Clock
All Implemented Interfaces:
java.util.EventListener, TimeListener
Direct Known Subclasses:
AlarmClock, BasicClock, ChronometerClock, CountdownClock

public abstract class Clock
extends java.lang.Object
implements TimeListener

A class representing a way to display and change time.


Constructor Summary
Clock(TimeServer timeServer)
          Creates a new Clock object.
 
Method Summary
abstract  Time getTime()
          DOCUMENT ME!
 TimeServer getTimeServer()
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jscience.history.time.TimeListener
timeChanged
 

Constructor Detail

Clock

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

Parameters:
timeServer - DOCUMENT ME!
Method Detail

getTimeServer

public TimeServer getTimeServer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTime

public abstract Time getTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!