|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gt.AttributeMatcher
public class AttributeMatcher
A matcher to match any attribute. In the pattern of a TransformationRule, this matcher can be customized by instances of Criterion. In the replacement of a TransformationRule, operations can
be specified for this matcher with instances of Operation. The
operations will be performed on the attribute that is matched by the
corresponding matcher in the pattern, and is preserved after the
transformation.
| Red (tfeng) |
| Yellow (tfeng) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
private static java.lang.String |
_ICON_DESCRIPTION
The default icon description. |
private java.util.Set<java.lang.String> |
_labelSet
Cache of the label set. |
private long |
_version
The workspace version the last time when _labelSet was updated. |
GTIngredientsAttribute |
criteria
The attribute containing all the criteria in a list ( GTIngredientList). |
GTIngredientsEditor.Factory |
editorFactory
The editor factory for ingredients in this matcher. |
GTIngredientsAttribute |
operations
The attribute containing all the operations in a list ( GTIngredientList). |
PatternObjectAttribute |
patternObject
The attribute that specifies the name of the corresponding entity in the pattern. |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
AttributeMatcher(NamedObj container,
java.lang.String name)
Construct an attribute matcher to be either contained in the pattern of a TransformationRule or in the replacement. |
|
| Method Summary | |
|---|---|
GTIngredientsAttribute |
getCriteriaAttribute()
Return the attribute that stores all the criteria for this matcher. |
java.lang.String |
getDefaultIconDescription()
Return a string that contains the SVG icon description ("<svg>... |
GTIngredientsAttribute |
getOperationsAttribute()
Return the attribute that stores all the operations for this matcher. |
PatternObjectAttribute |
getPatternObjectAttribute()
Return the attribute that stores the name of the corresponding entity in the pattern of the same TransformationRule, if this entity is in
the replacement, or null otherwise. |
java.util.Set<java.lang.String> |
labelSet()
Return the set of names of ingredients contained in this entity that can be resolved. |
boolean |
match(NamedObj object)
Test whether this AtomicActorMatcher can match the given object. |
void |
updateAppearance(GTIngredientsAttribute attribute)
Do nothing. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.kernel.util.Nameable |
|---|
description, getContainer, getDisplayName, getFullName, getName, getName, setName |
| Field Detail |
|---|
public GTIngredientsAttribute criteria
GTIngredientList).
public GTIngredientsEditor.Factory editorFactory
public GTIngredientsAttribute operations
GTIngredientList).
public PatternObjectAttribute patternObject
private static final java.lang.String _ICON_DESCRIPTION
private java.util.Set<java.lang.String> _labelSet
private long _version
| Constructor Detail |
|---|
public AttributeMatcher(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
TransformationRule or in the replacement.
container - The proposed container of this matcher.name - The name of this matcher.
IllegalActionException - If this actor cannot be contained by
the proposed container.
NameDuplicationException - If the name coincides with an entity
already in the container.| Method Detail |
|---|
public GTIngredientsAttribute getCriteriaAttribute()
getCriteriaAttribute in interface GTEntitypublic java.lang.String getDefaultIconDescription()
getDefaultIconDescription in interface GTEntitypublic GTIngredientsAttribute getOperationsAttribute()
getOperationsAttribute in interface GTEntitypublic PatternObjectAttribute getPatternObjectAttribute()
TransformationRule, if this entity is in
the replacement, or null otherwise.
getPatternObjectAttribute in interface GTEntitylabelSet()public java.util.Set<java.lang.String> labelSet()
labelSet in interface GTEntitypublic boolean match(NamedObj object)
ComponentEntity.
match in interface GTEntityobject - The NamedObj.
public void updateAppearance(GTIngredientsAttribute attribute)
updateAppearance in interface GTEntityattribute - The attribute containing ingredients of this entity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||