uk.ac.ucl.cs.uml.jmi.impl.BehavioralElements.StateMachines
Class SubmachineState_Impl

java.lang.Object
  extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
      extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
          extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
              extended by uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObjectImpl
                  extended by uk.ac.ucl.cs.uml.jmi.impl.BehavioralElements.StateMachines.SubmachineState_Impl
All Implemented Interfaces:
javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, ExtObject, CompositeState, State, StateVertex, SubmachineState, Element, ModelElement

public class SubmachineState_Impl
extends ExtObjectImpl
implements SubmachineState

Instance implementation for type SubmachineState


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
RefFeaturedImpl.Getter, RefFeaturedImpl.Setter
 
Field Summary
 
Fields inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
DELEGATOR, MOF_ID, PROXY
 
Fields inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
IMMEDIATE_PACKAGE, META_OBJECT
 
Constructor Summary
SubmachineState_Impl(RefPackageImpl immediatePackage, javax.jmi.reflect.RefObject metaObject, RefClassImpl proxy, javax.jmi.reflect.RefObject delegator)
           
 
Method Summary
 ExtObject extDeepCopy(Map objectMap)
           
 boolean extEquals(ExtObject extObject)
           
 int extValueHash()
           
 Object extVisit(ExtVisitor visitor, Object argument)
           
 Collection getAsArgument()
          Indicates zero or more TemplateArgument for which the model element is an argument in a template binding.
 Collection getBehavior()
          Not documented in spec! from ::"Behavioral Elements"::"State Machines"::StateMachine, pg.
 Collection getClientDependency()
          Inverse of client.
 Collection getComment()
          Not documented in spec!
 Collection getConstraint()
          A set of Constraints affecting the element.
 Collection getContainer()
          The component that an implemented model element resides in.
 CompositeState getContainerState()
          JS: The container attribute clashes in name with ModelElement.container.
 ModelElement getDefaultElement()
          Not part of specification! Merged from TemplateParameter association class.
 Collection getDeferrableEvent()
           
 Procedure getDoActivity()
           
 Procedure getEntry()
           
 Procedure getExit()
           
 Collection getIncoming()
           
 Collection getInternalTransition()
           
 boolean getIsSpecification()
          Not part of specification! Merged from ElementOwnership association class.
 String getName()
          An identifier for the ModelElement within its containing Namespace.
 Namespace getNamespace()
          Designates the Namespace that contains the ModelElement.
 Collection getOutgoing()
           
 Collection getPackage()
          Not documented in spec!
 Collection getPresentation()
          A set of PresentationElements that present a view of the ModelElement.
 Collection getReferenceTag()
          Not documented in spec!
 Collection getSourceFlow()
          Not documented in spec!
 StateMachine getStateMachine()
           
 Collection getStereotype()
          Designates the stereotypes that further qualify the UML metaclass (the base class or one of its subclasses) of the modeling element.
 StateMachine getSubmachine()
           
 Collection getSubvertex()
           
 Collection getSupplierDependency()
          Inverse of supplier.
 Collection getTaggedValue()
          An arbitrary property attached to the model element based on an associated tag definition.
 Collection getTargetFlow()
          Not documented in spec!
 ModelElement getTemplate()
          Not documented in spec!
 Collection getTemplateArgument()
          Not documented in spec! From diagram p.
 List getTemplateParameter()
          (association class TemplateParameter) A composite aggregation ordered list of parameters.
 VisibilityKind getVisibility()
          Not part of specification! Merged from ElementOwnership association class.
 void refDelete()
          Removes all references to this object, and calls superclass proxies to do the same.
 Object refGetValue(String featureName)
           
 Object refInvokeOperation(String requestedOperation, List args)
          Not implemented.
 void refSetValue(String featureName, Object value)
           
 Collection refVerifyConstraints(boolean deepVerify)
           
 void setContainerState(CompositeState containerState)
          Setter for atomic property containerState)
 void setDefaultElement(ModelElement defaultElement)
          Setter for atomic property defaultElement)
 void setDoActivity(Procedure doActivity)
          Setter for atomic property doActivity)
 void setEntry(Procedure entry)
          Setter for atomic property entry)
 void setExit(Procedure exit)
          Setter for atomic property exit)
 void setIsSpecification(boolean isSpecification)
          Setter for atomic property isSpecification)
 void setName(String name)
          Setter for atomic property name)
 void setNamespace(Namespace namespace)
          Setter for atomic property namespace)
 void setStateMachine(StateMachine stateMachine)
          Setter for atomic property stateMachine)
 void setSubmachine(StateMachine newValue)
          Setter for atomic property submachine)
 void setTemplate(ModelElement template)
          Setter for atomic property template)
 void setVisibility(VisibilityKind visibility)
          Setter for atomic property visibility)
 String toString()
           
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObjectImpl
componentEquals, extAddObjectListener, extDeepCopy, extRemoveObjectListener, extSetImmediateComposite, firePropertyValueAdded, firePropertyValueChanged, firePropertyValueRemoved, javaEquals, javaEquals, javaEquals, javaEquals, javaEquals, javaEquals, refImmediateComposite
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefObjectImpl
refClass, refIsInstanceOf, refMofId, refOutermostComposite
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
refGetValue, refInvokeOperation, refSetValue
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
refImmediatePackage, refMetaObject, refOutermostPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extRemoveObjectListener
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage
 

