Class GTIngredientElement

  • Direct Known Subclasses:
    CriterionElement, OperationElement

    public class GTIngredientElement
    extends java.lang.Object
    Superclass of any element that can be contained in a GTIngredient.
    Since:
    Ptolemy II 7.1
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Yellow (tfeng)
    • Constructor Summary

      Constructors 
      Constructor Description
      GTIngredientElement​(java.lang.String name, boolean canDisable)
      Construct an element that can be added to a GTIngredient.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canDisable()
      Return whether this element can be disabled.
      java.lang.String getName()
      Return the name of this element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GTIngredientElement

        public GTIngredientElement​(java.lang.String name,
                                   boolean canDisable)
        Construct an element that can be added to a GTIngredient.
        Parameters:
        name - The name of the element.
        canDisable - Whether this element can be disabled.
    • Method Detail

      • canDisable

        public boolean canDisable()
        Return whether this element can be disabled.
        Returns:
        true if this element can be disabled; false otherwise.
      • getName

        public java.lang.String getName()
        Return the name of this element.
        Returns:
        The name.