Class StringCriterionElement

  • Direct Known Subclasses:
    ChoiceCriterionElement

    public class StringCriterionElement
    extends CriterionElement
    A string element for a criterion.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Yellow (tfeng)
    • Constructor Summary

      Constructors 
      Constructor Description
      StringCriterionElement​(java.lang.String name, boolean canDisable)
      Construct a string element for a criterion.
      StringCriterionElement​(java.lang.String name, boolean canDisable, boolean acceptRegularExpression, boolean acceptPtolemyExpression)
      Construct a Boolean element for a criterion.
    • Constructor Detail

      • StringCriterionElement

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

        public StringCriterionElement​(java.lang.String name,
                                      boolean canDisable,
                                      boolean acceptRegularExpression,
                                      boolean acceptPtolemyExpression)
        Construct a Boolean element for a criterion.
        Parameters:
        name - The name of the element.
        canDisable - Whether the element can be disabled.
        acceptRegularExpression - Whether regular expression is accepted.
        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.
      • acceptRegularExpression

        public boolean acceptRegularExpression()
        Return whether regular expression is accepted.
        Returns:
        true if regular expression is accepted.