Constructor Detail

SubmachineState_Impl

public SubmachineState_Impl(RefPackageImpl immediatePackage,
                            javax.jmi.reflect.RefObject metaObject,
                            RefClassImpl proxy,
                            javax.jmi.reflect.RefObject delegator)
Method Detail

refGetValue

public Object refGetValue(String featureName)
Specified by:
refGetValue in interface javax.jmi.reflect.RefFeatured

refSetValue

public void refSetValue(String featureName,
                        Object value)
Specified by:
refSetValue in interface javax.jmi.reflect.RefFeatured

refInvokeOperation

public Object refInvokeOperation(String requestedOperation,
                                 List args)
                          throws javax.jmi.reflect.RefException
Not implemented.

Specified by:
refInvokeOperation in interface javax.jmi.reflect.RefFeatured
Throws:
javax.jmi.reflect.RefException

refDelete

public void refDelete()
Removes all references to this object, and calls superclass proxies to do the same.

Specified by:
refDelete in interface javax.jmi.reflect.RefObject
Overrides:
refDelete in class RefObjectImpl

refVerifyConstraints

public Collection refVerifyConstraints(boolean deepVerify)
Specified by:
refVerifyConstraints in interface javax.jmi.reflect.RefBaseObject

getConstraint

public Collection getConstraint()
                         throws javax.jmi.reflect.JmiException
A set of Constraints affecting the element. A constraint that must be satisfied by the model element. A model element may have a set of constraints. The constraint is to be evaluated when the system is stable; that is, not in the middle of an atomic operation.

Specified by:
getConstraint in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getIsSpecification

public boolean getIsSpecification()
                           throws javax.jmi.reflect.JmiException
Not part of specification! Merged from ElementOwnership association class.

Specified by:
getIsSpecification in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setIsSpecification

public void setIsSpecification(boolean isSpecification)
                        throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property isSpecification)

Specified by:
setIsSpecification in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getDeferrableEvent

public Collection getDeferrableEvent()
                              throws javax.jmi.reflect.JmiException
Specified by:
getDeferrableEvent in interface State
Throws:
javax.jmi.reflect.JmiException

getComment

public Collection getComment()
                      throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getComment in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getContainerState

public CompositeState getContainerState()
                                 throws javax.jmi.reflect.JmiException
JS: The container attribute clashes in name with ModelElement.container. Hence it has been renamed containerState

Specified by:
getContainerState in interface StateVertex
Throws:
javax.jmi.reflect.JmiException

setContainerState

public void setContainerState(CompositeState containerState)
                       throws javax.jmi.reflect.JmiException
Description copied from interface: StateVertex
Setter for atomic property containerState)

Specified by:
setContainerState in interface StateVertex
Throws:
javax.jmi.reflect.JmiException

getTemplateArgument

public Collection getTemplateArgument()
                               throws javax.jmi.reflect.JmiException
Not documented in spec! From diagram p. 2-17.

Specified by:
getTemplateArgument in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getDefaultElement

public ModelElement getDefaultElement()
                               throws javax.jmi.reflect.JmiException
Not part of specification! Merged from TemplateParameter association class.

Specified by:
getDefaultElement in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setDefaultElement

