ptolemy.actor.gt.ingredients.operations
Class AttributeOperation
java.lang.Object
ptolemy.actor.gt.GTIngredient
ptolemy.actor.gt.ingredients.operations.Operation
ptolemy.actor.gt.ingredients.operations.AttributeOperation
public class AttributeOperation
- extends Operation
- Since:
- Ptolemy II 6.1
- Version:
- $Id: AttributeOperation.java,v 1.8.4.1 2008/03/25 22:12:14 cxh Exp $
- Author:
- Thomas Huining Feng
- Accepted Rating:
- Proposed Rating:
| Methods inherited from class ptolemy.actor.gt.GTIngredient |
_decodeBooleanField, _decodeStringField, _encodeBooleanField, _encodeStringField, _escapeElementString, _findMatchingParen, _findSeparator, _unescapeElementString, disableAll, enableAll, getOwner, isEnabled, setEnabled, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeOperation
public AttributeOperation(GTIngredientList owner)
AttributeOperation
public AttributeOperation(GTIngredientList owner,
java.lang.String values)
AttributeOperation
public AttributeOperation(GTIngredientList owner,
java.lang.String attributeName,
java.lang.String attributeClass,
java.lang.String attributeValue)
getChangeRequest
public ChangeRequest getChangeRequest(Pattern pattern,
Replacement replacement,
MatchResult matchResult,
Entity patternEntity,
Entity replacementEntity,
Entity hostEntity)
throws IllegalActionException
- Specified by:
getChangeRequest in class Operation
- Throws:
IllegalActionException
getElements
public GTIngredientElement[] getElements()
- Specified by:
getElements in class GTIngredient
getValue
public java.lang.Object getValue(int index)
- Specified by:
getValue in class GTIngredient
getValues
public java.lang.String getValues()
- Specified by:
getValues in class GTIngredient
isAttributeClassEnabled
public boolean isAttributeClassEnabled()
isAttributeNameEnabled
public boolean isAttributeNameEnabled()
isAttributeValueEnabled
public boolean isAttributeValueEnabled()
setAttributeClass
public void setAttributeClass(java.lang.String attributeClass)
setAttributeName
public void setAttributeName(java.lang.String attributeName)
setAttributeValue
public void setAttributeValue(java.lang.String attributeValue)
setValue
public void setValue(int index,
java.lang.Object value)
- Specified by:
setValue in class GTIngredient
setValues
public void setValues(java.lang.String values)
- Specified by:
setValues in class GTIngredient
validate
public void validate()
throws ValidationException
- Specified by:
validate in class GTIngredient
- Throws:
ValidationException
_reparse
protected void _reparse()
throws IllegalActionException
- Throws:
IllegalActionException