Class WaitingTime

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, SequenceActor, TimedActor, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class WaitingTime
    extends DEActor
    This actor measures the time that events at one input have to wait for events at another. Specifically, there will be one output event for each waiter input event. But the output event is delayed until the next arrival of an event at waitee. When one or more events arrive at waitee, then all events that have arrived at waiter since the last waitee (or since the start of the execution) trigger an output. The value of each output is the time that the waiter event waited for waitee. The inputs have undeclared type, so anything is acceptable. The output is always a DoubleToken.
    Since:
    Ptolemy II 0.3
    Version:
    $Id$
    Author:
    Lukito Muliadi, Edward A Lee
    Pt.AcceptedRating:
    Yellow (cxh)
    Pt.ProposedRating:
    Yellow (eal)
    • Field Detail

      • output

        public TypedIOPort output
        The output, which is always a DoubleToken representing the that a waiter waited for an input at the waitee input.
      • waiter

        public TypedIOPort waiter
        An input event here waits for the next event at the waitee input. The type of this port is undeclared, so any input is acceptable.
      • waitee

        public TypedIOPort waitee
        An input event here triggers an output event for each waiter input that arrived since the last input here. The type of this port is undeclared, so any input is acceptable.