|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Structured Activity Node'. A structured activity node is an executable activity node that may have an expansion into subordinate nodes as an activity group. The subordinate nodes must belong to only one structured activity node, although they may be nested. Because of the concurrent nature of the execution of actions within and across activities, it can be difficult to guarantee the consistent access and modification of object memory. In order to avoid race conditions or other concurrency-related problems, it is sometimes necessary to isolate the effects of a group of actions from the effects of actions outside the group. This may be indicated by setting the mustIsolate attribute to true on a structured activity node. If a structured activity node is "isolated," then any object used by an action within the node cannot be accessed by any action outside the node until the structured activity node as a whole completes. Any concurrent actions that would result in accessing such objects are required to have their execution deferred until the completion of the node.
The following features are supported:
UMLPackage.getStructuredActivityNode()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
ActivityEdge |
createEdge(String name,
EClass eClass)
Creates a new ActivityEdge , with the specified 'Name', and appends it to the 'Edge' containment reference list |
ActivityNode |
createNode(String name,
EClass eClass)
Creates a new ActivityNode , with the specified 'Name', and appends it to the 'Node' containment reference list |
Variable |
createVariable(String name,
Type type)
Creates a new Variable , with the specified 'Name', and 'Type', and appends it to the 'Variable' containment reference list |
ActivityEdge |
getEdge(String name)
Retrieves the first ActivityEdge with the specified 'Name' from the 'Edge' containment reference list |
ActivityEdge |
getEdge(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first ActivityEdge with the specified 'Name' from the 'Edge' containment reference list |
EList |
getEdges()
Returns the value of the 'Edge' containment reference list. |
ActivityNode |
getNode(String name)
Retrieves the first ActivityNode with the specified 'Name' from the 'Node' containment reference list |
ActivityNode |
getNode(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first ActivityNode with the specified 'Name' from the 'Node' containment reference list |
EList |
getNodes()
Returns the value of the 'Node' containment reference list. |
Variable |
getVariable(String name,
Type type)
Retrieves the first Variable with the specified 'Name', and 'Type' from the 'Variable' containment reference list |
Variable |
getVariable(String name,
Type type,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Variable with the specified 'Name', and 'Type' from the 'Variable' containment reference list |
EList |
getVariables()
Returns the value of the 'Variable' containment reference list. |
boolean |
isMustIsolate()
Returns the value of the 'Must Isolate' attribute. |
void |
setMustIsolate(boolean value)
Sets the value of the ' Must Isolate ' attribute |
boolean |
validateEdges(DiagnosticChain diagnostics,
Map context)
The edges owned by a structured node must have source and target nodes in the structured node, and vice versa. |
Methods inherited from interface org.eclipse.uml2.uml.Action |
createLocalPostcondition, createLocalPostcondition, createLocalPrecondition, createLocalPrecondition, getContext, getInput, getInput, getInputs, getLocalPostcondition, getLocalPostcondition, getLocalPostconditions, getLocalPrecondition, getLocalPrecondition, getLocalPreconditions, getOutput, getOutput, getOutputs |
Methods inherited from interface org.eclipse.uml2.uml.ExecutableNode |
createHandler, getHandlers |
Methods inherited from interface org.eclipse.uml2.uml.ActivityNode |
getActivity, getIncoming, getIncoming, getIncomings, getInGroups, getInInterruptibleRegions, getInPartition, getInPartition, getInPartitions, getInStructuredNode, getOutgoing, getOutgoing, getOutgoings, getRedefinedNode, getRedefinedNode, getRedefinedNodes, setActivity, setInStructuredNode, validateOwned, validateOwnedStructuredNode |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
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.ActivityGroup |
getContainedEdge, getContainedEdge, getContainedEdges, getContainedNode, getContainedNode, getContainedNodes, getInActivity, getSubgroups, getSuperGroup, setInActivity, validateGroupOwned, validateNodesAndEdges, validateNotContained |
Method Detail |
public EList getVariables()
Variable
.
It is bidirectional and its opposite is 'Scope
'.
A variable defined in the scope of the structured activity node. It has no value and may not be accessed
UMLPackage.getStructuredActivityNode_Variable()
,
Variable.getScope()
public Variable createVariable(String name, Type type)
Variable
, with the specified 'Name', and 'Type', and appends it to the 'Variable' containment reference list.
name
- The 'Name' for the new Variable
, or null
.type
- The 'Type' for the new Variable
, or null
.
Variable
.StructuredActivityNode.getVariables()
public Variable getVariable(String name, Type type)
Variable
with the specified 'Name', and 'Type' from the 'Variable' containment reference list.
name
- The 'Name' of the Variable
to retrieve, or null
.type
- The 'Type' of the Variable
to retrieve, or null
.
Variable
with the specified 'Name', and 'Type', or null
.StructuredActivityNode.getVariables()
public Variable getVariable(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Variable
with the specified 'Name', and 'Type' from the 'Variable' containment reference list.
name
- The 'Name' of the Variable
to retrieve, or null
.type
- The 'Type' of the Variable
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Variable
on demand if not found.
Variable
with the specified 'Name', and 'Type', or null
.StructuredActivityNode.getVariables()
public EList getNodes()
ActivityNode
.
It is bidirectional and its opposite is 'In Structured Node
'.
Nodes immediately contained in the group.
UMLPackage.getStructuredActivityNode_Node()
,
ActivityNode.getInStructuredNode()
public ActivityNode createNode(String name, EClass eClass)
ActivityNode
, with the specified 'Name', and appends it to the 'Node' containment reference list.
name
- The 'Name' for the new ActivityNode
, or null
.eClass
- The Ecore class of the ActivityNode
to create.
ActivityNode
.StructuredActivityNode.getNodes()
public ActivityNode getNode(String name)
ActivityNode
with the specified 'Name' from the 'Node' containment reference list.
name
- The 'Name' of the ActivityNode
to retrieve, or null
.
ActivityNode
with the specified 'Name', or null
.StructuredActivityNode.getNodes()
public ActivityNode getNode(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
ActivityNode
with the specified 'Name' from the 'Node' containment reference list.
name
- The 'Name' of the ActivityNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ActivityNode
to retrieve, or null
.createOnDemand
- Whether to create a ActivityNode
on demand if not found.
ActivityNode
with the specified 'Name', or null
.StructuredActivityNode.getNodes()
public boolean isMustIsolate()
"false"
.
If true, then the actions in the node execute in isolation from actions outside the node.
StructuredActivityNode.setMustIsolate(boolean)
,
UMLPackage.getStructuredActivityNode_MustIsolate()
public void setMustIsolate(boolean value)
Must Isolate
' attribute.
value
- the new value of the 'Must Isolate' attribute.StructuredActivityNode.isMustIsolate()
public EList getEdges()
ActivityEdge
.
It is bidirectional and its opposite is 'In Structured Node
'.
Edges immediately contained in the structured node.
UMLPackage.getStructuredActivityNode_Edge()
,
ActivityEdge.getInStructuredNode()
public ActivityEdge createEdge(String name, EClass eClass)
ActivityEdge
, with the specified 'Name', and appends it to the 'Edge' containment reference list.
name
- The 'Name' for the new ActivityEdge
, or null
.eClass
- The Ecore class of the ActivityEdge
to create.
ActivityEdge
.StructuredActivityNode.getEdges()
public ActivityEdge getEdge(String name)
ActivityEdge
with the specified 'Name' from the 'Edge' containment reference list.
name
- The 'Name' of the ActivityEdge
to retrieve, or null
.
ActivityEdge
with the specified 'Name', or null
.StructuredActivityNode.getEdges()
public ActivityEdge getEdge(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
ActivityEdge
with the specified 'Name' from the 'Edge' containment reference list.
name
- The 'Name' of the ActivityEdge
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ActivityEdge
to retrieve, or null
.createOnDemand
- Whether to create a ActivityEdge
on demand if not found.
ActivityEdge
with the specified 'Name', or null
.StructuredActivityNode.getEdges()
public boolean validateEdges(DiagnosticChain diagnostics, Map context)
|
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 |