|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.InstantiableNamedObj
ptolemy.kernel.Entity
ptolemy.kernel.ComponentEntity
ptolemy.kernel.CompositeEntity
ptolemy.actor.CompositeActor
ptolemy.actor.TypedCompositeActor
ptolemy.actor.gt.CompositeActorMatcher
public class CompositeActorMatcher
A matcher to match a level of hierarchy in a hierarchical model. In the pattern
of a TransformationRule, this matcher can be customized by instances of
Criterion. A PortCriterion, for instance, customizes this
matcher with an additional port, whose type and name can be specified. In the
replacement of a TransformationRule, operations can be specified for
this matcher with instances of Operation. The operations will be
performed on the actor that is matched by the corresponding matcher in the
pattern, and is preserved after the transformation.
AtomicActorMatcher,
Serialized Form
| Red (tfeng) |
| Red (tfeng) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.CompositeEntity |
|---|
CompositeEntity.ContainedObjectsIterator |
| Field Summary | |
|---|---|
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. |
ActorScopeExtender |
scopeExtender
The scope extender that expression evaluators use to resolve objects within this matcher. |
| Fields inherited from class ptolemy.actor.CompositeActor |
|---|
_actorFiringListeners, _functionDependency, _initializables, _notifyingActorFiring, _stopRequested |
| 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.actor.Executable |
|---|
COMPLETED, NOT_READY, STOP_ITERATING |
| Constructor Summary | |
|---|---|
CompositeActorMatcher(CompositeEntity container,
java.lang.String name)
Construct an atomic actor 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>... |
Token |
getIngredientToken(java.lang.String name)
Return a token that contains an ingredient with the given name contained by this entity, or null if the ingredient cannot be resolved. |
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. |
void |
updateAppearance(GTIngredientsAttribute attribute)
Update appearance of this entity. |
void |
valueChanged(Settable settable)
React to the fact that the specified Settable has changed. |
| Methods inherited from class ptolemy.actor.TypedCompositeActor |
|---|
_addEntity, _addPort, _addRelation, _checkTypesFromTo, _typeConstraintsFromTo, newPort, newRelation, resolveTypes, typeConstraintList |
| Methods inherited from class ptolemy.kernel.ComponentEntity |
|---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName |
| Methods inherited from class ptolemy.kernel.Entity |
|---|
_removePort, connectedPortList, connectedPorts, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts |
| Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
|---|
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition |
| 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 |
| Methods inherited from interface ptolemy.actor.Actor |
|---|
getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, newReceiver, outputPortList |
| Methods inherited from interface ptolemy.actor.Executable |
|---|
fire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate |
| Methods inherited from interface ptolemy.actor.Initializable |
|---|
addInitializable, initialize, preinitialize, removeInitializable, wrapup |
| Methods inherited from interface ptolemy.kernel.util.Derivable |
|---|
getDerivedLevel, getDerivedList, propagateValue |
| Field Detail |
|---|
public GTIngredientsAttribute criteria
GTIngredientList).
public GTIngredientsEditor.Factory editorFactory
public GTIngredientsAttribute operations
GTIngredientList).
public PatternObjectAttribute patternObject
public ActorScopeExtender scopeExtender
| Constructor Detail |
|---|
public CompositeActorMatcher(CompositeEntity 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 Token getIngredientToken(java.lang.String name)
getIngredientToken in interface GTEntityname - The name of the ingredient.
public 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 GTEntitygetIngredientToken(String)public void updateAppearance(GTIngredientsAttribute attribute)
updateAppearance in interface GTEntityattribute - The attribute containing ingredients of this entity.GTEntityUtils.updateAppearance(GTEntity, GTIngredientsAttribute)public void valueChanged(Settable settable)
valueChanged in interface ValueListenersettable - The object that has changed value.GTEntityUtils.valueChanged(GTEntity, Settable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||