ptolemy.actor.util
Class TimedEvent

java.lang.Object
  extended byptolemy.actor.util.TimedEvent

public class TimedEvent
extends java.lang.Object

This class aggregates a double and an Object, and provides a CQComparator as an inner class.

Since:
Ptolemy II 0.4
Version:
$Id: TimedEvent.java,v 1.17 2004/04/13 03:11:57 cxh Exp $
Author:
Edward A. Lee
See Also:
CQComparator
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.
 double timeStamp
          The time stamp.
 
Constructor Summary
TimedEvent(double time, java.lang.Object obj)
          Construct an event with the specified time stamp and contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeStamp

public double timeStamp
The time stamp.


contents

public java.lang.Object contents
The event object.

Constructor Detail

TimedEvent

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

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