uk.ac.ucl.cs.uml.jmi.impl.BehavioralElements.StateMachines
Class Transition_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.Transition_Impl
All Implemented Interfaces:
javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, ExtObject, Transition, Element, ModelElement

public class Transition_Impl
extends ExtObjectImpl
implements Transition

Instance implementation for type Transition


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
Transition_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.
 ModelElement getDefaultElement()
          Not part of specification! Merged from TemplateParameter association class.
 Procedure getEffect()
           
 Guard getGuard()
           
 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 getPackage()
          Not documented in spec!
 Collection getPresentation()
          A set of PresentationElements that present a view of the ModelElement.
 Collection getReferenceTag()
          Not documented in spec!
 StateVertex getSource()
           
 Collection getSourceFlow()
          Not documented in spec!
 State getState()
           
 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.
 Collection getSupplierDependency()
          Inverse of supplier.
 Collection getTaggedValue()
          An arbitrary property attached to the model element based on an associated tag definition.
 StateVertex getTarget()
           
 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.
 Event getTrigger()
           
 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 setDefaultElement(ModelElement defaultElement)
          Setter for atomic property defaultElement)
 void setEffect(Procedure newValue)
          Setter for atomic property effect)
 void setGuard(Guard newValue)
          Setter for atomic property guard)
 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 setSource(StateVertex newValue)
          Setter for atomic property source)
 void setState(State newValue)
          Setter for atomic property state)
 void setStateMachine(StateMachine newValue)
          Setter for atomic property stateMachine)
 void setTarget(StateVertex newValue)
          Setter for atomic property target)
 void setTemplate(ModelElement template)
          Setter for atomic property template)
 void setTrigger(Event newValue)
          Setter for atomic property trigger)
 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

Transition_Impl

public Transition_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

getTargetFlow

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

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

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

getComment

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

Specified by:
getComment 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

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

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

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

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

getPackage

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

Specified by:
getPackage 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

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

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

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

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

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

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

getStateMachine

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

setStateMachine

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

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

getTrigger

public Event getTrigger()
                 throws javax.jmi.reflect.JmiException
Specified by:
getTrigger in interface Transition
Throws:
javax.jmi.reflect.JmiException

setTrigger

public void setTrigger(Event newValue)
                throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property trigger)

Specified by:
setTrigger in interface Transition
Throws:
javax.jmi.reflect.JmiException

getState

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

setState

public void setState(State newValue)
              throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property state)

Specified by:
setState in interface Transition
Throws:
javax.jmi.reflect.JmiException

getTarget

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

setTarget

public void setTarget(StateVertex newValue)
               throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property target)

Specified by:
setTarget in interface Transition
Throws:
javax.jmi.reflect.JmiException

getSource

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

setSource

public void setSource(StateVertex newValue)
               throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property source)

Specified by:
setSource in interface Transition
Throws:
javax.jmi.reflect.JmiException

getGuard

public Guard getGuard()
               throws javax.jmi.reflect.JmiException
Specified by:
getGuard in interface Transition
Throws:
javax.jmi.reflect.JmiException

setGuard

public void setGuard(Guard newValue)
              throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property guard)

Specified by:
setGuard in interface Transition
Throws:
javax.jmi.reflect.JmiException

getEffect

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

setEffect

public void setEffect(Procedure newValue)
               throws javax.jmi.reflect.JmiException
Description copied from interface: Transition
Setter for atomic property effect)

Specified by:
setEffect in interface Transition
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