|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoopNode
A representation of the model object 'Loop Node'. A loop node is a structured activity node that represents a loop with setup, test, and body sections.
The following features are supported:
Is Tested First
Body Part
Setup Part
Decider
Test
Result
Loop Variable
Body Output
Loop Variable Input
UMLPackage.getLoopNode()
Field Summary |
---|
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
InputPin |
createLoopVariableInput(java.lang.String name,
Type type)
Creates a new InputPin , with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list |
InputPin |
createLoopVariableInput(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new InputPin , with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list |
OutputPin |
createResult(java.lang.String name,
Type type)
Creates a new OutputPin , with the specified 'Name', and 'Type', and appends it to the 'Result' containment reference list |
OutputPin |
getBodyOutput(java.lang.String name,
Type type)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list |
OutputPin |
getBodyOutput(java.lang.String name,
Type type,
boolean ignoreCase)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list |
org.eclipse.emf.common.util.EList<OutputPin> |
getBodyOutputs()
Returns the value of the 'Body Output' reference list. |
ExecutableNode |
getBodyPart(java.lang.String name)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Body Part' reference list |
ExecutableNode |
getBodyPart(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Body Part' reference list |
org.eclipse.emf.common.util.EList<ExecutableNode> |
getBodyParts()
Returns the value of the 'Body Part' reference list. |
OutputPin |
getDecider()
Returns the value of the 'Decider' reference |
OutputPin |
getLoopVariable(java.lang.String name,
Type type)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Loop Variable' reference list |
OutputPin |
getLoopVariable(java.lang.String name,
Type type,
boolean ignoreCase)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Loop Variable' reference list |
InputPin |
getLoopVariableInput(java.lang.String name,
Type type)
Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list |
InputPin |
getLoopVariableInput(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list |
org.eclipse.emf.common.util.EList<InputPin> |
getLoopVariableInputs()
Returns the value of the 'Loop Variable Input' containment reference list. |
org.eclipse.emf.common.util.EList<OutputPin> |
getLoopVariables()
Returns the value of the 'Loop Variable' reference list. |
OutputPin |
getResult(java.lang.String name,
Type type)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Result' containment reference list |
OutputPin |
getResult(java.lang.String name,
Type type,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first OutputPin with the specified 'Name', and 'Type' from the 'Result' containment reference list |
org.eclipse.emf.common.util.EList<OutputPin> |
getResults()
Returns the value of the 'Result' containment reference list. |
ExecutableNode |
getSetupPart(java.lang.String name)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Setup Part' reference list |
ExecutableNode |
getSetupPart(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Setup Part' reference list |
org.eclipse.emf.common.util.EList<ExecutableNode> |
getSetupParts()
Returns the value of the 'Setup Part' reference list. |
ExecutableNode |
getTest(java.lang.String name)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Test' reference list |
ExecutableNode |
getTest(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first ExecutableNode with the specified 'Name' from the 'Test' reference list |
org.eclipse.emf.common.util.EList<ExecutableNode> |
getTests()
Returns the value of the 'Test' reference list. |
boolean |
isTestedFirst()
Returns the value of the 'Is Tested First' attribute. |
void |
setDecider(OutputPin value)
Sets the value of the ' Decider ' reference |
void |
setIsTestedFirst(boolean value)
Sets the value of the ' Is Tested First ' attribute |
boolean |
validateBodyOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The bodyOutput pins are output pins on actions in the body of the loop node. |
boolean |
validateInputEdges(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Loop variable inputs must not have outgoing edges. |
boolean |
validateResultNoIncoming(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The result output pins have no incoming edges. |
Methods inherited from interface org.eclipse.uml2.uml.StructuredActivityNode |
---|
createEdge, createNode, createVariable, getEdge, getEdge, getEdges, getNode, getNode, getNodes, getVariable, getVariable, getVariables, isMustIsolate, setMustIsolate, validateEdges |
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, createUsage, 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, eInvoke, 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 |
---|
boolean isTestedFirst()
"false"
.
If true, the test is performed before the first execution of the body.
If false, the body is executed once before the test is performed.
setIsTestedFirst(boolean)
,
UMLPackage.getLoopNode_IsTestedFirst()
void setIsTestedFirst(boolean value)
Is Tested First
' attribute.
value
- the new value of the 'Is Tested First' attribute.isTestedFirst()
org.eclipse.emf.common.util.EList<ExecutableNode> getBodyParts()
ExecutableNode
.
The set of nodes and edges that perform the repetitive computations of the loop. The body section is executed as long as the test section produces a true value.
UMLPackage.getLoopNode_BodyPart()
ExecutableNode getBodyPart(java.lang.String name)
ExecutableNode
with the specified 'Name' from the 'Body Part' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getBodyParts()
ExecutableNode getBodyPart(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
ExecutableNode
with the specified 'Name' from the 'Body Part' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getBodyParts()
org.eclipse.emf.common.util.EList<ExecutableNode> getSetupParts()
ExecutableNode
.
The set of nodes and edges that initialize values or perform other setup computations for the loop.
UMLPackage.getLoopNode_SetupPart()
ExecutableNode getSetupPart(java.lang.String name)
ExecutableNode
with the specified 'Name' from the 'Setup Part' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getSetupParts()
ExecutableNode getSetupPart(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
ExecutableNode
with the specified 'Name' from the 'Setup Part' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getSetupParts()
OutputPin getDecider()
setDecider(OutputPin)
,
UMLPackage.getLoopNode_Decider()
void setDecider(OutputPin value)
Decider
' reference.
value
- the new value of the 'Decider' reference.getDecider()
org.eclipse.emf.common.util.EList<ExecutableNode> getTests()
ExecutableNode
.
The set of nodes, edges, and designated value that compute a Boolean value to determine if another execution of the body will be performed.
UMLPackage.getLoopNode_Test()
ExecutableNode getTest(java.lang.String name)
ExecutableNode
with the specified 'Name' from the 'Test' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getTests()
ExecutableNode getTest(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
ExecutableNode
with the specified 'Name' from the 'Test' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ExecutableNode
to retrieve, or null
.
ExecutableNode
with the specified 'Name', or null
.getTests()
org.eclipse.emf.common.util.EList<OutputPin> getResults()
OutputPin
.
This feature subsets the following features:
Output
'
UMLPackage.getLoopNode_Result()
OutputPin createResult(java.lang.String name, Type type)
OutputPin
, with the specified 'Name', and 'Type', and appends it to the 'Result' containment reference list.
name
- The 'Name' for the new OutputPin
, or null
.type
- The 'Type' for the new OutputPin
, or null
.
OutputPin
.getResults()
OutputPin getResult(java.lang.String name, Type type)
OutputPin
with the specified 'Name', and 'Type' from the 'Result' containment reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.
OutputPin
with the specified 'Name', and 'Type', or null
.getResults()
OutputPin getResult(java.lang.String name, Type type, boolean ignoreCase, boolean createOnDemand)
OutputPin
with the specified 'Name', and 'Type' from the 'Result' containment reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a OutputPin
on demand if not found.
OutputPin
with the specified 'Name', and 'Type', or null
.getResults()
org.eclipse.emf.common.util.EList<OutputPin> getLoopVariables()
OutputPin
.
A list of output pins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are movied to the result pins of the loop.
UMLPackage.getLoopNode_LoopVariable()
OutputPin getLoopVariable(java.lang.String name, Type type)
OutputPin
with the specified 'Name', and 'Type' from the 'Loop Variable' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.
OutputPin
with the specified 'Name', and 'Type', or null
.getLoopVariables()
OutputPin getLoopVariable(java.lang.String name, Type type, boolean ignoreCase)
OutputPin
with the specified 'Name', and 'Type' from the 'Loop Variable' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.
OutputPin
with the specified 'Name', and 'Type', or null
.getLoopVariables()
org.eclipse.emf.common.util.EList<OutputPin> getBodyOutputs()
OutputPin
.
A list of output pins within the body fragment the values of which are moved to the loop variable pins after completion of execution of the body, before the next iteration of the loop begins or before the loop exits.
UMLPackage.getLoopNode_BodyOutput()
OutputPin getBodyOutput(java.lang.String name, Type type)
OutputPin
with the specified 'Name', and 'Type' from the 'Body Output' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.
OutputPin
with the specified 'Name', and 'Type', or null
.getBodyOutputs()
OutputPin getBodyOutput(java.lang.String name, Type type, boolean ignoreCase)
OutputPin
with the specified 'Name', and 'Type' from the 'Body Output' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.
OutputPin
with the specified 'Name', and 'Type', or null
.getBodyOutputs()
org.eclipse.emf.common.util.EList<InputPin> getLoopVariableInputs()
InputPin
.
This feature subsets the following features:
Input
'
UMLPackage.getLoopNode_LoopVariableInput()
InputPin createLoopVariableInput(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
InputPin
, with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list.
name
- The 'Name' for the new InputPin
, or null
.type
- The 'Type' for the new InputPin
, or null
.eClass
- The Ecore class of the InputPin
to create.
InputPin
.getLoopVariableInputs()
InputPin createLoopVariableInput(java.lang.String name, Type type)
InputPin
, with the specified 'Name', and 'Type', and appends it to the 'Loop Variable Input' containment reference list.
name
- The 'Name' for the new InputPin
, or null
.type
- The 'Type' for the new InputPin
, or null
.
InputPin
.getLoopVariableInputs()
InputPin getLoopVariableInput(java.lang.String name, Type type)
InputPin
with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list.
name
- The 'Name' of the InputPin
to retrieve, or null
.type
- The 'Type' of the InputPin
to retrieve, or null
.
InputPin
with the specified 'Name', and 'Type', or null
.getLoopVariableInputs()
InputPin getLoopVariableInput(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
InputPin
with the specified 'Name', and 'Type' from the 'Loop Variable Input' containment reference list.
name
- The 'Name' of the InputPin
to retrieve, or null
.type
- The 'Type' of the InputPin
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the InputPin
to retrieve, or null
.createOnDemand
- Whether to create a InputPin
on demand if not found.
InputPin
with the specified 'Name', and 'Type', or null
.getLoopVariableInputs()
boolean validateInputEdges(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateBodyOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateResultNoIncoming(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |