ptolemy.actor.util
Class TimedEvent

java.lang.Object
  extended by ptolemy.actor.util.TimedEvent
Direct Known Subclasses:
PteraDirector.TimedEvent

public class TimedEvent
extends java.lang.Object

This class aggregates an instance of Time and an Object, and provides a CQComparator as an inner class.

Since:
Ptolemy II 0.4
Version:
$Id: TimedEvent.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Edward A. Lee and Haiyang Zheng
See Also:
CQComparator, Time
Accepted Rating:
Red (liuj)
Proposed Rating:
Yellow (eal)

Nested Class Summary
static class TimedEvent.TimeComparator
          This class implements the CQComparator interface.
 
Field Summary
 java.lang.Object contents
          The event object.
 Time timeStamp
          The time stamp.
 
Constructor Summary
TimedEvent(Time time, java.lang.Object obj)
          Construct an event with the specified time stamp and contents.
 
Method Summary
 java.lang.String toString()
          Display timeStamp and contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timeStamp

public Time timeStamp
The time stamp.


contents

public java.lang.Object contents
The event object.

Constructor Detail

TimedEvent

public TimedEvent(Time time,
                  java.lang.Object obj)
Construct an event with the specified time stamp and contents.

Parameters:
time - The time stamp.
obj - The contents.
Method Detail

toString

public java.lang.String toString()
Display timeStamp and contents.

Overrides:
toString in class java.lang.Object