|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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.domains.modal.kernel.FSMActor
ptolemy.actor.gt.FSMMatcher
public class FSMMatcher
A matcher to match any FSM actor.
Red (tfeng) |
Yellow (tfeng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.domains.modal.kernel.FSMActor |
---|
FSMActor.PortScope |
Nested classes/interfaces inherited from class ptolemy.kernel.CompositeEntity |
---|
CompositeEntity.ContainedObjectsIterator |
Field Summary | |
---|---|
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.domains.modal.kernel.FSMActor |
---|
_currentState, _initializables, _inputTokenMap, _lastChosenTransition, _stopRequested, finalStateNames, initialStateName, stateDependentCausality |
Fields inherited from class ptolemy.kernel.CompositeEntity |
---|
_levelCrossingLinks |
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 | |
---|---|
FSMMatcher(CompositeEntity container,
java.lang.String name)
Create an FSMMatcher in the specified container with the specified name. |
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 FSMMatcher can match the given object. |
ComponentRelation |
newRelation(java.lang.String name)
Create a new instance of Transition with the specified name in this actor, and return it. |
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.kernel.ComponentEntity |
---|
_addPort, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName |
Methods inherited from class ptolemy.kernel.Entity |
---|
_removePort, connectedPortList, connectedPorts, connectionsChanged, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts |
Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
---|
_setParent, 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.actor.TypedActor |
---|
typeConstraints |
Methods inherited from interface ptolemy.actor.Actor |
---|
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, 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.Nameable |
---|
description, getContainer, getDisplayName, getFullName, getName, getName, setName |
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
private java.util.Set<java.lang.String> _labelSet
private long _version
Constructor Detail |
---|
public FSMMatcher(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container.name
- The name of this actor within the container.
IllegalActionException
- If the entity 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 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()
labelSet
in interface GTEntity
public boolean match(NamedObj object)
match
in interface GTEntity
object
- The NamedObj.
public ComponentRelation newRelation(java.lang.String name) throws IllegalActionException, NameDuplicationException
newRelation
in class FSMActor
name
- The name of the new transition.
IllegalActionException
- If the name argument is null.
NameDuplicationException
- If name collides with that
of a transition already in this actor.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |