Class Case

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

    @Deprecated
    public class Case
    extends ModalModel
    Deprecated.
    Use ptolemy.actor.lib.hoc.Case instead.
    An actor that executes one of several refinements depending on the value provided by the control port-parameter. To use this, look inside, add refinement cases, and populate them with computations. Each refinement is a composite that is required to have its own director. The name of the refinement is value that the control must have to execute this refinement. This actor always provides one case called "default". This is the refinement that is executed if no other refinement matches the control input. All refinements have the same ports, and adding ports to any one refinement or to the case actor itself results in identical ports being added to all refinements.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (reviewmoderator)
    Pt.ProposedRating:
    Yellow (eal)
    • Field Detail

      • control

        public PortParameter control
        Deprecated.
        The input port-parameter on which the control token is provided. This can have any type, and is initialized with a default value of true.
      • _state

        protected State _state
        Deprecated.
        The one and only state.
      • _default

        protected Refinement _default
        Deprecated.
        The default refinement.