hypercast.adapters
Class TimerEvent

java.lang.Object
  |
  +--hypercast.adapters.TimerEvent

public final class TimerEvent
extends java.lang.Object

This class is holds the time and id of a time event in a TimerEventQueue. This object is immutable.


Constructor Summary
TimerEvent(java.lang.Object id, long t)
          Constructs a TimeEvent object with time id and time.
TimerEvent(hypercast.adapters.TimerEvent te)
          Constructs a new TimeEvent object with a TimeEvent object
 
Method Summary
 long getTime()
          Returns the time of this time event
 java.lang.Object getTimeID()
          Returns the time_id of this time event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerEvent

public TimerEvent(java.lang.Object id,
                  long t)
Constructs a TimeEvent object with time id and time.

Parameters:
id - time id
t - time in ms

TimerEvent

public TimerEvent(hypercast.adapters.TimerEvent te)
Constructs a new TimeEvent object with a TimeEvent object

Parameters:
te - a TimeEvent object
Method Detail

getTime

public long getTime()
Returns the time of this time event

Returns:
time

getTimeID

public java.lang.Object getTimeID()
Returns the time_id of this time event

Returns:
time_id