org.jscience.history.time
Class TimeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jscience.history.time.TimeEvent
All Implemented Interfaces:
java.io.Serializable

public class TimeEvent
extends java.util.EventObject

A class representing a way to have time related events.

See Also:
Serialized Form

Field Summary
static int TIME_CHANGED
          DOCUMENT ME!
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TimeEvent(TimeServer source, Time time, int id)
          Constructs an TimeEvent object.
 
Method Summary
 int getID()
          DOCUMENT ME!
 Time getTime()
          DOCUMENT ME!
 TimeServer getTimeServer()
          Returns the originator of the event.
 java.lang.String paramString()
          Returns a parameter string identifying this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIME_CHANGED

public static final int TIME_CHANGED
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

TimeEvent

public TimeEvent(TimeServer source,
                 Time time,
                 int id)
Constructs an TimeEvent object.

Parameters:
source - the Time object that originated the event
id - an integer indicating the type of event
Method Detail

paramString

public java.lang.String paramString()
Returns a parameter string identifying this event. This method is useful for event logging and for debugging.

Returns:
a string identifying the event and its attributes

getTimeServer

public TimeServer getTimeServer()
Returns the originator of the event.

Returns:
the TimeServer object that originated the event
Since:
1.3

getTime

public Time getTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getID

public int getID()
DOCUMENT ME!

Returns:
DOCUMENT ME!