Package com.sodius.mdw.metamodel.uml21
Interface ParameterSet
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
public interface ParameterSet extends NamedElement
A representation of the model object 'Parameter Set'. A parameter set is an element that provides alternative sets of inputs or outputs that a behavior may use.The following features are supported:
- See Also:
UMLPackage.getParameterSet()
-
-
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 Constraint
createCondition(String name)
Creates a newConstraint
, with the specified 'Name', and appends it to the ' Condition' containment reference list.Constraint
createCondition(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newConstraint
, with the specified 'Name', and appends it to the ' Condition' containment reference list.Constraint
getCondition(String name)
Retrieves the firstConstraint
with the specified 'Name' from the ' Condition' containment reference list.Constraint
getCondition(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstConstraint
with the specified 'Name' from the ' Condition' containment reference list.MDWEList<Constraint>
getConditions()
Returns the value of the 'Condition' containment reference list.Parameter
getParameter(String name, Type type)
Retrieves the firstParameter
with the specified 'Name', and 'Type' from the 'Parameter' reference list.Parameter
getParameter(String name, Type type, boolean ignoreCase)
Retrieves the firstParameter
with the specified 'Name', and 'Type' from the 'Parameter' reference list.MDWEList<Parameter>
getParameters()
Returns the value of the 'Parameter' reference list.boolean
validateInput(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a behavior has input parameters that are in a parameter set, then any inputs that are not in a parameter set must be streaming.boolean
validateSameParameterizedEntity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The parameters in a parameter set must all be inputs or all be outputs of the same parameterized entity, and the parameter set is owned by that entity.boolean
validateTwoParameterSets(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Two parameter sets cannot have exactly the same set of parameters.-
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.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
-
getParameters
MDWEList<Parameter> getParameters()
Returns the value of the 'Parameter' reference list. The list contents are of typeParameter
. It is bidirectional and its opposite is 'Parameter Set
'. Parameters in the parameter set.- Returns:
- the value of the 'Parameter' reference list.
- See Also:
UMLPackage.getParameterSet_Parameter()
,Parameter.getParameterSets()
-
getParameter
Parameter getParameter(String name, Type type)
Retrieves the firstParameter
with the specified 'Name', and 'Type' from the 'Parameter' reference list.- Parameters:
name
- The 'Name' of theParameter
to retrieve, ornull
.type
- The 'Type' of theParameter
to retrieve, ornull
.- Returns:
- The first
Parameter
with the specified 'Name', and 'Type', ornull
. - See Also:
getParameters()
-
getParameter
Parameter getParameter(String name, Type type, boolean ignoreCase)
Retrieves the firstParameter
with the specified 'Name', and 'Type' from the 'Parameter' reference list.- Parameters:
name
- The 'Name' of theParameter
to retrieve, ornull
.type
- The 'Type' of theParameter
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
Parameter
with the specified 'Name', and 'Type', ornull
. - See Also:
getParameters()
-
getConditions
MDWEList<Constraint> getConditions()
Returns the value of the 'Condition' containment reference list. The list contents are of typeConstraint
. Constraint that should be satisfied for the owner of the parameters in an input parameter set to start execution using the values provided for those parameters, or the owner of the parameters in an output parameter set to end execution providing the values for those parameters, if all preconditions and conditions on input parameter sets were satisfied.- Returns:
- the value of the 'Condition' containment reference list.
- See Also:
UMLPackage.getParameterSet_Condition()
-
createCondition
Constraint createCondition(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newConstraint
, with the specified 'Name', and appends it to the ' Condition' containment reference list.- Parameters:
name
- The 'Name' for the newConstraint
, ornull
.eClass
- The Ecore class of theConstraint
to create.- Returns:
- The new
Constraint
. - See Also:
getConditions()
-
createCondition
Constraint createCondition(String name)
Creates a newConstraint
, with the specified 'Name', and appends it to the ' Condition' containment reference list.- Parameters:
name
- The 'Name' for the newConstraint
, ornull
.- Returns:
- The new
Constraint
. - See Also:
getConditions()
-
getCondition
Constraint getCondition(String name)
Retrieves the firstConstraint
with the specified 'Name' from the ' Condition' containment reference list.- Parameters:
name
- The 'Name' of theConstraint
to retrieve, ornull
.- Returns:
- The first
Constraint
with the specified 'Name', ornull
. - See Also:
getConditions()
-
getCondition
Constraint getCondition(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstConstraint
with the specified 'Name' from the ' Condition' containment reference list.- Parameters:
name
- The 'Name' of theConstraint
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theConstraint
to retrieve, ornull
.createOnDemand
- Whether to create aConstraint
on demand if not found.- Returns:
- The first
Constraint
with the specified 'Name', ornull
. - See Also:
getConditions()
-
validateSameParameterizedEntity
boolean validateSameParameterizedEntity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The parameters in a parameter set must all be inputs or all be outputs of the same parameterized entity, and the parameter set is owned by that entity. true
-
validateInput
boolean validateInput(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a behavior has input parameters that are in a parameter set, then any inputs that are not in a parameter set must be streaming. Same for output parameters. true
-
validateTwoParameterSets
boolean validateTwoParameterSets(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Two parameter sets cannot have exactly the same set of parameters. true
-
-