Class NonStrictDelay

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

    public class NonStrictDelay
    extends Transformer
    A nonstrict actor that delays tokens by one iteration.

    This actor provides a one-tick delay. On each firing, it produces on the output port whatever value it read on the input port in the previous tick of the clock. If the input was absent on the previous tick of the clock, then the output will be absent. On the first tick, the output is initialValue if it is given, and absent otherwise. In contrast to the Pre actor, this actor is non-strict, and hence can break causality loops. Whereas Pre provides a one-step delay of non-absent values, this actor simply delays by one clock tick.

    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Paul Whitaker, Elaine Cheong, and Edward A. Lee
    See Also:
    Pre, SampleDelay, TimedDelay
    Pt.AcceptedRating:
    Yellow (cxh)
    Pt.ProposedRating:
    Yellow (celaine)