public class AtomicActorMatcher extends TypedAtomicActor implements GTEntity, ValueListener
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.CompositeActorMatcher
Red (tfeng) |
Yellow (tfeng) |
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
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.
|
_typesValid
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
AtomicActorMatcher(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. |
Modifier and Type | Method and Description |
---|---|
protected void |
_exportMoMLContents(java.io.Writer output,
int depth)
Write a MoML description of the contents of this object, which
in this class are the attributes plus the ports.
|
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)
Update appearance of this entity.
|
void |
valueChanged(Settable settable)
React to the fact that the specified Settable has changed.
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, fire, getCausalityInterface, getDirector, getExecutiveDirector, getManager, initialize, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, prefire, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName
_addPort, _description, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
description, getContainer, getDisplayName, getFullName, getName, getName, setName
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
fire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate
addInitializable, initialize, preinitialize, removeInitializable, wrapup
getDerivedLevel, getDerivedList, propagateValue
public GTIngredientsAttribute criteria
GTIngredientList
).public GTIngredientsEditor.Factory editorFactory
public GTIngredientsAttribute operations
GTIngredientList
).public PatternObjectAttribute patternObject
public AtomicActorMatcher(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.public GTIngredientsAttribute getCriteriaAttribute()
getCriteriaAttribute
in interface GTEntity
public java.lang.String getDefaultIconDescription()
getDefaultIconDescription
in interface GTEntity
public GTIngredientsAttribute getOperationsAttribute()
getOperationsAttribute
in interface GTEntity
public PatternObjectAttribute getPatternObjectAttribute()
TransformationRule
, if this entity is in
the replacement, or null otherwise.getPatternObjectAttribute
in interface GTEntity
labelSet()
public java.util.Set<java.lang.String> labelSet()
public boolean match(NamedObj object)
ComponentEntity
.public void updateAppearance(GTIngredientsAttribute attribute)
updateAppearance
in interface GTEntity
attribute
- The attribute containing ingredients of this entity.GTEntityUtils.updateAppearance(GTEntity, GTIngredientsAttribute)
public void valueChanged(Settable settable)
valueChanged
in interface ValueListener
settable
- The object that has changed value.GTEntityUtils.valueChanged(GTEntity, Settable)
protected void _exportMoMLContents(java.io.Writer output, int depth) throws java.io.IOException
_exportMoMLContents
in class Entity<TypedIOPort>
output
- The output to write to.depth
- The depth in the hierarchy, to determine indenting.java.io.IOException
- If an I/O error occurs.NamedObj.exportMoML(Writer, int)