Class Previous

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

    public class Previous
    extends DETransformer
    On each iteration, this actor produces the token received on the previous iteration. On the first iteration, it produces the token given by the initialValue parameter, if such a value has been set.

    Although it might be tempting to try, this actor is not very useful for breaking precedences in a feedback loop in DE, the way the TimedDelay actor in DE or the SampleDelay actor in SDF do. Since it does not trigger until there is an input, it will not actually break the precedences in a feedback loop.

    The output data type is constrained to be at least as general as both the input and the initialValue parameter.

    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    See Also:
    TimedDelay, SampleDelay
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (eal)