ptolemy.actor.gt
Class GTIngredientsAttribute

java.lang.Object
  extended by ptolemy.kernel.util.NamedObj
      extended by ptolemy.kernel.util.Attribute
          extended by ptolemy.kernel.util.AbstractSettableAttribute
              extended by ptolemy.kernel.util.StringAttribute
                  extended by ptolemy.actor.gt.GTIngredientsAttribute
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable, Settable

public class GTIngredientsAttribute
extends StringAttribute

Since:
Ptolemy II 6.1
Version:
$Id: GTIngredientsAttribute.java,v 1.6.4.1 2008/03/25 22:12:09 cxh Exp $
Author:
Thomas Huining Feng
See Also:
Serialized Form
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Nested classes/interfaces inherited from interface ptolemy.kernel.util.Settable
Settable.Visibility
 
Field Summary
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Fields inherited from interface ptolemy.kernel.util.Settable
EXPERT, FULL, NONE, NOT_EDITABLE
 
Constructor Summary
GTIngredientsAttribute()
           
GTIngredientsAttribute(NamedObj container, java.lang.String name)
           
GTIngredientsAttribute(Workspace workspace)
           
 
Method Summary
 GTIngredientList getIngredientList()
           
 void setExpression(java.lang.String expression)
          Set the value of the string attribute and notify the container of the value of this attribute by calling attributeChanged().
 java.util.Collection<?> validate()
          Do nothing.
 
Methods inherited from class ptolemy.kernel.util.StringAttribute
_propagateValue, addValueListener, exportMoML, getExpression, getVisibility, removeValueListener, setVisibility
 
Methods inherited from class ptolemy.kernel.util.AbstractSettableAttribute
getDefaultExpression, getValueAsString
 
Methods inherited from class ptolemy.kernel.util.Attribute
_getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ptolemy.kernel.util.Settable
getDisplayName
 
Methods inherited from interface ptolemy.kernel.util.Nameable
description, getContainer, getFullName, getName, getName, setName
 

Constructor Detail

GTIngredientsAttribute

public GTIngredientsAttribute()

GTIngredientsAttribute

public GTIngredientsAttribute(NamedObj container,
                              java.lang.String name)
                       throws IllegalActionException,
                              NameDuplicationException
Throws:
IllegalActionException
NameDuplicationException

GTIngredientsAttribute

public GTIngredientsAttribute(Workspace workspace)
Method Detail

getIngredientList

public GTIngredientList getIngredientList()
                                   throws MalformedStringException
Throws:
MalformedStringException

setExpression

public void setExpression(java.lang.String expression)
                   throws IllegalActionException
Description copied from class: StringAttribute
Set the value of the string attribute and notify the container of the value of this attribute by calling attributeChanged(). Notify any value listeners of this attribute.

Specified by:
setExpression in interface Settable
Overrides:
setExpression in class StringAttribute
Parameters:
expression - The value of the string attribute.
Throws:
IllegalActionException - If the change is not acceptable to the container.
See Also:
StringAttribute.getExpression()

validate

public java.util.Collection<?> validate()
                                 throws IllegalActionException
Description copied from class: StringAttribute
Do nothing. There is no need to notify the container or listeners of this attribute because they have presumably already been notified in setExpression().

Specified by:
validate in interface Settable
Overrides:
validate in class StringAttribute
Returns:
Null, indicating that no other instances of Settable are validated.
Throws:
IllegalActionException - If the change is not acceptable to the container.