Class While

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

    public class While
    extends IfThen

    A While actor for the sequence domain. In an iteration, if an input token is available at the If input, that token is read. The Then output is set to true, if then If input is true. The If port may only receive Tokens of type Boolean. The output ports are also of type boolean.

    While is a ControlActor, meaning that it keeps a list of enabled output ports. The sequence and process director will keep scheduling the While actor until its input condition becomes false. Care must be taken when using this actor, since it can potentially cause an infinite loop in a model's execution.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)