Class StringOperationElement


  • public class StringOperationElement
    extends OperationElement
    A string element for an operation.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Yellow (tfeng)
    • Constructor Summary

      Constructors 
      Constructor Description
      StringOperationElement​(java.lang.String name, boolean canDisable)
      Construct a string element for an operation.
      StringOperationElement​(java.lang.String name, boolean canDisable, boolean acceptPtolemyExpression)
      Construct a Boolean element for an operation.
    • Constructor Detail

      • StringOperationElement

        public StringOperationElement​(java.lang.String name,
                                      boolean canDisable)
        Construct a string element for an operation.
        Parameters:
        name - The name of the element.
        canDisable - Whether the element can be disabled.
      • StringOperationElement

        public StringOperationElement​(java.lang.String name,
                                      boolean canDisable,
                                      boolean acceptPtolemyExpression)
        Construct a Boolean element for an operation.
        Parameters:
        name - The name of the element.
        canDisable - Whether the element can be disabled.
        acceptPtolemyExpression - Whether Ptolemy expression is accepted.
    • Method Detail

      • acceptPtolemyExpression

        public boolean acceptPtolemyExpression()
        Return whether Ptolemy expression is accepted.
        Returns:
        true if Ptolemy expression is accepted.