uci.uml.Behavioral_Elements.State_Machines
Class StateMachine

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
        |
        +--uci.uml.Foundation.Core.ModelElementImpl
              |
              +--uci.uml.Behavioral_Elements.State_Machines.StateMachine
Direct Known Subclasses:
ActivityModel

public class StateMachine
extends ModelElementImpl

By default, Statemachines are in the same Namespace as their context ModelElement, and Transitions and States and substatemachines within a StateMachine are in the same Namespace.

See Also:
Serialized Form

Field Summary
 ModelElement _context
           
 Vector _submachineState
           
 State _top
           
 Vector _transitions
           
 
Fields inherited from class uci.uml.Foundation.Core.ModelElementImpl
_behavior, _collaboration, _constraint, _elementOwnership, _elementReference, _provision, _requirement, _stereotype, _taggedValue, _template, _templateParameter, MAX_STEREOTYPE
 
Fields inherited from class uci.uml.Foundation.Core.ElementImpl
_characteristic, _classification, _highlight, _name, _propertyListeners, _staticListener, _taggedValue, _vetoListeners, elementID
 
Constructor Summary
StateMachine()
           
StateMachine(Name name)
           
StateMachine(Name name, ModelElement context)
           
StateMachine(String nameStr)
           
StateMachine(String nameStr, ModelElement context)
           
 
Method Summary
 void addSubmachineState(SubmachineState x)
           
 void addTransition(Transition x)
           
 Vector alsoTrash()
           
 String dbgString()
           
 ModelElement getContext()
           
 Vector getSubmachineState()
           
 State getTop()
           
 Vector getTransitions()
           
 void removeSubmachineState(SubmachineState x)
           
 void removeTransition(Transition x)
           
 void setContext(ModelElement x)
           
 void setSubmachineState(Vector x)
           
 void setTop(State x)
           
 void setTransitions(Vector x)
           
 
Methods inherited from class uci.uml.Foundation.Core.ModelElementImpl
addBehavior, addConstraint, addElementReference, addProvision, addRequirement, addStereotype, addTemplateParameter, containsStereotype, dbgStereotypes, dbgTaggedValues, getBehavior, getConstraint, getElementOwnership, getElementReference, getNamespace, getProvision, getRequirement, getStereotype, getTemplate, getTemplateParameter, getVisibility, isLegalXMI, isNotLegalXMI, prepareForTrash, recoverFromTrash, removeBehavior, removeConstraint, removeElementReference, removeProvision, removeRequirement, removeStereotype, removeTemplateParameter, setBehavior, setConstraint, setElementOwnership, setElementReference, setNamespace, setProvision, setRequirement, setStereotype, setTemplate, setTemplateParameter, setVisibility
 
Methods inherited from class uci.uml.Foundation.Core.ElementImpl
addCharacteristic, addPropertyChangeListener, addTaggedValue, addVetoableChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChangeNoCritique, firePropertyChangeNoCritique, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChangeNoCompare, getCharacteristic, getClassification, getElementCount, getHighlight, getId, getName, getNamedProperty, getOCLTypeStr, getTaggedValue, getVetoListeners, newElementID, removeCharacteristic, removePropertyChangeListener, removeTaggedValue, removeVetoableChangeListener, setCharacteristic, setClassification, setElementCount, setHighlight, setId, setName, setName, setStaticChangeListener, setTaggedValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_context

public ModelElement _context

_top

public State _top

_transitions

public Vector _transitions

_submachineState

public Vector _submachineState
Constructor Detail

StateMachine

public StateMachine()

StateMachine

public StateMachine(Name name)

StateMachine

public StateMachine(Name name,
                    ModelElement context)

StateMachine

public StateMachine(String nameStr)

StateMachine

public StateMachine(String nameStr,
                    ModelElement context)
Method Detail

getContext

public ModelElement getContext()

setContext

public void setContext(ModelElement x)
                throws PropertyVetoException

getTop

public State getTop()

setTop

public void setTop(State x)
            throws PropertyVetoException

getTransitions

public Vector getTransitions()

setTransitions

public void setTransitions(Vector x)
                    throws PropertyVetoException

addTransition

public void addTransition(Transition x)
                   throws PropertyVetoException

removeTransition

public void removeTransition(Transition x)
                      throws PropertyVetoException

getSubmachineState

public Vector getSubmachineState()

setSubmachineState

public void setSubmachineState(Vector x)
                        throws PropertyVetoException

addSubmachineState

public void addSubmachineState(SubmachineState x)
                        throws PropertyVetoException

removeSubmachineState

public void removeSubmachineState(SubmachineState x)
                           throws PropertyVetoException

alsoTrash

public Vector alsoTrash()
Overrides:
alsoTrash in class ModelElementImpl

dbgString

public String dbgString()
Overrides:
dbgString in class ElementImpl