Package com.sodius.mdw.metamodel.uml21
Interface CombinedFragment
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,InteractionFragment
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
ConsiderIgnoreFragment
public interface CombinedFragment extends InteractionFragment
A representation of the model object 'Combined Fragment'. A combined fragment defines an expression of interaction fragments. A combined fragment is defined by an interaction operator and corresponding interaction operands. Through the use of combined fragments the user will be able to describe a number of traces in a compact and concise manner.The following features are supported:
- See Also:
UMLPackage.getCombinedFragment()
-
-
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 Gate
createCfragmentGate(String name)
Creates a newGate
, with the specified 'Name', and appends it to the ' Cfragment Gate' containment reference list.InteractionOperand
createOperand(String name)
Creates a newInteractionOperand
, with the specified 'Name', and appends it to the ' Operand' containment reference list.Gate
getCfragmentGate(String name)
Retrieves the firstGate
with the specified 'Name' from the ' Cfragment Gate' containment reference list.Gate
getCfragmentGate(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstGate
with the specified 'Name' from the ' Cfragment Gate' containment reference list.MDWEList<Gate>
getCfragmentGates()
Returns the value of the 'Cfragment Gate' containment reference list.InteractionOperatorKind
getInteractionOperator()
Returns the value of the 'Interaction Operator' attribute.InteractionOperand
getOperand(String name)
Retrieves the firstInteractionOperand
with the specified 'Name' from the ' Operand' containment reference list.InteractionOperand
getOperand(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstInteractionOperand
with the specified 'Name' from the ' Operand' containment reference list.MDWEList<InteractionOperand>
getOperands()
Returns the value of the 'Operand' containment reference list.void
setInteractionOperator(InteractionOperatorKind value)
Sets the value of the 'Interaction Operator
' attribute.boolean
validateBreak(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If the interactionOperator is break, the corresponding InteractionOperand must cover all Lifelines within the enclosing InteractionFragment.boolean
validateConsiderAndIgnore(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The interaction operators 'consider' and 'ignore' can only be used for the CombineIgnoreFragment subtype of CombinedFragment ((interactionOperator = #consider) or (interactionOperator = #ignore)) implies oclsisTypeOf(CombineIgnoreFragment)boolean
validateMinintAndMaxint(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The InteractionConstraint with minint and maxint only apply when attached to an InteractionOperand where the interactionOperator is loop.boolean
validateOptLoopBreakNeg(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If the interactionOperator is opt, loop, break, or neg there must be exactly one operand true-
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.InteractionFragment
createGeneralOrdering, getCovered, getCovered, getCovereds, getEnclosingInteraction, getEnclosingOperand, getGeneralOrdering, getGeneralOrdering, getGeneralOrderings, setEnclosingInteraction, setEnclosingOperand
-
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
-
-
-
-
Method Detail
-
getInteractionOperator
InteractionOperatorKind getInteractionOperator()
Returns the value of the 'Interaction Operator' attribute. The default value is"seq"
. The literals are from the enumerationInteractionOperatorKind
. Specifies the operation which defines the semantics of this combination of InteractionFragments.- Returns:
- the value of the 'Interaction Operator' attribute.
- See Also:
InteractionOperatorKind
,setInteractionOperator(InteractionOperatorKind)
,UMLPackage.getCombinedFragment_InteractionOperator()
-
setInteractionOperator
void setInteractionOperator(InteractionOperatorKind value)
Sets the value of the 'Interaction Operator
' attribute.- Parameters:
value
- the new value of the 'Interaction Operator' attribute.- See Also:
InteractionOperatorKind
,getInteractionOperator()
-
getOperands
MDWEList<InteractionOperand> getOperands()
Returns the value of the 'Operand' containment reference list. The list contents are of typeInteractionOperand
. The set of operands of the combined fragment.- Returns:
- the value of the 'Operand' containment reference list.
- See Also:
UMLPackage.getCombinedFragment_Operand()
-
createOperand
InteractionOperand createOperand(String name)
Creates a newInteractionOperand
, with the specified 'Name', and appends it to the ' Operand' containment reference list.- Parameters:
name
- The 'Name' for the newInteractionOperand
, ornull
.- Returns:
- The new
InteractionOperand
. - See Also:
getOperands()
-
getOperand
InteractionOperand getOperand(String name)
Retrieves the firstInteractionOperand
with the specified 'Name' from the ' Operand' containment reference list.- Parameters:
name
- The 'Name' of theInteractionOperand
to retrieve, ornull
.- Returns:
- The first
InteractionOperand
with the specified 'Name', ornull
. - See Also:
getOperands()
-
getOperand
InteractionOperand getOperand(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstInteractionOperand
with the specified 'Name' from the ' Operand' containment reference list.- Parameters:
name
- The 'Name' of theInteractionOperand
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aInteractionOperand
on demand if not found.- Returns:
- The first
InteractionOperand
with the specified 'Name', ornull
. - See Also:
getOperands()
-
getCfragmentGates
MDWEList<Gate> getCfragmentGates()
Returns the value of the 'Cfragment Gate' containment reference list. The list contents are of typeGate
. Specifies the gates that form the interface between this CombinedFragment and its surroundings- Returns:
- the value of the 'Cfragment Gate' containment reference list.
- See Also:
UMLPackage.getCombinedFragment_CfragmentGate()
-
createCfragmentGate
Gate createCfragmentGate(String name)
Creates a newGate
, with the specified 'Name', and appends it to the ' Cfragment Gate' containment reference list.- Parameters:
name
- The 'Name' for the newGate
, ornull
.- Returns:
- The new
Gate
. - See Also:
getCfragmentGates()
-
getCfragmentGate
Gate getCfragmentGate(String name)
Retrieves the firstGate
with the specified 'Name' from the ' Cfragment Gate' containment reference list.- Parameters:
name
- The 'Name' of theGate
to retrieve, ornull
.- Returns:
- The first
Gate
with the specified 'Name', ornull
. - See Also:
getCfragmentGates()
-
getCfragmentGate
Gate getCfragmentGate(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstGate
with the specified 'Name' from the ' Cfragment Gate' containment reference list.- Parameters:
name
- The 'Name' of theGate
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aGate
on demand if not found.- Returns:
- The first
Gate
with the specified 'Name', ornull
. - See Also:
getCfragmentGates()
-
validateOptLoopBreakNeg
boolean validateOptLoopBreakNeg(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If the interactionOperator is opt, loop, break, or neg there must be exactly one operand true
-
validateMinintAndMaxint
boolean validateMinintAndMaxint(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The InteractionConstraint with minint and maxint only apply when attached to an InteractionOperand where the interactionOperator is loop. true
-
validateBreak
boolean validateBreak(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If the interactionOperator is break, the corresponding InteractionOperand must cover all Lifelines within the enclosing InteractionFragment. true
-
validateConsiderAndIgnore
boolean validateConsiderAndIgnore(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The interaction operators 'consider' and 'ignore' can only be used for the CombineIgnoreFragment subtype of CombinedFragment ((interactionOperator = #consider) or (interactionOperator = #ignore)) implies oclsisTypeOf(CombineIgnoreFragment)
-
-