Prism.extensions.evt.RealTime
Class RealTimeEvent

java.lang.Object
  extended by Prism.extensions.evt.RealTime.AbstractRealTimeEvent
      extended by Prism.extensions.evt.RealTime.RealTimeEvent
All Implemented Interfaces:
java.io.Serializable

public class RealTimeEvent
extends AbstractRealTimeEvent
implements java.io.Serializable

Represents real time information of an ExtensibleEvent that supports real time.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu
See Also:
Serialized Form

Constructor Summary
RealTimeEvent(long pDeadlineTime, long pBufferTime)
          Constructor that initializes internal state.
 
Method Summary
 long getBufferTime()
          Gets the buffer time of this event.
 long getDeadlineTime()
          Gets the deadline time of this event.
 long getTimeStamp()
          Gets the time stamp of this event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealTimeEvent

public RealTimeEvent(long pDeadlineTime,
                     long pBufferTime)
Constructor that initializes internal state. A time stamp is put on an event here, which is used for real time calculations.

Parameters:
pDeadlineTime - The deadline for this event
pBufferTime - The buffer time for this event. Used in soft real time, where an event may still be of value even after the deadline.
Method Detail

getTimeStamp

public long getTimeStamp()
Gets the time stamp of this event. A RealTimeEvent is automatically tagged with a time stamp at the time of creation.

Specified by:
getTimeStamp in class AbstractRealTimeEvent
Returns:
long time stamp

getDeadlineTime

public long getDeadlineTime()
Gets the deadline time of this event.

Specified by:
getDeadlineTime in class AbstractRealTimeEvent
Returns:
long deadline time

getBufferTime

public long getBufferTime()
Gets the buffer time of this event. In soft real time, an event may still be of value even after the deadline. This time is called the buffer time.

Specified by:
getBufferTime in class AbstractRealTimeEvent
Returns:
long buffer time