ptolemy.actor.lib.hoc
Class RealTimeComposite.InputFrame

java.lang.Object
  extended by ptolemy.actor.lib.hoc.RealTimeComposite.InputFrame
All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>, java.util.concurrent.Delayed
Enclosing class:
RealTimeComposite

private class RealTimeComposite.InputFrame
extends java.lang.Object
implements java.util.concurrent.Delayed

Bundle of a token and the input port at which it arrived. Use null for theTokens specifies this frame as a "stop frame" to flag that no more inputs will be delivered.


Field Summary
 Time time
           
 java.util.List<RealTimeComposite.QueuedToken> tokens
           
 
Constructor Summary
RealTimeComposite.InputFrame(Time theTime, java.util.List<RealTimeComposite.QueuedToken> theTokens)
           
 
Method Summary
 int compareTo(java.util.concurrent.Delayed frame)
           
 long getDelay(java.util.concurrent.TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

public final Time time

tokens

public final java.util.List<RealTimeComposite.QueuedToken> tokens
Constructor Detail

RealTimeComposite.InputFrame

public RealTimeComposite.InputFrame(Time theTime,
                                    java.util.List<RealTimeComposite.QueuedToken> theTokens)
Method Detail

getDelay

public long getDelay(java.util.concurrent.TimeUnit unit)
Specified by:
getDelay in interface java.util.concurrent.Delayed

compareTo

public int compareTo(java.util.concurrent.Delayed frame)
Specified by:
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>