org.jscience.history.time
Class TimeServer

java.lang.Object
  extended by org.jscience.history.time.TimeServer

public abstract class TimeServer
extends java.lang.Object

A class representing a way get time values.


Constructor Summary
TimeServer()
           
 
Method Summary
 void addTimeListener(TimeListener l)
          Adds the specified listener to receive events from this clock.
 void dispatchTimeEvent(TimeEvent evt)
          DOCUMENT ME!
 TimeListener[] getTimeListeners()
          Returns an array of all the TimeListeners added to this Clock with addTimeListener.
 void removeTimeListener(TimeListener l)
          Removes the specified TimeListener so that it no longer receives events from this clock.
abstract  void start()
          DOCUMENT ME!
abstract  void stop()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeServer

public TimeServer()
Method Detail

start

public abstract void start()
DOCUMENT ME!


stop

public abstract void stop()
DOCUMENT ME!


dispatchTimeEvent

public void dispatchTimeEvent(TimeEvent evt)
DOCUMENT ME!

Parameters:
evt - DOCUMENT ME!

addTimeListener

public void addTimeListener(TimeListener l)
Adds the specified listener to receive events from this clock.

Parameters:
l - the TimeListener

removeTimeListener

public void removeTimeListener(TimeListener l)
Removes the specified TimeListener so that it no longer receives events from this clock.

Parameters:
l - the TimeListener

getTimeListeners

public TimeListener[] getTimeListeners()
Returns an array of all the TimeListeners added to this Clock with addTimeListener.

Returns:
all of the TimeListeners added or an empty array if no listeners have been added
See Also:
addTimeListener(org.jscience.history.time.TimeListener)