ptolemy.actor.gt
Class GTIngredientsAttribute
java.lang.Object
ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.kernel.util.AbstractSettableAttribute
ptolemy.kernel.util.StringAttribute
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:
- Proposed Rating:
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
|
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.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 |
GTIngredientsAttribute
public GTIngredientsAttribute()
GTIngredientsAttribute
public GTIngredientsAttribute(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Throws:
IllegalActionException
NameDuplicationException
GTIngredientsAttribute
public GTIngredientsAttribute(Workspace workspace)
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.