public void setDefaultElement(ModelElement defaultElement)
                       throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property defaultElement)

Specified by:
setDefaultElement in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getPresentation

public Collection getPresentation()
                           throws javax.jmi.reflect.JmiException
A set of PresentationElements that present a view of the ModelElement.

Specified by:
getPresentation in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getIncoming

public Collection getIncoming()
                       throws javax.jmi.reflect.JmiException
Specified by:
getIncoming in interface StateVertex
Throws:
javax.jmi.reflect.JmiException

getContainer

public Collection getContainer()
                        throws javax.jmi.reflect.JmiException
The component that an implemented model element resides in. Called implementationLocation in spec! Name taken from diagram on p. 2-16.

Specified by:
getContainer in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getDoActivity

public Procedure getDoActivity()
                        throws javax.jmi.reflect.JmiException
Specified by:
getDoActivity in interface State
Throws:
javax.jmi.reflect.JmiException

setDoActivity

public void setDoActivity(Procedure doActivity)
                   throws javax.jmi.reflect.JmiException
Description copied from interface: State
Setter for atomic property doActivity)

Specified by:
setDoActivity in interface State
Throws:
javax.jmi.reflect.JmiException

getReferenceTag

public Collection getReferenceTag()
                           throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getReferenceTag in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getStereotype

public Collection getStereotype()
                         throws javax.jmi.reflect.JmiException
Designates the stereotypes that further qualify the UML metaclass (the base class or one of its subclasses) of the modeling element. The stereotype does not conflict with or contradict the standard semantics of the metaclass to which it applies, but may specify additional constraints and tag definitions. All constraints and tag definitions on a stereotype apply to the model elements that are branded by the stereotype. The stereotype acts as a virtual metaclass describing the model element.

Specified by:
getStereotype in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getExit

public Procedure getExit()
                  throws javax.jmi.reflect.JmiException
Specified by:
getExit in interface State
Throws:
javax.jmi.reflect.JmiException

setExit

public void setExit(Procedure exit)
             throws javax.jmi.reflect.JmiException
Description copied from interface: State
Setter for atomic property exit)

Specified by:
setExit in interface State
Throws:
javax.jmi.reflect.JmiException

getTargetFlow

public Collection getTargetFlow()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getTargetFlow in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getName

public String getName()
               throws javax.jmi.reflect.JmiException
An identifier for the ModelElement within its containing Namespace.

Specified by:
getName in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setName

public void setName(String name)
             throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property name)

Specified by:
setName in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getEntry

public Procedure getEntry()
                   throws javax.jmi.reflect.JmiException
Specified by:
getEntry in interface State
Throws:
javax.jmi.reflect.JmiException

setEntry

public void setEntry(Procedure entry)
              throws javax.jmi.reflect.JmiException
Description copied from interface: State
Setter for atomic property entry)

Specified by:
setEntry in interface State
Throws:
javax.jmi.reflect.JmiException

getInternalTransition

public Collection getInternalTransition()
                                 throws javax.jmi.reflect.JmiException
Specified by:
getInternalTransition in interface State
Throws:
javax.jmi.reflect.JmiException

getAsArgument

public Collection getAsArgument()
                         throws javax.jmi.reflect.JmiException
Indicates zero or more TemplateArgument for which the model element is an argument in a template binding. This AssociationEnd is not named in class diagram on p.2-17!

Specified by:
getAsArgument in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getStateMachine

public StateMachine getStateMachine()
                             throws javax.jmi.reflect.JmiException
Specified by:
getStateMachine in interface State
Throws:
javax.jmi.reflect.JmiException

setStateMachine

public void setStateMachine(StateMachine stateMachine)
                     throws javax.jmi.reflect.JmiException
Description copied from interface: State
Setter for atomic property stateMachine)

Specified by:
setStateMachine in interface State
Throws:
javax.jmi.reflect.JmiException

getTemplateParameter

public List getTemplateParameter()
                          throws javax.jmi.reflect.JmiException
