|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Variable'. Variables are elements for passing data between actions indirectly. A local variable stores values shared by the actions within a structured activity group but not accessible outside it. The output of an action may be written to a variable and read for the input to a subsequent action, which is effectively an indirect data flow path. Because there is no predefined relationship between actions that read and write variables, these actions must be sequenced by control flows to prevent race conditions that may occur between actions that read or write the same variable. A variable is considered a connectable element.
The following features are supported:
UMLPackage.getVariable()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
Activity |
getActivityScope()
Returns the value of the 'Activity Scope' container reference. |
StructuredActivityNode |
getScope()
Returns the value of the 'Scope' container reference. |
boolean |
isAccessibleBy(Action a)
The isAccessibleBy() operation is not defined in standard UML. |
void |
setActivityScope(Activity value)
Sets the value of the ' Activity Scope ' container reference |
void |
setScope(StructuredActivityNode value)
Sets the value of the ' Scope ' container reference |
boolean |
validateOwned(DiagnosticChain diagnostics,
Map context)
A variable is owned by a StructuredNode or Activity, but not both. |
Methods inherited from interface org.eclipse.uml2.uml.ConnectableElement |
getEnds |
Methods inherited from interface org.eclipse.uml2.uml.TypedElement |
getType, setType |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.uml2.uml.MultiplicityElement |
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesCardinality, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateUpperGeLower, validateUpperGt0, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects |
Method Detail |
public Activity getActivityScope()
Variable
'.
An activity that owns the variable.
Variable.setActivityScope(Activity)
,
UMLPackage.getVariable_ActivityScope()
,
Activity.getVariables()
public void setActivityScope(Activity value)
Activity Scope
' container reference.
value
- the new value of the 'Activity Scope' container reference.Variable.getActivityScope()
public StructuredActivityNode getScope()
Variable
'.
A structured activity node that owns the variable.
Variable.setScope(StructuredActivityNode)
,
UMLPackage.getVariable_Scope()
,
StructuredActivityNode.getVariables()
public void setScope(StructuredActivityNode value)
Scope
' container reference.
value
- the new value of the 'Scope' container reference.Variable.getScope()
public boolean validateOwned(DiagnosticChain diagnostics, Map context)
public boolean isAccessibleBy(Action a)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |