Class Current

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

    public class Current
    extends Transformer
    Output the most recent input received.

    At each tick of the clock, this actor outputs the most recently received non-absent input. If no input has been received, then the output is absent. This implements the Lustre "current" operator.

    P. Caspi, D. Pilaud, N. Halbwachs, and J. A. Plaice, "LUSTRE: A Declarative Language for Programming Synchronous Systems," Conference Record of the 14th Annual ACM Symp. on Principles of Programming Languages, Munich, Germany, January, 1987.

    Since:
    Ptolemy II 4.1
    Version:
    $Id$
    Author:
    Paul Whitaker, Christopher Hylands, Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh) Should support multiports
    Pt.ProposedRating:
    Yellow (cxh)