public class TransitionMatcher extends Transition implements GTEntity, ValueListener
Red (tfeng) |
Yellow (tfeng) |
NamedObj.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.
|
annotation, defaultTransition, error, exitAngle, fsmTransitionParameterName, gamma, guardExpression, history, immediate, nondeterministic, outputActions, preemptive, refinementName, setActions, showFSMTransitionParameter, termination
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TransitionMatcher(FSMActor container,
java.lang.String name)
Construct a transition matcher with the given name contained by the
specified entity.
|
Modifier and Type | Method and Description |
---|---|
GTIngredientsAttribute |
getCriteriaAttribute()
Return the attribute that stores all the criteria for this matcher.
|
java.lang.String |
getDefaultIconDescription()
Return null.
|
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)
Return true if the given object matches any transition in an FSM
controller or the modal model controller.
|
void |
updateAppearance(GTIngredientsAttribute attribute)
Update appearance of this entity.
|
void |
valueChanged(Settable settable)
React to the fact that the specified Settable has changed.
|
_checkPort, attributeChanged, choiceActionList, clone, commitActionList, destinationState, getFullLabel, getGuardExpression, getLabel, getParseTreeEvaluator, getRefinement, isDefault, isEnabled, isEnabled, isErrorTransition, isHistory, isImmediate, isNondeterministic, isPreemptive, isTermination, setContainer, setFsmTransitionParameter, setGuardExpression, sourceState
_checkContainer, _checkRelation, _propagateExistence, deepLinkedPortList, deepLinkedPorts, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, unlinkAll
_description, _getContainedObject, link, linkedObjectsList, linkedPortList, linkedPortList, linkedPorts, linkedPorts, numLinks, relationGroupList, unlink
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
description, getContainer, getDisplayName, getFullName, getName, getName, setName
public GTIngredientsAttribute criteria
GTIngredientList
).public GTIngredientsEditor.Factory editorFactory
public GTIngredientsAttribute operations
GTIngredientList
).public PatternObjectAttribute patternObject
public TransitionMatcher(FSMActor container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the transition.IllegalActionException
- If the container is incompatible
with this transition.NameDuplicationException
- If the name coincides with
any relation 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)
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)