|
||||||||||
| 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.domains.fsm.kernel.State
A State has two ports: one for linking incoming transitions, the other for outgoing transitions. When the FSMActor containing a state is the mode controller of a modal model, the state can be refined by one or more instances of TypedActor. The refinements must have the same container as the FSMActor. During execution of a modal model, only the mode controller and the refinements of the current state of the mode controller react to input to the modal model and produce output. The outgoing transitions from a state are either preemptive or non-preemptive. When a modal model is fired, if a preemptive transition from the current state of the mode controller is chosen, the refinements of the current state are not fired. Otherwise the refinements are fired before choosing a non-preemptive transition.
Transition,
FSMActor,
FSMDirector,
Serialized Form
| Yellow (kienhuis) |
| Yellow (liuxj) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.Entity |
Entity.ContainedObjectsIterator |
| Field Summary | |
ComponentPort |
incomingPort
The port linking incoming transitions. |
ComponentPort |
outgoingPort
The port linking outgoing transitions. |
StringAttribute |
refinementName
Attribute specifying one or more names of refinements. |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
State(CompositeEntity container,
java.lang.String name)
Construct a state with the given name contained by the specified composite entity. |
|
| Method Summary | |
void |
attributeChanged(Attribute attribute)
React to a change in an attribute. |
java.lang.Object |
clone(Workspace workspace)
Clone the state into the specified workspace. |
TypedActor[] |
getRefinement()
Return the refinements of this state. |
java.util.List |
nonpreemptiveTransitionList()
Return the list of non-preemptive outgoing transitions from this state. |
java.util.List |
preemptiveTransitionList()
Return the list of preemptive outgoing transitions from this state. |
| Methods inherited from class ptolemy.kernel.ComponentEntity |
_addPort, _adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, newPort, propagateExistence, setContainer, setName |
| Methods inherited from class ptolemy.kernel.Entity |
_description, _exportMoMLContents, _removePort, connectedPortList, connectedPorts, connectionsChanged, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName, validateSettables |
| Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.kernel.util.Derivable |
getDerivedLevel, getDerivedList, propagateValue |
| Methods inherited from interface ptolemy.kernel.util.Nameable |
description, getFullName, getName, getName |
| Field Detail |
public ComponentPort incomingPort
public ComponentPort outgoingPort
public StringAttribute refinementName
| Constructor Detail |
public State(CompositeEntity container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the state.
IllegalActionException - If the state cannot be contained
by the proposed container.
NameDuplicationException - If the name coincides with
that of an entity already in the container.| Method Detail |
public void attributeChanged(Attribute attribute)
throws IllegalActionException
attributeChanged in class NamedObjattribute - The attribute that changed.
IllegalActionException - If thrown by the superclass
attributeChanged() method.
public java.lang.Object clone(Workspace workspace)
throws java.lang.CloneNotSupportedException
clone in class ComponentEntityworkspace - The workspace for the new state.
java.lang.CloneNotSupportedException - If a derived class contains
an attribute that cannot be cloned.
public TypedActor[] getRefinement()
throws IllegalActionException
IllegalActionException - If the specified refinement
cannot be found, or if a comma-separated list is malformed.public java.util.List nonpreemptiveTransitionList()
public java.util.List preemptiveTransitionList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||