Class MonitorValue

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

    public class MonitorValue
    extends Sink
    implements PortablePlaceable
    Monitor inputs by setting the value parameter equal to each arriving token. This actor can be used with an icon that displays the value of a parameter to get on-screen display of values in a diagram. The value is updated only in postfire.

    Note that the icon for this actor is defined in ptolemy/actor/lib/genericsinks.xml, which looks something like

    <entity name="MonitorValue" class="ptolemy.actor.lib.MonitorValue">
    <doc>Monitor and display values</doc>
       <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="20"/>
       <property name="_icon" class="ptolemy.vergil.icon.UpdatedValueIcon">
          <property name="attributeName" value="value"/>
          <property name="displayWidth" value="displayWidth"/>
       </property>
    </entity>
     
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (bilung)
    Pt.ProposedRating:
    Yellow (eal)