(association class TemplateParameter) A composite aggregation ordered list of parameters. Each parameter is a dummy ModelElement designated as a placeholder for a real ModelElement to be substituted during a binding of the template (see Binding). The real model element must be of the same kind (or a descendant kind) as the dummy ModelElement. The properties of the dummy ModelElement are ignored, except the name of the dummy element is used as the name of the template parameter. The association class TemplateParameter may be associated with a default ModelElement of the same kind as the dummy ModelElement. In the case of a Binding that does not supply an argument corresponding to the parameter, the value of the default ModelElement is used. If a Binding lacks an argument and there is no default ModelElement, the construct is invalid. Note that the template parameter element lacks structure. For example, a parameter that is a Class lacks Features; they are found in the actual argument.

Specified by:
getTemplateParameter in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getPackage

public Collection getPackage()
                      throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getPackage in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSupplierDependency

public Collection getSupplierDependency()
                                 throws javax.jmi.reflect.JmiException
Inverse of supplier. Designates a set of Dependency in which the ModelElement is a supplier.

Specified by:
getSupplierDependency in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTaggedValue

public Collection getTaggedValue()
                          throws javax.jmi.reflect.JmiException
An arbitrary property attached to the model element based on an associated tag definition. The interpretation of the tagged value is outside the scope of the UML metamodel.

Specified by:
getTaggedValue in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getTemplate

public ModelElement getTemplate()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getTemplate in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setTemplate

public void setTemplate(ModelElement template)
                 throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property template)

Specified by:
setTemplate in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSourceFlow

public Collection getSourceFlow()
                         throws javax.jmi.reflect.JmiException
Not documented in spec!

Specified by:
getSourceFlow in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSubvertex

public Collection getSubvertex()
                        throws javax.jmi.reflect.JmiException
Specified by:
getSubvertex in interface CompositeState
Throws:
javax.jmi.reflect.JmiException

getVisibility

public VisibilityKind getVisibility()
                             throws javax.jmi.reflect.JmiException
Not part of specification! Merged from ElementOwnership association class.

Specified by:
getVisibility in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setVisibility

public void setVisibility(VisibilityKind visibility)
                   throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property visibility)

Specified by:
setVisibility in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getBehavior

public Collection getBehavior()
                       throws javax.jmi.reflect.JmiException
Not documented in spec! from ::"Behavioral Elements"::"State Machines"::StateMachine, pg. 2-141

Specified by:
getBehavior in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getClientDependency

public Collection getClientDependency()
                               throws javax.jmi.reflect.JmiException
Inverse of client. Designates a set of Dependency in which the ModelElement is a client.

Specified by:
getClientDependency in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getOutgoing

public Collection getOutgoing()
                       throws javax.jmi.reflect.JmiException
Specified by:
getOutgoing in interface StateVertex
Throws:
javax.jmi.reflect.JmiException

getNamespace

public Namespace getNamespace()
                       throws javax.jmi.reflect.JmiException
Designates the Namespace that contains the ModelElement. Every ModelElement except a root element must belong to exactly one Namespace or else be a composite part of another ModelElement (which is a kind of virtual namespace). The pathname of Namespace or ModelElement names starting from the root package provides a unique designation for every ModelElement. The association attribute visibility specifies the visibility of the element outside its namespace (see ElementOwnership).

Specified by:
getNamespace in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

setNamespace

public void setNamespace(Namespace namespace)
                  throws javax.jmi.reflect.JmiException
Description copied from interface: ModelElement
Setter for atomic property namespace)

Specified by:
setNamespace in interface ModelElement
Throws:
javax.jmi.reflect.JmiException

getSubmachine

public StateMachine getSubmachine()
                           throws javax.jmi.reflect.JmiException
Specified by:
getSubmachine in interface SubmachineState
Throws:
javax.jmi.reflect.JmiException

setSubmachine

public void setSubmachine(StateMachine newValue)
                   throws javax.jmi.reflect.JmiException
Description copied from interface: SubmachineState
Setter for atomic property submachine)

Specified by:
setSubmachine in interface SubmachineState
Throws:
javax.jmi.reflect.JmiException

extDeepCopy

public ExtObject extDeepCopy(Map objectMap)
Specified by:
extDeepCopy in interface ExtObject

extValueHash

public int extValueHash()
Specified by:
extValueHash in interface ExtObject

extEquals

public boolean extEquals(ExtObject extObject)
Specified by:
extEquals in interface ExtObject

extVisit

public Object extVisit(ExtVisitor visitor,
                       Object argument)
                throws Exception
Specified by:
extVisit in interface ExtObject
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object