Package com.sodius.mdw.metamodel.uml21
Interface ExpansionRegion
-
- All Superinterfaces:
Action
,ActivityGroup
,ActivityNode
,Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,ExecutableNode
,MDWEObject
,MDWObject
,NamedElement
,Namespace
,org.eclipse.emf.common.notify.Notifier
,RedefinableElement
,StructuredActivityNode
public interface ExpansionRegion extends StructuredActivityNode
A representation of the model object 'Expansion Region'. An expansion region is a structured activity region that executes multiple times corresponding to elements of an input collection.The following features are supported:
- See Also:
UMLPackage.getExpansionRegion()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpansionNode
getInputElement(String name, Type type)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Input Element' reference list.ExpansionNode
getInputElement(String name, Type type, boolean ignoreCase)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Input Element' reference list.MDWEList<ExpansionNode>
getInputElements()
Returns the value of the 'Input Element' reference list.ExpansionKind
getMode()
Returns the value of the 'Mode' attribute.ExpansionNode
getOutputElement(String name, Type type)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Output Element' reference list.ExpansionNode
getOutputElement(String name, Type type, boolean ignoreCase)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Output Element' reference list.MDWEList<ExpansionNode>
getOutputElements()
Returns the value of the 'Output Element' reference list.void
setMode(ExpansionKind value)
Sets the value of the 'Mode
' attribute.boolean
validateExpansionNodes(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An ExpansionRegion must have one or more argument ExpansionNodes and zero or more result ExpansionNodes.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Action
createLocalPostcondition, createLocalPostcondition, createLocalPrecondition, createLocalPrecondition, getContext, getInput, getInput, getInputs, getLocalPostcondition, getLocalPostcondition, getLocalPostconditions, getLocalPrecondition, getLocalPrecondition, getLocalPreconditions, getOutput, getOutput, getOutputs
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ActivityGroup
getContainedEdge, getContainedEdge, getContainedEdges, getContainedNode, getContainedNode, getContainedNodes, getInActivity, getSubgroups, getSuperGroup, setInActivity, validateGroupOwned, validateNodesAndEdges, validateNotContained
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.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 com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
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 com.sodius.mdw.metamodel.uml21.ExecutableNode
createHandler, getHandlers
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.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 com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.StructuredActivityNode
createEdge, createNode, createStructuredNodeInput, createStructuredNodeInput, createStructuredNodeOutput, createVariable, getEdge, getEdge, getEdges, getNode, getNode, getNodes, getStructuredNodeInput, getStructuredNodeInput, getStructuredNodeInputs, getStructuredNodeOutput, getStructuredNodeOutput, getStructuredNodeOutputs, getVariable, getVariable, getVariables, isMustIsolate, setMustIsolate, validateEdges
-
-
-
-
Method Detail
-
getMode
ExpansionKind getMode()
Returns the value of the 'Mode' attribute. The default value is"iterative"
. The literals are from the enumerationExpansionKind
. The way in which the executions interact: parallel: all interactions are independent iterative: the interactions occur in order of the elements stream: a stream of values flows into a single execution- Returns:
- the value of the 'Mode' attribute.
- See Also:
ExpansionKind
,setMode(ExpansionKind)
,UMLPackage.getExpansionRegion_Mode()
-
setMode
void setMode(ExpansionKind value)
Sets the value of the 'Mode
' attribute.- Parameters:
value
- the new value of the 'Mode' attribute.- See Also:
ExpansionKind
,getMode()
-
getInputElements
MDWEList<ExpansionNode> getInputElements()
Returns the value of the 'Input Element' reference list. The list contents are of typeExpansionNode
. It is bidirectional and its opposite is 'Region As Input
'. An object node that holds a separate element of the input collection during each of the multiple executions of the region.- Returns:
- the value of the 'Input Element' reference list.
- See Also:
UMLPackage.getExpansionRegion_InputElement()
,ExpansionNode.getRegionAsInput()
-
getInputElement
ExpansionNode getInputElement(String name, Type type)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Input Element' reference list.- Parameters:
name
- The 'Name' of theExpansionNode
to retrieve, ornull
.type
- The 'Type' of theExpansionNode
to retrieve, ornull
.- Returns:
- The first
ExpansionNode
with the specified 'Name', and 'Type', ornull
. - See Also:
getInputElements()
-
getInputElement
ExpansionNode getInputElement(String name, Type type, boolean ignoreCase)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Input Element' reference list.- Parameters:
name
- The 'Name' of theExpansionNode
to retrieve, ornull
.type
- The 'Type' of theExpansionNode
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
ExpansionNode
with the specified 'Name', and 'Type', ornull
. - See Also:
getInputElements()
-
getOutputElements
MDWEList<ExpansionNode> getOutputElements()
Returns the value of the 'Output Element' reference list. The list contents are of typeExpansionNode
. It is bidirectional and its opposite is 'Region As Output
'. An object node that accepts a separate element of the output collection during each of the multiple executions of the region. The values are formed into a collection that is available when the execution of the region is complete.- Returns:
- the value of the 'Output Element' reference list.
- See Also:
UMLPackage.getExpansionRegion_OutputElement()
,ExpansionNode.getRegionAsOutput()
-
getOutputElement
ExpansionNode getOutputElement(String name, Type type)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Output Element' reference list.- Parameters:
name
- The 'Name' of theExpansionNode
to retrieve, ornull
.type
- The 'Type' of theExpansionNode
to retrieve, ornull
.- Returns:
- The first
ExpansionNode
with the specified 'Name', and 'Type', ornull
. - See Also:
getOutputElements()
-
getOutputElement
ExpansionNode getOutputElement(String name, Type type, boolean ignoreCase)
Retrieves the firstExpansionNode
with the specified 'Name', and 'Type' from the 'Output Element' reference list.- Parameters:
name
- The 'Name' of theExpansionNode
to retrieve, ornull
.type
- The 'Type' of theExpansionNode
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
ExpansionNode
with the specified 'Name', and 'Type', ornull
. - See Also:
getOutputElements()
-
validateExpansionNodes
boolean validateExpansionNodes(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An ExpansionRegion must have one or more argument ExpansionNodes and zero or more result ExpansionNodes. true
-
-