This XML file does not appear to have any style information associated with it. The document tree is shown below.
<xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:mofext="http://www.omg.org/spec/MOF/20131001">
<documentation>
<shortDescription>UML.xmi: XMI representation of the metamodel for UML 2.5.1.</shortDescription>
</documentation>
<uml:Package xmi:type="uml:Package" xmi:id="_0" name="UML" URI="http://www.omg.org/spec/UML/20161101">
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.0" importedPackage="_0"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.1" importedPackage="Actions"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.2" importedPackage="Activities"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.3" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.4" importedPackage="CommonBehavior"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.5" importedPackage="CommonStructure"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.6" importedPackage="Deployments"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.7" importedPackage="InformationFlows"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.8" importedPackage="Interactions"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.9" importedPackage="Packages"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.10" importedPackage="SimpleClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.11" importedPackage="StateMachines"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.12" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.13" importedPackage="UseCases"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.14" importedPackage="Values"/>
<packagedElement xmi:type="uml:Package" xmi:id="Activities" name="Activities">
<packageImport xmi:type="uml:PackageImport" xmi:id="Activities-_packageImport.0" importedPackage="Actions"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Activities-_packageImport.1" importedPackage="Classification"/>
<packagedElement xmi:type="uml:Class" xmi:id="Activity" name="Activity">
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-_ownedComment.0" body="An Activity is the specification of parameterized Behavior as the coordinated sequencing of subordinate units.">
<annotatedElement xmi:idref="Activity"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Activity-maximum_one_parameter_node" name="maximum_one_parameter_node">
<constrainedElement xmi:idref="Activity"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-maximum_one_parameter_node-_ownedComment.0" body="A Parameter with direction other than inout must have exactly one ActivityParameterNode in an Activity.">
<annotatedElement xmi:idref="Activity-maximum_one_parameter_node"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Activity-maximum_one_parameter_node-_specification">
<body>ownedParameter->forAll(p | p.direction <> ParameterDirectionKind::inout implies node->select( oclIsKindOf(ActivityParameterNode) and oclAsType(ActivityParameterNode).parameter = p)->size()= 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Activity-maximum_two_parameter_nodes" name="maximum_two_parameter_nodes">
<constrainedElement xmi:idref="Activity"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-maximum_two_parameter_nodes-_ownedComment.0" body="A Parameter with direction inout must have exactly two ActivityParameterNodes in an Activity, at most one with incoming ActivityEdges and at most one with outgoing ActivityEdges.">
<annotatedElement xmi:idref="Activity-maximum_two_parameter_nodes"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Activity-maximum_two_parameter_nodes-_specification">
<body>ownedParameter->forAll(p | p.direction = ParameterDirectionKind::inout implies let associatedNodes : Set(ActivityNode) = node->select( oclIsKindOf(ActivityParameterNode) and oclAsType(ActivityParameterNode).parameter = p) in associatedNodes->size()=2 and associatedNodes->select(incoming->notEmpty())->size()<=1 and associatedNodes->select(outgoing->notEmpty())->size()<=1 ) </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Activity-_generalization.0" general="Behavior"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-edge" name="edge" aggregation="composite" type="ActivityEdge" association="A_edge_activity">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-edge-_ownedComment.0" body="ActivityEdges expressing flow between the nodes of the Activity.">
<annotatedElement xmi:idref="Activity-edge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-edge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-edge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-group" name="group" aggregation="composite" type="ActivityGroup" association="A_group_inActivity">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-group-_ownedComment.0" body="Top-level ActivityGroups in the Activity.">
<annotatedElement xmi:idref="Activity-group"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-group-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-group-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-isReadOnly" name="isReadOnly">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-isReadOnly-_ownedComment.0" body="If true, this Activity must not make any changes to objects. The default is false (an Activity may make nonlocal changes). (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the Activity, then the model is ill-formed.) ">
<annotatedElement xmi:idref="Activity-isReadOnly"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Activity-isReadOnly-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-isSingleExecution" name="isSingleExecution">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-isSingleExecution-_ownedComment.0" body="If true, all invocations of the Activity are handled by the same execution.">
<annotatedElement xmi:idref="Activity-isSingleExecution"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Activity-isSingleExecution-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-node" name="node" aggregation="composite" type="ActivityNode" association="A_node_activity">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-node-_ownedComment.0" body="ActivityNodes coordinated by the Activity.">
<annotatedElement xmi:idref="Activity-node"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-node-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-node-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-partition" name="partition" type="ActivityPartition" association="A_partition_activity">
<subsettedProperty xmi:idref="Activity-group"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-partition-_ownedComment.0" body="Top-level ActivityPartitions in the Activity.">
<annotatedElement xmi:idref="Activity-partition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-partition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-partition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-structuredNode" name="structuredNode" aggregation="composite" type="StructuredActivityNode" association="A_structuredNode_activity">
<subsettedProperty xmi:idref="Activity-group"/>
<subsettedProperty xmi:idref="Activity-node"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-structuredNode-_ownedComment.0" body="Top-level StructuredActivityNodes in the Activity.">
<annotatedElement xmi:idref="Activity-structuredNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-structuredNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-structuredNode-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Activity-variable" name="variable" aggregation="composite" type="Variable" association="A_variable_activityScope">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Activity-variable-_ownedComment.0" body="Top-level Variables defined by the Activity.">
<annotatedElement xmi:idref="Activity-variable"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Activity-variable-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Activity-variable-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityEdge" name="ActivityEdge" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-_ownedComment.0" body="An ActivityEdge is an abstract class for directed connections between two ActivityNodes.">
<annotatedElement xmi:idref="ActivityEdge"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityEdge-source_and_target" name="source_and_target">
<constrainedElement xmi:idref="ActivityEdge"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-source_and_target-_ownedComment.0" body="If an ActivityEdge is directly owned by an Activity, then its source and target must be directly or indirectly contained in the same Activity.">
<annotatedElement xmi:idref="ActivityEdge-source_and_target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityEdge-source_and_target-_specification">
<body>activity<>null implies source.containingActivity() = activity and target.containingActivity() = activity</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityEdge-_generalization.0" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-activity" name="activity" type="Activity" association="A_edge_activity">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-activity-_ownedComment.0" body="The Activity containing the ActivityEdge, if it is directly owned by an Activity.">
<annotatedElement xmi:idref="ActivityEdge-activity"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-activity-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-guard" name="guard" aggregation="composite" type="ValueSpecification" association="A_guard_activityEdge">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-guard-_ownedComment.0" body="A ValueSpecification that is evaluated to determine if a token can traverse the ActivityEdge. If an ActivityEdge has no guard, then there is no restriction on tokens traversing the edge.">
<annotatedElement xmi:idref="ActivityEdge-guard"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-guard-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-inGroup" name="inGroup" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ActivityGroup" association="A_containedEdge_inGroup">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-inGroup-_ownedComment.0" body="ActivityGroups containing the ActivityEdge.">
<annotatedElement xmi:idref="ActivityEdge-inGroup"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-inGroup-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityEdge-inGroup-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-inPartition" name="inPartition" type="ActivityPartition" association="A_edge_inPartition">
<subsettedProperty xmi:idref="ActivityEdge-inGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-inPartition-_ownedComment.0" body="ActivityPartitions containing the ActivityEdge.">
<annotatedElement xmi:idref="ActivityEdge-inPartition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-inPartition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityEdge-inPartition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-inStructuredNode" name="inStructuredNode" type="StructuredActivityNode" association="A_edge_inStructuredNode">
<subsettedProperty xmi:idref="ActivityEdge-inGroup"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-inStructuredNode-_ownedComment.0" body="The StructuredActivityNode containing the ActivityEdge, if it is owned by a StructuredActivityNode.">
<annotatedElement xmi:idref="ActivityEdge-inStructuredNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-inStructuredNode-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-interrupts" name="interrupts" type="InterruptibleActivityRegion" association="A_interruptingEdge_interrupts">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-interrupts-_ownedComment.0" body="The InterruptibleActivityRegion for which this ActivityEdge is an interruptingEdge.">
<annotatedElement xmi:idref="ActivityEdge-interrupts"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-interrupts-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-redefinedEdge" name="redefinedEdge" type="ActivityEdge" association="A_redefinedEdge_activityEdge">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-redefinedEdge-_ownedComment.0" body="ActivityEdges from a generalization of the Activity containing this ActivityEdge that are redefined by this ActivityEdge.">
<annotatedElement xmi:idref="ActivityEdge-redefinedEdge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-redefinedEdge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityEdge-redefinedEdge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-source" name="source" type="ActivityNode" association="A_outgoing_source_node">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-source-_ownedComment.0" body="The ActivityNode from which tokens are taken when they traverse the ActivityEdge.">
<annotatedElement xmi:idref="ActivityEdge-source"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-target" name="target" type="ActivityNode" association="A_incoming_target_node">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-target-_ownedComment.0" body="The ActivityNode to which tokens are put when they traverse the ActivityEdge.">
<annotatedElement xmi:idref="ActivityEdge-target"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityEdge-weight" name="weight" aggregation="composite" type="ValueSpecification" association="A_weight_activityEdge">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityEdge-weight-_ownedComment.0" body="The minimum number of tokens that must traverse the ActivityEdge at the same time. If no weight is specified, this is equivalent to specifying a constant value of 1.">
<annotatedElement xmi:idref="ActivityEdge-weight"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityEdge-weight-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ActivityEdge-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="ActivityEdge-isConsistentWith-spec">
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityEdge-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="ActivityEdge-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityEdge-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(ActivityEdge))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityEdge-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityEdge-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityFinalNode" name="ActivityFinalNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityFinalNode-_ownedComment.0" body="An ActivityFinalNode is a FinalNode that terminates the execution of its owning Activity or StructuredActivityNode.">
<annotatedElement xmi:idref="ActivityFinalNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityFinalNode-_generalization.0" general="FinalNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityGroup" name="ActivityGroup" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-_ownedComment.0" body="ActivityGroup is an abstract class for defining sets of ActivityNodes and ActivityEdges in an Activity.">
<annotatedElement xmi:idref="ActivityGroup"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityGroup-nodes_and_edges" name="nodes_and_edges">
<constrainedElement xmi:idref="ActivityGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-nodes_and_edges-_ownedComment.0" body="All containedNodes and containeEdges of an ActivityGroup must be in the same Activity as the group.">
<annotatedElement xmi:idref="ActivityGroup-nodes_and_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityGroup-nodes_and_edges-_specification">
<body>containedNode->forAll(activity = self.containingActivity()) and containedEdge->forAll(activity = self.containingActivity())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityGroup-not_contained" name="not_contained">
<constrainedElement xmi:idref="ActivityGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-not_contained-_ownedComment.0" body="No containedNode or containedEdge of an ActivityGroup may be contained by its subgroups or its superGroups, transitively.">
<annotatedElement xmi:idref="ActivityGroup-not_contained"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityGroup-not_contained-_specification">
<body>subgroup->closure(subgroup).containedNode->excludesAll(containedNode) and superGroup->closure(superGroup).containedNode->excludesAll(containedNode) and subgroup->closure(subgroup).containedEdge->excludesAll(containedEdge) and superGroup->closure(superGroup).containedEdge->excludesAll(containedEdge)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityGroup-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityGroup-containedEdge" name="containedEdge" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ActivityEdge" association="A_containedEdge_inGroup">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-containedEdge-_ownedComment.0" body="ActivityEdges immediately contained in the ActivityGroup.">
<annotatedElement xmi:idref="ActivityGroup-containedEdge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-containedEdge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityGroup-containedEdge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityGroup-containedNode" name="containedNode" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ActivityNode" association="A_containedNode_inGroup">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-containedNode-_ownedComment.0" body="ActivityNodes immediately contained in the ActivityGroup.">
<annotatedElement xmi:idref="ActivityGroup-containedNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-containedNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityGroup-containedNode-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityGroup-inActivity" name="inActivity" type="Activity" association="A_group_inActivity">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-inActivity-_ownedComment.0" body="The Activity containing the ActivityGroup, if it is directly owned by an Activity.">
<annotatedElement xmi:idref="ActivityGroup-inActivity"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-inActivity-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityGroup-subgroup" name="subgroup" isReadOnly="true" aggregation="composite" isDerived="true" isDerivedUnion="true" type="ActivityGroup" association="A_subgroup_superGroup">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-subgroup-_ownedComment.0" body="Other ActivityGroups immediately contained in this ActivityGroup.">
<annotatedElement xmi:idref="ActivityGroup-subgroup"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-subgroup-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityGroup-subgroup-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityGroup-superGroup" name="superGroup" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ActivityGroup" association="A_subgroup_superGroup">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-superGroup-_ownedComment.0" body="The ActivityGroup immediately containing this ActivityGroup, if it is directly owned by another ActivityGroup.">
<annotatedElement xmi:idref="ActivityGroup-superGroup"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-superGroup-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ActivityGroup-containingActivity" name="containingActivity" isQuery="true" bodyCondition="ActivityGroup-containingActivity-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityGroup-containingActivity-_ownedComment.0" body="The Activity that directly or indirectly contains this ActivityGroup.">
<annotatedElement xmi:idref="ActivityGroup-containingActivity"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityGroup-containingActivity-spec" name="spec">
<constrainedElement xmi:idref="ActivityGroup-containingActivity"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityGroup-containingActivity-spec-_specification">
<body>result = (if superGroup<>null then superGroup.containingActivity() else inActivity endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityGroup-containingActivity-result" name="result" direction="return" type="Activity">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityGroup-containingActivity-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityNode" name="ActivityNode" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-_ownedComment.0" body="ActivityNode is an abstract class for points in the flow of an Activity connected by ActivityEdges.">
<annotatedElement xmi:idref="ActivityNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityNode-_generalization.0" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-activity" name="activity" type="Activity" association="A_node_activity">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-activity-_ownedComment.0" body="The Activity containing the ActivityNode, if it is directly owned by an Activity.">
<annotatedElement xmi:idref="ActivityNode-activity"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-activity-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-inGroup" name="inGroup" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ActivityGroup" association="A_containedNode_inGroup">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-inGroup-_ownedComment.0" body="ActivityGroups containing the ActivityNode.">
<annotatedElement xmi:idref="ActivityNode-inGroup"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-inGroup-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-inGroup-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-inInterruptibleRegion" name="inInterruptibleRegion" type="InterruptibleActivityRegion" association="A_inInterruptibleRegion_node">
<subsettedProperty xmi:idref="ActivityNode-inGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-inInterruptibleRegion-_ownedComment.0" body="InterruptibleActivityRegions containing the ActivityNode.">
<annotatedElement xmi:idref="ActivityNode-inInterruptibleRegion"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-inInterruptibleRegion-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-inInterruptibleRegion-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-inPartition" name="inPartition" type="ActivityPartition" association="A_inPartition_node">
<subsettedProperty xmi:idref="ActivityNode-inGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-inPartition-_ownedComment.0" body="ActivityPartitions containing the ActivityNode.">
<annotatedElement xmi:idref="ActivityNode-inPartition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-inPartition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-inPartition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-inStructuredNode" name="inStructuredNode" type="StructuredActivityNode" association="A_node_inStructuredNode">
<subsettedProperty xmi:idref="ActivityNode-inGroup"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-inStructuredNode-_ownedComment.0" body="The StructuredActivityNode containing the ActvityNode, if it is directly owned by a StructuredActivityNode.">
<annotatedElement xmi:idref="ActivityNode-inStructuredNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-inStructuredNode-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-incoming" name="incoming" type="ActivityEdge" association="A_incoming_target_node">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-incoming-_ownedComment.0" body="ActivityEdges that have the ActivityNode as their target.">
<annotatedElement xmi:idref="ActivityNode-incoming"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-incoming-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-incoming-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-outgoing" name="outgoing" type="ActivityEdge" association="A_outgoing_source_node">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-outgoing-_ownedComment.0" body="ActivityEdges that have the ActivityNode as their source.">
<annotatedElement xmi:idref="ActivityNode-outgoing"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-outgoing-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-outgoing-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityNode-redefinedNode" name="redefinedNode" type="ActivityNode" association="A_redefinedNode_activityNode">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-redefinedNode-_ownedComment.0" body="ActivityNodes from a generalization of the Activity containining this ActivityNode that are redefined by this ActivityNode.">
<annotatedElement xmi:idref="ActivityNode-redefinedNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-redefinedNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityNode-redefinedNode-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ActivityNode-containingActivity" name="containingActivity" isQuery="true" bodyCondition="ActivityNode-containingActivity-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityNode-containingActivity-_ownedComment.0" body="The Activity that directly or indirectly contains this ActivityNode.">
<annotatedElement xmi:idref="ActivityNode-containingActivity"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityNode-containingActivity-spec" name="spec">
<constrainedElement xmi:idref="ActivityNode-containingActivity"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityNode-containingActivity-spec-_specification">
<body>result = (if inStructuredNode<>null then inStructuredNode.containingActivity() else activity endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityNode-containingActivity-result" name="result" direction="return" type="Activity">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityNode-containingActivity-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ActivityNode-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="ActivityNode-isConsistentWith-spec">
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityNode-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="ActivityNode-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityNode-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(ActivityNode))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityNode-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ActivityNode-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityParameterNode" name="ActivityParameterNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-_ownedComment.0" body="An ActivityParameterNode is an ObjectNode for accepting values from the input Parameters or providing values to the output Parameters of an Activity.">
<annotatedElement xmi:idref="ActivityParameterNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityParameterNode-no_outgoing_edges" name="no_outgoing_edges">
<constrainedElement xmi:idref="ActivityParameterNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-no_outgoing_edges-_ownedComment.0" body="An ActivityParameterNode with no outgoing ActivityEdges and one or more incoming ActivityEdges must have a parameter with direction out, inout, or return.">
<annotatedElement xmi:idref="ActivityParameterNode-no_outgoing_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityParameterNode-no_outgoing_edges-_specification">
<body>(incoming->notEmpty() and outgoing->isEmpty()) implies (parameter.direction = ParameterDirectionKind::out or parameter.direction = ParameterDirectionKind::inout or parameter.direction = ParameterDirectionKind::return)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityParameterNode-has_parameters" name="has_parameters">
<constrainedElement xmi:idref="ActivityParameterNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-has_parameters-_ownedComment.0" body="The parameter of an ActivityParameterNode must be from the containing Activity.">
<annotatedElement xmi:idref="ActivityParameterNode-has_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityParameterNode-has_parameters-_specification">
<body>activity.ownedParameter->includes(parameter)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityParameterNode-same_type" name="same_type">
<constrainedElement xmi:idref="ActivityParameterNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-same_type-_ownedComment.0" body="The type of an ActivityParameterNode is the same as the type of its parameter.">
<annotatedElement xmi:idref="ActivityParameterNode-same_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityParameterNode-same_type-_specification">
<body>type = parameter.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityParameterNode-no_incoming_edges" name="no_incoming_edges">
<constrainedElement xmi:idref="ActivityParameterNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-no_incoming_edges-_ownedComment.0" body="An ActivityParameterNode with no incoming ActivityEdges and one or more outgoing ActivityEdges must have a parameter with direction in or inout.">
<annotatedElement xmi:idref="ActivityParameterNode-no_incoming_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityParameterNode-no_incoming_edges-_specification">
<body>(outgoing->notEmpty() and incoming->isEmpty()) implies (parameter.direction = ParameterDirectionKind::_'in' or parameter.direction = ParameterDirectionKind::inout)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityParameterNode-no_edges" name="no_edges">
<constrainedElement xmi:idref="ActivityParameterNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-no_edges-_ownedComment.0" body="An ActivityParameterNode may have all incoming ActivityEdges or all outgoing ActivityEdges, but it must not have both incoming and outgoing ActivityEdges.">
<annotatedElement xmi:idref="ActivityParameterNode-no_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityParameterNode-no_edges-_specification">
<body>incoming->isEmpty() or outgoing->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityParameterNode-_generalization.0" general="ObjectNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityParameterNode-parameter" name="parameter" type="Parameter" association="A_parameter_activityParameterNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityParameterNode-parameter-_ownedComment.0" body="The Parameter for which the ActivityParameterNode will be accepting or providing values.">
<annotatedElement xmi:idref="ActivityParameterNode-parameter"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActivityPartition" name="ActivityPartition">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-_ownedComment.0" body="An ActivityPartition is a kind of ActivityGroup for identifying ActivityNodes that have some characteristic in common.">
<annotatedElement xmi:idref="ActivityPartition"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityPartition-represents_classifier" name="represents_classifier">
<constrainedElement xmi:idref="ActivityPartition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-represents_classifier-_ownedComment.0" body="If a non-external ActivityPartition represents a Classifier and has a superPartition, then the superPartition must represent a Classifier, and the Classifier of the subpartition must be nested (nestedClassifier or ownedBehavior) in the Classifier represented by the superPartition, or be at the contained end of a composition Association with the Classifier represented by the superPartition.">
<annotatedElement xmi:idref="ActivityPartition-represents_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityPartition-represents_classifier-_specification">
<body>(not isExternal and represents.oclIsKindOf(Classifier) and superPartition->notEmpty()) implies ( let representedClassifier : Classifier = represents.oclAsType(Classifier) in superPartition.represents.oclIsKindOf(Classifier) and let representedSuperClassifier : Classifier = superPartition.represents.oclAsType(Classifier) in (representedSuperClassifier.oclIsKindOf(BehavioredClassifier) and representedClassifier.oclIsKindOf(Behavior) and representedSuperClassifier.oclAsType(BehavioredClassifier).ownedBehavior->includes(representedClassifier.oclAsType(Behavior))) or (representedSuperClassifier.oclIsKindOf(Class) and representedSuperClassifier.oclAsType(Class).nestedClassifier->includes(representedClassifier)) or (Association.allInstances()->exists(a | a.memberEnd->exists(end1 | end1.isComposite and end1.type = representedClassifier and a.memberEnd->exists(end2 | end1<>end2 and end2.type = representedSuperClassifier)))) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityPartition-represents_property_and_is_contained" name="represents_property_and_is_contained">
<constrainedElement xmi:idref="ActivityPartition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-represents_property_and_is_contained-_ownedComment.0" body="If an ActivityPartition represents a Property and has a superPartition, then the Property must be of a Classifier represented by the superPartition, or of a Classifier that is the type of a Property represented by the superPartition.">
<annotatedElement xmi:idref="ActivityPartition-represents_property_and_is_contained"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityPartition-represents_property_and_is_contained-_specification">
<body>(represents.oclIsKindOf(Property) and superPartition->notEmpty()) implies ( (superPartition.represents.oclIsKindOf(Classifier) and represents.owner = superPartition.represents) or (superPartition.represents.oclIsKindOf(Property) and represents.owner = superPartition.represents.oclAsType(Property).type) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityPartition-represents_property" name="represents_property">
<constrainedElement xmi:idref="ActivityPartition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-represents_property-_ownedComment.0" body="If an ActivityPartition represents a Property and has a superPartition representing a Classifier, then all the other non-external subpartitions of the superPartition must represent Properties directly owned by the same Classifier.">
<annotatedElement xmi:idref="ActivityPartition-represents_property"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityPartition-represents_property-_specification">
<body>(represents.oclIsKindOf(Property) and superPartition->notEmpty() and superPartition.represents.oclIsKindOf(Classifier)) implies ( let representedClassifier : Classifier = superPartition.represents.oclAsType(Classifier) in superPartition.subpartition->reject(isExternal)->forAll(p | p.represents.oclIsKindOf(Property) and p.owner=representedClassifier) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActivityPartition-dimension_not_contained" name="dimension_not_contained">
<constrainedElement xmi:idref="ActivityPartition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-dimension_not_contained-_ownedComment.0" body="An ActvivityPartition with isDimension = true may not be contained by another ActivityPartition.">
<annotatedElement xmi:idref="ActivityPartition-dimension_not_contained"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActivityPartition-dimension_not_contained-_specification">
<body>isDimension implies superPartition->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActivityPartition-_generalization.0" general="ActivityGroup"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-edge" name="edge" type="ActivityEdge" association="A_edge_inPartition">
<subsettedProperty xmi:idref="ActivityGroup-containedEdge"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-edge-_ownedComment.0" body="ActivityEdges immediately contained in the ActivityPartition.">
<annotatedElement xmi:idref="ActivityPartition-edge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityPartition-edge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityPartition-edge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-isDimension" name="isDimension">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-isDimension-_ownedComment.0" body="Indicates whether the ActivityPartition groups other ActivityPartitions along a dimension.">
<annotatedElement xmi:idref="ActivityPartition-isDimension"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ActivityPartition-isDimension-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-isExternal" name="isExternal">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-isExternal-_ownedComment.0" body="Indicates whether the ActivityPartition represents an entity to which the partitioning structure does not apply.">
<annotatedElement xmi:idref="ActivityPartition-isExternal"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ActivityPartition-isExternal-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-node" name="node" type="ActivityNode" association="A_inPartition_node">
<subsettedProperty xmi:idref="ActivityGroup-containedNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-node-_ownedComment.0" body="ActivityNodes immediately contained in the ActivityPartition.">
<annotatedElement xmi:idref="ActivityPartition-node"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityPartition-node-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityPartition-node-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-represents" name="represents" type="Element" association="A_represents_activityPartition">
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-represents-_ownedComment.0" body="An Element represented by the functionality modeled within the ActivityPartition.">
<annotatedElement xmi:idref="ActivityPartition-represents"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityPartition-represents-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-subpartition" name="subpartition" aggregation="composite" type="ActivityPartition" association="A_subpartition_superPartition">
<subsettedProperty xmi:idref="ActivityGroup-subgroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-subpartition-_ownedComment.0" body="Other ActivityPartitions immediately contained in this ActivityPartition (as its subgroups).">
<annotatedElement xmi:idref="ActivityPartition-subpartition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityPartition-subpartition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ActivityPartition-subpartition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActivityPartition-superPartition" name="superPartition" type="ActivityPartition" association="A_subpartition_superPartition">
<subsettedProperty xmi:idref="ActivityGroup-superGroup"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActivityPartition-superPartition-_ownedComment.0" body="Other ActivityPartitions immediately containing this ActivityPartition (as its superGroups).">
<annotatedElement xmi:idref="ActivityPartition-superPartition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ActivityPartition-superPartition-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CentralBufferNode" name="CentralBufferNode">
<ownedComment xmi:type="uml:Comment" xmi:id="CentralBufferNode-_ownedComment.0" body="A CentralBufferNode is an ObjectNode for managing flows from multiple sources and targets.">
<annotatedElement xmi:idref="CentralBufferNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="CentralBufferNode-_generalization.0" general="ObjectNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ControlFlow" name="ControlFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="ControlFlow-_ownedComment.0" body="A ControlFlow is an ActivityEdge traversed by control tokens or object tokens of control type, which are use to control the execution of ExecutableNodes.">
<annotatedElement xmi:idref="ControlFlow"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ControlFlow-object_nodes" name="object_nodes">
<constrainedElement xmi:idref="ControlFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ControlFlow-object_nodes-_ownedComment.0" body="ControlFlows may not have ObjectNodes at either end, except for ObjectNodes with control type.">
<annotatedElement xmi:idref="ControlFlow-object_nodes"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ControlFlow-object_nodes-_specification">
<body>(source.oclIsKindOf(ObjectNode) implies source.oclAsType(ObjectNode).isControlType) and (target.oclIsKindOf(ObjectNode) implies target.oclAsType(ObjectNode).isControlType)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ControlFlow-_generalization.0" general="ActivityEdge"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ControlNode" name="ControlNode" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ControlNode-_ownedComment.0" body="A ControlNode is an abstract ActivityNode that coordinates flows in an Activity.">
<annotatedElement xmi:idref="ControlNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ControlNode-_generalization.0" general="ActivityNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DataStoreNode" name="DataStoreNode">
<ownedComment xmi:type="uml:Comment" xmi:id="DataStoreNode-_ownedComment.0" body="A DataStoreNode is a CentralBufferNode for persistent data.">
<annotatedElement xmi:idref="DataStoreNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DataStoreNode-_generalization.0" general="CentralBufferNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DecisionNode" name="DecisionNode">
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-_ownedComment.0" body="A DecisionNode is a ControlNode that chooses between outgoing ActivityEdges for the routing of tokens.">
<annotatedElement xmi:idref="DecisionNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-zero_input_parameters" name="zero_input_parameters">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-zero_input_parameters-_ownedComment.0" body="If the DecisionNode has no decisionInputFlow and an incoming ControlFlow, then any decisionInput Behavior has no in parameters.">
<annotatedElement xmi:idref="DecisionNode-zero_input_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-zero_input_parameters-_specification">
<body>(decisionInput<>null and decisionInputFlow=null and incoming->exists(oclIsKindOf(ControlFlow))) implies decisionInput.inputParameters()->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-edges" name="edges">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-edges-_ownedComment.0" body="The ActivityEdges incoming to and outgoing from a DecisionNode, other than the decisionInputFlow (if any), must be either all ObjectFlows or all ControlFlows.">
<annotatedElement xmi:idref="DecisionNode-edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-edges-_specification">
<body>let allEdges: Set(ActivityEdge) = incoming->union(outgoing) in let allRelevantEdges: Set(ActivityEdge) = if decisionInputFlow->notEmpty() then allEdges->excluding(decisionInputFlow) else allEdges endif in allRelevantEdges->forAll(oclIsKindOf(ControlFlow)) or allRelevantEdges->forAll(oclIsKindOf(ObjectFlow)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-decision_input_flow_incoming" name="decision_input_flow_incoming">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-decision_input_flow_incoming-_ownedComment.0" body="The decisionInputFlow of a DecisionNode must be an incoming ActivityEdge of the DecisionNode.">
<annotatedElement xmi:idref="DecisionNode-decision_input_flow_incoming"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-decision_input_flow_incoming-_specification">
<body>incoming->includes(decisionInputFlow)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-two_input_parameters" name="two_input_parameters">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-two_input_parameters-_ownedComment.0" body="If the DecisionNode has a decisionInputFlow and an second incoming ObjectFlow, then any decisionInput has two in Parameters, the first of which has a type that is the same as or a supertype of the type of object tokens offered on the non-decisionInputFlow and the second of which has a type that is the same as or a supertype of the type of object tokens offered on the decisionInputFlow.">
<annotatedElement xmi:idref="DecisionNode-two_input_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-two_input_parameters-_specification">
<body>(decisionInput<>null and decisionInputFlow<>null and incoming->forAll(oclIsKindOf(ObjectFlow))) implies decisionInput.inputParameters()->size()=2</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-incoming_outgoing_edges" name="incoming_outgoing_edges">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-incoming_outgoing_edges-_ownedComment.0" body="A DecisionNode has one or two incoming ActivityEdges and at least one outgoing ActivityEdge.">
<annotatedElement xmi:idref="DecisionNode-incoming_outgoing_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-incoming_outgoing_edges-_specification">
<body>(incoming->size() = 1 or incoming->size() = 2) and outgoing->size() > 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-incoming_control_one_input_parameter" name="incoming_control_one_input_parameter">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-incoming_control_one_input_parameter-_ownedComment.0" body="If the DecisionNode has a decisionInputFlow and an incoming ControlFlow, then any decisionInput Behavior has one in Parameter whose type is the same as or a supertype of the type of object tokens offered on the decisionInputFlow.">
<annotatedElement xmi:idref="DecisionNode-incoming_control_one_input_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-incoming_control_one_input_parameter-_specification">
<body>(decisionInput<>null and decisionInputFlow<>null and incoming->exists(oclIsKindOf(ControlFlow))) implies decisionInput.inputParameters()->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-parameters" name="parameters">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-parameters-_ownedComment.0" body="A decisionInput Behavior has no out parameters, no inout parameters, and one return parameter.">
<annotatedElement xmi:idref="DecisionNode-parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-parameters-_specification">
<body>decisionInput<>null implies (decisionInput.ownedParameter->forAll(par | par.direction <> ParameterDirectionKind::out and par.direction <> ParameterDirectionKind::inout ) and decisionInput.ownedParameter->one(par | par.direction <> ParameterDirectionKind::return)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DecisionNode-incoming_object_one_input_parameter" name="incoming_object_one_input_parameter">
<constrainedElement xmi:idref="DecisionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-incoming_object_one_input_parameter-_ownedComment.0" body="If the DecisionNode has no decisionInputFlow and an incoming ObjectFlow, then any decisionInput Behavior has one in Parameter whose type is the same as or a supertype of the type of object tokens offered on the incoming ObjectFlow.">
<annotatedElement xmi:idref="DecisionNode-incoming_object_one_input_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DecisionNode-incoming_object_one_input_parameter-_specification">
<body>(decisionInput<>null and decisionInputFlow=null and incoming->forAll(oclIsKindOf(ObjectFlow))) implies decisionInput.inputParameters()->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DecisionNode-_generalization.0" general="ControlNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DecisionNode-decisionInput" name="decisionInput" type="Behavior" association="A_decisionInput_decisionNode">
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-decisionInput-_ownedComment.0" body="A Behavior that is executed to provide an input to guard ValueSpecifications on ActivityEdges outgoing from the DecisionNode.">
<annotatedElement xmi:idref="DecisionNode-decisionInput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DecisionNode-decisionInput-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DecisionNode-decisionInputFlow" name="decisionInputFlow" type="ObjectFlow" association="A_decisionInputFlow_decisionNode">
<ownedComment xmi:type="uml:Comment" xmi:id="DecisionNode-decisionInputFlow-_ownedComment.0" body="An additional ActivityEdge incoming to the DecisionNode that provides a decision input value for the guards ValueSpecifications on ActivityEdges outgoing from the DecisionNode.">
<annotatedElement xmi:idref="DecisionNode-decisionInputFlow"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DecisionNode-decisionInputFlow-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExceptionHandler" name="ExceptionHandler">
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-_ownedComment.0" body="An ExceptionHandler is an Element that specifies a handlerBody ExecutableNode to execute in case the specified exception occurs during the execution of the protected ExecutableNode.">
<annotatedElement xmi:idref="ExceptionHandler"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-handler_body_edges" name="handler_body_edges">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-handler_body_edges-_ownedComment.0" body="The handlerBody has no incoming or outgoing ActivityEdges and the exceptionInput has no incoming ActivityEdges.">
<annotatedElement xmi:idref="ExceptionHandler-handler_body_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-handler_body_edges-_specification">
<body>handlerBody.incoming->isEmpty() and handlerBody.outgoing->isEmpty() and exceptionInput.incoming->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-output_pins" name="output_pins">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-output_pins-_ownedComment.0" body="If the protectedNode is an Action with OutputPins, then the handlerBody must also be an Action with the same number of OutputPins, which are compatible in type, ordering, and multiplicity to those of the protectedNode.">
<annotatedElement xmi:idref="ExceptionHandler-output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-output_pins-_specification">
<body>(protectedNode.oclIsKindOf(Action) and protectedNode.oclAsType(Action).output->notEmpty()) implies ( handlerBody.oclIsKindOf(Action) and let protectedNodeOutput : OrderedSet(OutputPin) = protectedNode.oclAsType(Action).output, handlerBodyOutput : OrderedSet(OutputPin) = handlerBody.oclAsType(Action).output in protectedNodeOutput->size() = handlerBodyOutput->size() and Sequence{1..protectedNodeOutput->size()}->forAll(i | handlerBodyOutput->at(i).type.conformsTo(protectedNodeOutput->at(i).type) and handlerBodyOutput->at(i).isOrdered=protectedNodeOutput->at(i).isOrdered and handlerBodyOutput->at(i).compatibleWith(protectedNodeOutput->at(i))) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-one_input" name="one_input">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-one_input-_ownedComment.0" body="The handlerBody is an Action with one InputPin, and that InputPin is the same as the exceptionInput.">
<annotatedElement xmi:idref="ExceptionHandler-one_input"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-one_input-_specification">
<body>handlerBody.oclIsKindOf(Action) and let inputs: OrderedSet(InputPin) = handlerBody.oclAsType(Action).input in inputs->size()=1 and inputs->first()=exceptionInput</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-edge_source_target" name="edge_source_target">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-edge_source_target-_ownedComment.0" body="An ActivityEdge that has a source within the handlerBody of an ExceptionHandler must have its target in the handlerBody also, and vice versa.">
<annotatedElement xmi:idref="ExceptionHandler-edge_source_target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-edge_source_target-_specification">
<body>let nodes:Set(ActivityNode) = handlerBody.oclAsType(Action).allOwnedNodes() in nodes.outgoing->forAll(nodes->includes(target)) and nodes.incoming->forAll(nodes->includes(source))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-handler_body_owner" name="handler_body_owner">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-handler_body_owner-_ownedComment.0" body="The handlerBody must have the same owner as the protectedNode.">
<annotatedElement xmi:idref="ExceptionHandler-handler_body_owner"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-handler_body_owner-_specification">
<body>handlerBody.owner=protectedNode.owner</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExceptionHandler-exception_input_type" name="exception_input_type">
<constrainedElement xmi:idref="ExceptionHandler"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-exception_input_type-_ownedComment.0" body="The exceptionInput must either have no type or every exceptionType must conform to the exceptionInput type.">
<annotatedElement xmi:idref="ExceptionHandler-exception_input_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExceptionHandler-exception_input_type-_specification">
<body>exceptionInput.type=null or exceptionType->forAll(conformsTo(exceptionInput.type.oclAsType(Classifier)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ExceptionHandler-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExceptionHandler-exceptionInput" name="exceptionInput" type="ObjectNode" association="A_exceptionInput_exceptionHandler">
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-exceptionInput-_ownedComment.0" body="An ObjectNode within the handlerBody. When the ExceptionHandler catches an exception, the exception token is placed on this ObjectNode, causing the handlerBody to execute.">
<annotatedElement xmi:idref="ExceptionHandler-exceptionInput"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExceptionHandler-exceptionType" name="exceptionType" type="Classifier" association="A_exceptionType_exceptionHandler">
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-exceptionType-_ownedComment.0" body="The Classifiers whose instances the ExceptionHandler catches as exceptions. If an exception occurs whose type is any exceptionType, the ExceptionHandler catches the exception and executes the handlerBody.">
<annotatedElement xmi:idref="ExceptionHandler-exceptionType"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ExceptionHandler-exceptionType-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExceptionHandler-handlerBody" name="handlerBody" type="ExecutableNode" association="A_handlerBody_exceptionHandler">
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-handlerBody-_ownedComment.0" body="An ExecutableNode that is executed if the ExceptionHandler catches an exception.">
<annotatedElement xmi:idref="ExceptionHandler-handlerBody"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExceptionHandler-protectedNode" name="protectedNode" type="ExecutableNode" association="A_handler_protectedNode">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExceptionHandler-protectedNode-_ownedComment.0" body="The ExecutableNode protected by the ExceptionHandler. If an exception propagates out of the protectedNode and has a type matching one of the exceptionTypes, then it is caught by this ExceptionHandler.">
<annotatedElement xmi:idref="ExceptionHandler-protectedNode"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExecutableNode" name="ExecutableNode" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutableNode-_ownedComment.0" body="An ExecutableNode is an abstract class for ActivityNodes whose execution may be controlled using ControlFlows and to which ExceptionHandlers may be attached.">
<annotatedElement xmi:idref="ExecutableNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ExecutableNode-_generalization.0" general="ActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExecutableNode-handler" name="handler" aggregation="composite" type="ExceptionHandler" association="A_handler_protectedNode">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutableNode-handler-_ownedComment.0" body="A set of ExceptionHandlers that are examined if an exception propagates out of the ExceptionNode.">
<annotatedElement xmi:idref="ExecutableNode-handler"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExecutableNode-handler-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ExecutableNode-handler-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="FinalNode" name="FinalNode" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="FinalNode-_ownedComment.0" body="A FinalNode is an abstract ControlNode at which a flow in an Activity stops.">
<annotatedElement xmi:idref="FinalNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalNode-no_outgoing_edges" name="no_outgoing_edges">
<constrainedElement xmi:idref="FinalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalNode-no_outgoing_edges-_ownedComment.0" body="A FinalNode has no outgoing ActivityEdges.">
<annotatedElement xmi:idref="FinalNode-no_outgoing_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalNode-no_outgoing_edges-_specification">
<body>outgoing->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="FinalNode-_generalization.0" general="ControlNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="FlowFinalNode" name="FlowFinalNode">
<ownedComment xmi:type="uml:Comment" xmi:id="FlowFinalNode-_ownedComment.0" body="A FlowFinalNode is a FinalNode that terminates a flow by consuming the tokens offered to it.">
<annotatedElement xmi:idref="FlowFinalNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="FlowFinalNode-_generalization.0" general="FinalNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ForkNode" name="ForkNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ForkNode-_ownedComment.0" body="A ForkNode is a ControlNode that splits a flow into multiple concurrent flows.">
<annotatedElement xmi:idref="ForkNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ForkNode-edges" name="edges">
<constrainedElement xmi:idref="ForkNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ForkNode-edges-_ownedComment.0" body="The ActivityEdges incoming to and outgoing from a ForkNode must be either all ObjectFlows or all ControlFlows.">
<annotatedElement xmi:idref="ForkNode-edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ForkNode-edges-_specification">
<body>let allEdges : Set(ActivityEdge) = incoming->union(outgoing) in allEdges->forAll(oclIsKindOf(ControlFlow)) or allEdges->forAll(oclIsKindOf(ObjectFlow)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ForkNode-one_incoming_edge" name="one_incoming_edge">
<constrainedElement xmi:idref="ForkNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ForkNode-one_incoming_edge-_ownedComment.0" body="A ForkNode has one incoming ActivityEdge.">
<annotatedElement xmi:idref="ForkNode-one_incoming_edge"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ForkNode-one_incoming_edge-_specification">
<body>incoming->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ForkNode-_generalization.0" general="ControlNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InitialNode" name="InitialNode">
<ownedComment xmi:type="uml:Comment" xmi:id="InitialNode-_ownedComment.0" body="An InitialNode is a ControlNode that offers a single control token when initially enabled.">
<annotatedElement xmi:idref="InitialNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InitialNode-no_incoming_edges" name="no_incoming_edges">
<constrainedElement xmi:idref="InitialNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InitialNode-no_incoming_edges-_ownedComment.0" body="An InitialNode has no incoming ActivityEdges.">
<annotatedElement xmi:idref="InitialNode-no_incoming_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InitialNode-no_incoming_edges-_specification">
<body>incoming->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InitialNode-control_edges" name="control_edges">
<constrainedElement xmi:idref="InitialNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InitialNode-control_edges-_ownedComment.0" body="All the outgoing ActivityEdges from an InitialNode must be ControlFlows.">
<annotatedElement xmi:idref="InitialNode-control_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InitialNode-control_edges-_specification">
<body>outgoing->forAll(oclIsKindOf(ControlFlow))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InitialNode-_generalization.0" general="ControlNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InterruptibleActivityRegion" name="InterruptibleActivityRegion">
<ownedComment xmi:type="uml:Comment" xmi:id="InterruptibleActivityRegion-_ownedComment.0" body="An InterruptibleActivityRegion is an ActivityGroup that supports the termination of tokens flowing in the portions of an activity within it.">
<annotatedElement xmi:idref="InterruptibleActivityRegion"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InterruptibleActivityRegion-interrupting_edges" name="interrupting_edges">
<constrainedElement xmi:idref="InterruptibleActivityRegion"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InterruptibleActivityRegion-interrupting_edges-_ownedComment.0" body="The interruptingEdges of an InterruptibleActivityRegion must have their source in the region and their target outside the region, but within the same Activity containing the region.">
<annotatedElement xmi:idref="InterruptibleActivityRegion-interrupting_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InterruptibleActivityRegion-interrupting_edges-_specification">
<body>interruptingEdge->forAll(edge | node->includes(edge.source) and node->excludes(edge.target) and edge.target.containingActivity() = inActivity)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InterruptibleActivityRegion-_generalization.0" general="ActivityGroup"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InterruptibleActivityRegion-interruptingEdge" name="interruptingEdge" type="ActivityEdge" association="A_interruptingEdge_interrupts">
<ownedComment xmi:type="uml:Comment" xmi:id="InterruptibleActivityRegion-interruptingEdge-_ownedComment.0" body="The ActivityEdges leaving the InterruptibleActivityRegion on which a traversing token will result in the termination of other tokens flowing in the InterruptibleActivityRegion.">
<annotatedElement xmi:idref="InterruptibleActivityRegion-interruptingEdge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InterruptibleActivityRegion-interruptingEdge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InterruptibleActivityRegion-interruptingEdge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InterruptibleActivityRegion-node" name="node" type="ActivityNode" association="A_inInterruptibleRegion_node">
<subsettedProperty xmi:idref="ActivityGroup-containedNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InterruptibleActivityRegion-node-_ownedComment.0" body="ActivityNodes immediately contained in the InterruptibleActivityRegion.">
<annotatedElement xmi:idref="InterruptibleActivityRegion-node"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InterruptibleActivityRegion-node-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InterruptibleActivityRegion-node-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="JoinNode" name="JoinNode">
<ownedComment xmi:type="uml:Comment" xmi:id="JoinNode-_ownedComment.0" body="A JoinNode is a ControlNode that synchronizes multiple flows.">
<annotatedElement xmi:idref="JoinNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="JoinNode-one_outgoing_edge" name="one_outgoing_edge">
<constrainedElement xmi:idref="JoinNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="JoinNode-one_outgoing_edge-_ownedComment.0" body="A JoinNode has one outgoing ActivityEdge.">
<annotatedElement xmi:idref="JoinNode-one_outgoing_edge"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="JoinNode-one_outgoing_edge-_specification">
<body>outgoing->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="JoinNode-incoming_object_flow" name="incoming_object_flow">
<constrainedElement xmi:idref="JoinNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="JoinNode-incoming_object_flow-_ownedComment.0" body="If one of the incoming ActivityEdges of a JoinNode is an ObjectFlow, then its outgoing ActivityEdge must be an ObjectFlow. Otherwise its outgoing ActivityEdge must be a ControlFlow.">
<annotatedElement xmi:idref="JoinNode-incoming_object_flow"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="JoinNode-incoming_object_flow-_specification">
<body>if incoming->exists(oclIsKindOf(ObjectFlow)) then outgoing->forAll(oclIsKindOf(ObjectFlow)) else outgoing->forAll(oclIsKindOf(ControlFlow)) endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="JoinNode-_generalization.0" general="ControlNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="JoinNode-isCombineDuplicate" name="isCombineDuplicate">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="JoinNode-isCombineDuplicate-_ownedComment.0" body="Indicates whether incoming tokens having objects with the same identity are combined into one by the JoinNode.">
<annotatedElement xmi:idref="JoinNode-isCombineDuplicate"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="JoinNode-isCombineDuplicate-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="JoinNode-joinSpec" name="joinSpec" aggregation="composite" type="ValueSpecification" association="A_joinSpec_joinNode">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="JoinNode-joinSpec-_ownedComment.0" body="A ValueSpecification giving the condition under which the JoinNode will offer a token on its outgoing ActivityEdge. If no joinSpec is specified, then the JoinNode will offer an outgoing token if tokens are offered on all of its incoming ActivityEdges (an "and" condition).">
<annotatedElement xmi:idref="JoinNode-joinSpec"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="JoinNode-joinSpec-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="MergeNode" name="MergeNode">
<ownedComment xmi:type="uml:Comment" xmi:id="MergeNode-_ownedComment.0" body="A merge node is a control node that brings together multiple alternate flows. It is not used to synchronize concurrent flows but to accept one among several alternate flows.">
<annotatedElement xmi:idref="MergeNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MergeNode-one_outgoing_edge" name="one_outgoing_edge">
<constrainedElement xmi:idref="MergeNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MergeNode-one_outgoing_edge-_ownedComment.0" body="A MergeNode has one outgoing ActivityEdge.">
<annotatedElement xmi:idref="MergeNode-one_outgoing_edge"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MergeNode-one_outgoing_edge-_specification">
<body>outgoing->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MergeNode-edges" name="edges">
<constrainedElement xmi:idref="MergeNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MergeNode-edges-_ownedComment.0" body="The ActivityEdges incoming to and outgoing from a MergeNode must be either all ObjectFlows or all ControlFlows.">
<annotatedElement xmi:idref="MergeNode-edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MergeNode-edges-_specification">
<body>let allEdges : Set(ActivityEdge) = incoming->union(outgoing) in allEdges->forAll(oclIsKindOf(ControlFlow)) or allEdges->forAll(oclIsKindOf(ObjectFlow)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="MergeNode-_generalization.0" general="ControlNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ObjectFlow" name="ObjectFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-_ownedComment.0" body="An ObjectFlow is an ActivityEdge that is traversed by object tokens that may hold values. Object flows also support multicast/receive, token selection from object nodes, and transformation of tokens.">
<annotatedElement xmi:idref="ObjectFlow"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-input_and_output_parameter" name="input_and_output_parameter">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-input_and_output_parameter-_ownedComment.0" body="A selection Behavior has one input Parameter and one output Parameter. The input Parameter must have the same as or a supertype of the type of the source ObjectNode, be non-unique and have multiplicity 0..*. The output Parameter must be the same or a subtype of the type of source ObjectNode. The Behavior cannot have side effects.">
<annotatedElement xmi:idref="ObjectFlow-input_and_output_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-input_and_output_parameter-_specification">
<body>selection<>null implies selection.inputParameters()->size()=1 and selection.inputParameters()->forAll(not isUnique and is(0,*)) and selection.outputParameters()->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-no_executable_nodes" name="no_executable_nodes">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-no_executable_nodes-_ownedComment.0" body="ObjectFlows may not have ExecutableNodes at either end.">
<annotatedElement xmi:idref="ObjectFlow-no_executable_nodes"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-no_executable_nodes-_specification">
<body>not (source.oclIsKindOf(ExecutableNode) or target.oclIsKindOf(ExecutableNode))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-transformation_behavior" name="transformation_behavior">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-transformation_behavior-_ownedComment.0" body="A transformation Behavior has one input Parameter and one output Parameter. The input Parameter must be the same as or a supertype of the type of object token coming from the source end. The output Parameter must be the same or a subtype of the type of object token expected downstream. The Behavior cannot have side effects.">
<annotatedElement xmi:idref="ObjectFlow-transformation_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-transformation_behavior-_specification">
<body>transformation<>null implies transformation.inputParameters()->size()=1 and transformation.outputParameters()->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-selection_behavior" name="selection_behavior">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-selection_behavior-_ownedComment.0" body="An ObjectFlow may have a selection Behavior only if it has an ObjectNode as its source.">
<annotatedElement xmi:idref="ObjectFlow-selection_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-selection_behavior-_specification">
<body>selection<>null implies source.oclIsKindOf(ObjectNode)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-compatible_types" name="compatible_types">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-compatible_types-_ownedComment.0" body="ObjectNodes connected by an ObjectFlow, with optionally intervening ControlNodes, must have compatible types. In particular, the downstream ObjectNode type must be the same or a supertype of the upstream ObjectNode type.">
<annotatedElement xmi:idref="ObjectFlow-compatible_types"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-compatible_types-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-same_upper_bounds" name="same_upper_bounds">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-same_upper_bounds-_ownedComment.0" body="ObjectNodes connected by an ObjectFlow, with optionally intervening ControlNodes, must have the same upperBounds.">
<annotatedElement xmi:idref="ObjectFlow-same_upper_bounds"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-same_upper_bounds-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-target" name="target">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-target-_ownedComment.0" body="An ObjectFlow with a constant weight may not target an ObjectNode, with optionally intervening ControlNodes, that has an upper bound less than the weight.">
<annotatedElement xmi:idref="ObjectFlow-target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-target-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectFlow-is_multicast_or_is_multireceive" name="is_multicast_or_is_multireceive">
<constrainedElement xmi:idref="ObjectFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-is_multicast_or_is_multireceive-_ownedComment.0" body="isMulticast and isMultireceive cannot both be true.">
<annotatedElement xmi:idref="ObjectFlow-is_multicast_or_is_multireceive"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectFlow-is_multicast_or_is_multireceive-_specification">
<body>not (isMulticast and isMultireceive)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ObjectFlow-_generalization.0" general="ActivityEdge"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectFlow-isMulticast" name="isMulticast">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-isMulticast-_ownedComment.0" body="Indicates whether the objects in the ObjectFlow are passed by multicasting.">
<annotatedElement xmi:idref="ObjectFlow-isMulticast"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ObjectFlow-isMulticast-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectFlow-isMultireceive" name="isMultireceive">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-isMultireceive-_ownedComment.0" body="Indicates whether the objects in the ObjectFlow are gathered from respondents to multicasting.">
<annotatedElement xmi:idref="ObjectFlow-isMultireceive"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ObjectFlow-isMultireceive-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectFlow-selection" name="selection" type="Behavior" association="A_selection_objectFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-selection-_ownedComment.0" body="A Behavior used to select tokens from a source ObjectNode.">
<annotatedElement xmi:idref="ObjectFlow-selection"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ObjectFlow-selection-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectFlow-transformation" name="transformation" type="Behavior" association="A_transformation_objectFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectFlow-transformation-_ownedComment.0" body="A Behavior used to change or replace object tokens flowing along the ObjectFlow.">
<annotatedElement xmi:idref="ObjectFlow-transformation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ObjectFlow-transformation-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ObjectNode" name="ObjectNode" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-_ownedComment.0" body="An ObjectNode is an abstract ActivityNode that may hold tokens within the object flow in an Activity. ObjectNodes also support token selection, limitation on the number of tokens held, specification of the state required for tokens being held, and carrying control values. ">
<annotatedElement xmi:idref="ObjectNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectNode-input_output_parameter" name="input_output_parameter">
<constrainedElement xmi:idref="ObjectNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-input_output_parameter-_ownedComment.0" body="A selection Behavior has one input Parameter and one output Parameter. The input Parameter must have the same type as or a supertype of the type of ObjectNode, be non-unique, and have multiplicity 0..*. The output Parameter must be the same or a subtype of the type of ObjectNode. The Behavior cannot have side effects.">
<annotatedElement xmi:idref="ObjectNode-input_output_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectNode-input_output_parameter-_specification">
<body>selection<>null implies selection.inputParameters()->size()=1 and selection.inputParameters()->forAll(p | not p.isUnique and p.is(0,*) and self.type.conformsTo(p.type)) and selection.outputParameters()->size()=1 and selection.inputParameters()->forAll(p | self.type.conformsTo(p.type)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectNode-selection_behavior" name="selection_behavior">
<constrainedElement xmi:idref="ObjectNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-selection_behavior-_ownedComment.0" body="If an ObjectNode has a selection Behavior, then the ordering of the object node is ordered, and vice versa.">
<annotatedElement xmi:idref="ObjectNode-selection_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectNode-selection_behavior-_specification">
<body>(selection<>null) = (ordering=ObjectNodeOrderingKind::ordered)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ObjectNode-object_flow_edges" name="object_flow_edges">
<constrainedElement xmi:idref="ObjectNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-object_flow_edges-_ownedComment.0" body="If isControlType=false, the ActivityEdges incoming to or outgoing from an ObjectNode must all be ObjectFlows.">
<annotatedElement xmi:idref="ObjectNode-object_flow_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ObjectNode-object_flow_edges-_specification">
<body>(not isControlType) implies incoming->union(outgoing)->forAll(oclIsKindOf(ObjectFlow))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ObjectNode-_generalization.1" general="TypedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="ObjectNode-_generalization.0" general="ActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectNode-inState" name="inState" type="State" association="A_inState_objectNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-inState-_ownedComment.0" body="The States required to be associated with the values held by tokens on this ObjectNode.">
<annotatedElement xmi:idref="ObjectNode-inState"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ObjectNode-inState-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ObjectNode-inState-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectNode-isControlType" name="isControlType">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-isControlType-_ownedComment.0" body="Indicates whether the type of the ObjectNode is to be treated as representing control values that may traverse ControlFlows.">
<annotatedElement xmi:idref="ObjectNode-isControlType"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ObjectNode-isControlType-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectNode-ordering" name="ordering" type="ObjectNodeOrderingKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-ordering-_ownedComment.0" body="Indicates how the tokens held by the ObjectNode are ordered for selection to traverse ActivityEdges outgoing from the ObjectNode.">
<annotatedElement xmi:idref="ObjectNode-ordering"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="ObjectNode-ordering-_defaultValue" type="ObjectNodeOrderingKind" instance="ObjectNodeOrderingKind-FIFO"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectNode-selection" name="selection" type="Behavior" association="A_selection_objectNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-selection-_ownedComment.0" body="A Behavior used to select tokens to be offered on outgoing ActivityEdges.">
<annotatedElement xmi:idref="ObjectNode-selection"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ObjectNode-selection-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ObjectNode-upperBound" name="upperBound" aggregation="composite" type="ValueSpecification" association="A_upperBound_objectNode">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNode-upperBound-_ownedComment.0" body="The maximum number of tokens that may be held by this ObjectNode. Tokens cannot flow into the ObjectNode if the upperBound is reached. If no upperBound is specified, then there is no limit on how many tokens the ObjectNode can hold.">
<annotatedElement xmi:idref="ObjectNode-upperBound"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ObjectNode-upperBound-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Variable" name="Variable">
<ownedComment xmi:type="uml:Comment" xmi:id="Variable-_ownedComment.0" body="A Variable is a ConnectableElement that may store values during the execution of an Activity. Reading and writing the values of a Variable provides an alternative means for passing data than the use of ObjectFlows. A Variable may be owned directly by an Activity, in which case it is accessible from anywhere within that activity, or it may be owned by a StructuredActivityNode, in which case it is only accessible within that node.">
<annotatedElement xmi:idref="Variable"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Variable-_generalization.0" general="ConnectableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Variable-_generalization.1" general="MultiplicityElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Variable-activityScope" name="activityScope" type="Activity" association="A_variable_activityScope">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Variable-activityScope-_ownedComment.0" body="An Activity that owns the Variable.">
<annotatedElement xmi:idref="Variable-activityScope"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Variable-activityScope-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Variable-scope" name="scope" type="StructuredActivityNode" association="A_variable_scope">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Variable-scope-_ownedComment.0" body="A StructuredActivityNode that owns the Variable.">
<annotatedElement xmi:idref="Variable-scope"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Variable-scope-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Variable-isAccessibleBy" name="isAccessibleBy" isQuery="true" bodyCondition="Variable-isAccessibleBy-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Variable-isAccessibleBy-_ownedComment.0" body="A Variable is accessible by Actions within its scope (the Activity or StructuredActivityNode that owns it).">
<annotatedElement xmi:idref="Variable-isAccessibleBy"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Variable-isAccessibleBy-spec" name="spec">
<constrainedElement xmi:idref="Variable-isAccessibleBy"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Variable-isAccessibleBy-spec-_specification">
<body>result = (if scope<>null then scope.allOwnedNodes()->includes(a) else a.containingActivity()=activityScope endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Variable-isAccessibleBy-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Variable-isAccessibleBy-a" name="a" type="Action"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="ObjectNodeOrderingKind" name="ObjectNodeOrderingKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNodeOrderingKind-_ownedComment.0" body="ObjectNodeOrderingKind is an enumeration indicating queuing order for offering the tokens held by an ObjectNode.">
<annotatedElement xmi:idref="ObjectNodeOrderingKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ObjectNodeOrderingKind-unordered" name="unordered">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNodeOrderingKind-unordered-_ownedComment.0" body="Indicates that tokens are unordered.">
<annotatedElement xmi:idref="ObjectNodeOrderingKind-unordered"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ObjectNodeOrderingKind-ordered" name="ordered">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNodeOrderingKind-ordered-_ownedComment.0" body="Indicates that tokens are ordered.">
<annotatedElement xmi:idref="ObjectNodeOrderingKind-ordered"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ObjectNodeOrderingKind-LIFO" name="LIFO">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNodeOrderingKind-LIFO-_ownedComment.0" body="Indicates that tokens are queued in a last in, first out manner.">
<annotatedElement xmi:idref="ObjectNodeOrderingKind-LIFO"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ObjectNodeOrderingKind-FIFO" name="FIFO">
<ownedComment xmi:type="uml:Comment" xmi:id="ObjectNodeOrderingKind-FIFO-_ownedComment.0" body="Indicates that tokens are queued in a first in, first out manner.">
<annotatedElement xmi:idref="ObjectNodeOrderingKind-FIFO"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_selection_objectNode" name="A_selection_objectNode">
<memberEnd xmi:idref="ObjectNode-selection"/>
<memberEnd xmi:idref="A_selection_objectNode-objectNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_selection_objectNode-objectNode" name="objectNode" type="ObjectNode" association="A_selection_objectNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_selection_objectNode-objectNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_selection_objectNode-objectNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inState_objectNode" name="A_inState_objectNode">
<memberEnd xmi:idref="ObjectNode-inState"/>
<memberEnd xmi:idref="A_inState_objectNode-objectNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_inState_objectNode-objectNode" name="objectNode" type="ObjectNode" association="A_inState_objectNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_inState_objectNode-objectNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_inState_objectNode-objectNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_upperBound_objectNode" name="A_upperBound_objectNode">
<memberEnd xmi:idref="ObjectNode-upperBound"/>
<memberEnd xmi:idref="A_upperBound_objectNode-objectNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_upperBound_objectNode-objectNode" name="objectNode" type="ObjectNode" association="A_upperBound_objectNode">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_upperBound_objectNode-objectNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_transformation_objectFlow" name="A_transformation_objectFlow">
<memberEnd xmi:idref="ObjectFlow-transformation"/>
<memberEnd xmi:idref="A_transformation_objectFlow-objectFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_transformation_objectFlow-objectFlow" name="objectFlow" type="ObjectFlow" association="A_transformation_objectFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_transformation_objectFlow-objectFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_transformation_objectFlow-objectFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_selection_objectFlow" name="A_selection_objectFlow">
<memberEnd xmi:idref="ObjectFlow-selection"/>
<memberEnd xmi:idref="A_selection_objectFlow-objectFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_selection_objectFlow-objectFlow" name="objectFlow" type="ObjectFlow" association="A_selection_objectFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_selection_objectFlow-objectFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_selection_objectFlow-objectFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_joinSpec_joinNode" name="A_joinSpec_joinNode">
<memberEnd xmi:idref="JoinNode-joinSpec"/>
<memberEnd xmi:idref="A_joinSpec_joinNode-joinNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_joinSpec_joinNode-joinNode" name="joinNode" type="JoinNode" association="A_joinSpec_joinNode">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_joinSpec_joinNode-joinNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_interruptingEdge_interrupts" name="A_interruptingEdge_interrupts">
<memberEnd xmi:idref="InterruptibleActivityRegion-interruptingEdge"/>
<memberEnd xmi:idref="ActivityEdge-interrupts"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_handler_protectedNode" name="A_handler_protectedNode">
<memberEnd xmi:idref="ExecutableNode-handler"/>
<memberEnd xmi:idref="ExceptionHandler-protectedNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_handlerBody_exceptionHandler" name="A_handlerBody_exceptionHandler">
<memberEnd xmi:idref="ExceptionHandler-handlerBody"/>
<memberEnd xmi:idref="A_handlerBody_exceptionHandler-exceptionHandler"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_handlerBody_exceptionHandler-exceptionHandler" name="exceptionHandler" type="ExceptionHandler" association="A_handlerBody_exceptionHandler">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_handlerBody_exceptionHandler-exceptionHandler-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_handlerBody_exceptionHandler-exceptionHandler-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_exceptionType_exceptionHandler" name="A_exceptionType_exceptionHandler">
<memberEnd xmi:idref="ExceptionHandler-exceptionType"/>
<memberEnd xmi:idref="A_exceptionType_exceptionHandler-exceptionHandler"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_exceptionType_exceptionHandler-exceptionHandler" name="exceptionHandler" type="ExceptionHandler" association="A_exceptionType_exceptionHandler">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_exceptionType_exceptionHandler-exceptionHandler-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_exceptionType_exceptionHandler-exceptionHandler-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_exceptionInput_exceptionHandler" name="A_exceptionInput_exceptionHandler">
<memberEnd xmi:idref="ExceptionHandler-exceptionInput"/>
<memberEnd xmi:idref="A_exceptionInput_exceptionHandler-exceptionHandler"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_exceptionInput_exceptionHandler-exceptionHandler" name="exceptionHandler" type="ExceptionHandler" association="A_exceptionInput_exceptionHandler">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_exceptionInput_exceptionHandler-exceptionHandler-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_exceptionInput_exceptionHandler-exceptionHandler-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_decisionInput_decisionNode" name="A_decisionInput_decisionNode">
<memberEnd xmi:idref="DecisionNode-decisionInput"/>
<memberEnd xmi:idref="A_decisionInput_decisionNode-decisionNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_decisionInput_decisionNode-decisionNode" name="decisionNode" type="DecisionNode" association="A_decisionInput_decisionNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_decisionInput_decisionNode-decisionNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_decisionInput_decisionNode-decisionNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_decisionInputFlow_decisionNode" name="A_decisionInputFlow_decisionNode">
<memberEnd xmi:idref="DecisionNode-decisionInputFlow"/>
<memberEnd xmi:idref="A_decisionInputFlow_decisionNode-decisionNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_decisionInputFlow_decisionNode-decisionNode" name="decisionNode" type="DecisionNode" association="A_decisionInputFlow_decisionNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_decisionInputFlow_decisionNode-decisionNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_represents_activityPartition" name="A_represents_activityPartition">
<memberEnd xmi:idref="ActivityPartition-represents"/>
<memberEnd xmi:idref="A_represents_activityPartition-activityPartition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_represents_activityPartition-activityPartition" name="activityPartition" type="ActivityPartition" association="A_represents_activityPartition">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_represents_activityPartition-activityPartition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_represents_activityPartition-activityPartition-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subpartition_superPartition" name="A_subpartition_superPartition">
<memberEnd xmi:idref="ActivityPartition-subpartition"/>
<memberEnd xmi:idref="ActivityPartition-superPartition"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_edge_inPartition" name="A_edge_inPartition">
<memberEnd xmi:idref="ActivityPartition-edge"/>
<memberEnd xmi:idref="ActivityEdge-inPartition"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_parameter_activityParameterNode" name="A_parameter_activityParameterNode">
<memberEnd xmi:idref="ActivityParameterNode-parameter"/>
<memberEnd xmi:idref="A_parameter_activityParameterNode-activityParameterNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_parameter_activityParameterNode-activityParameterNode" name="activityParameterNode" type="ActivityParameterNode" association="A_parameter_activityParameterNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_parameter_activityParameterNode-activityParameterNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_parameter_activityParameterNode-activityParameterNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inInterruptibleRegion_node" name="A_inInterruptibleRegion_node">
<memberEnd xmi:idref="ActivityNode-inInterruptibleRegion"/>
<memberEnd xmi:idref="InterruptibleActivityRegion-node"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inPartition_node" name="A_inPartition_node">
<memberEnd xmi:idref="ActivityNode-inPartition"/>
<memberEnd xmi:idref="ActivityPartition-node"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_incoming_target_node" name="A_incoming_target_node">
<memberEnd xmi:idref="ActivityNode-incoming"/>
<memberEnd xmi:idref="ActivityEdge-target"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_outgoing_source_node" name="A_outgoing_source_node">
<memberEnd xmi:idref="ActivityNode-outgoing"/>
<memberEnd xmi:idref="ActivityEdge-source"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedNode_activityNode" name="A_redefinedNode_activityNode">
<memberEnd xmi:idref="ActivityNode-redefinedNode"/>
<memberEnd xmi:idref="A_redefinedNode_activityNode-activityNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedNode_activityNode-activityNode" name="activityNode" type="ActivityNode" association="A_redefinedNode_activityNode">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedNode_activityNode-activityNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedNode_activityNode-activityNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_containedEdge_inGroup" name="A_containedEdge_inGroup" isDerived="true">
<memberEnd xmi:idref="ActivityGroup-containedEdge"/>
<memberEnd xmi:idref="ActivityEdge-inGroup"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_containedNode_inGroup" name="A_containedNode_inGroup" isDerived="true">
<memberEnd xmi:idref="ActivityGroup-containedNode"/>
<memberEnd xmi:idref="ActivityNode-inGroup"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subgroup_superGroup" name="A_subgroup_superGroup" isDerived="true">
<memberEnd xmi:idref="ActivityGroup-subgroup"/>
<memberEnd xmi:idref="ActivityGroup-superGroup"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedEdge_activityEdge" name="A_redefinedEdge_activityEdge">
<memberEnd xmi:idref="ActivityEdge-redefinedEdge"/>
<memberEnd xmi:idref="A_redefinedEdge_activityEdge-activityEdge"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedEdge_activityEdge-activityEdge" name="activityEdge" type="ActivityEdge" association="A_redefinedEdge_activityEdge">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedEdge_activityEdge-activityEdge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedEdge_activityEdge-activityEdge-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_weight_activityEdge" name="A_weight_activityEdge">
<memberEnd xmi:idref="ActivityEdge-weight"/>
<memberEnd xmi:idref="A_weight_activityEdge-activityEdge"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_weight_activityEdge-activityEdge" name="activityEdge" type="ActivityEdge" association="A_weight_activityEdge">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_weight_activityEdge-activityEdge-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_guard_activityEdge" name="A_guard_activityEdge">
<memberEnd xmi:idref="ActivityEdge-guard"/>
<memberEnd xmi:idref="A_guard_activityEdge-activityEdge"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_guard_activityEdge-activityEdge" name="activityEdge" type="ActivityEdge" association="A_guard_activityEdge">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_guard_activityEdge-activityEdge-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_structuredNode_activity" name="A_structuredNode_activity">
<memberEnd xmi:idref="Activity-structuredNode"/>
<memberEnd xmi:idref="StructuredActivityNode-activity"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_group_inActivity" name="A_group_inActivity">
<memberEnd xmi:idref="Activity-group"/>
<memberEnd xmi:idref="ActivityGroup-inActivity"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_node_activity" name="A_node_activity">
<memberEnd xmi:idref="Activity-node"/>
<memberEnd xmi:idref="ActivityNode-activity"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_variable_activityScope" name="A_variable_activityScope">
<memberEnd xmi:idref="Activity-variable"/>
<memberEnd xmi:idref="Variable-activityScope"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_edge_activity" name="A_edge_activity">
<memberEnd xmi:idref="Activity-edge"/>
<memberEnd xmi:idref="ActivityEdge-activity"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_partition_activity" name="A_partition_activity">
<memberEnd xmi:idref="Activity-partition"/>
<memberEnd xmi:idref="A_partition_activity-activity"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_partition_activity-activity" name="activity" type="Activity" association="A_partition_activity">
<subsettedProperty xmi:idref="ActivityGroup-inActivity"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_partition_activity-activity-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Values" name="Values">
<packageImport xmi:type="uml:PackageImport" xmi:id="Values-_packageImport.0" importedPackage="Classification"/>
<packagedElement xmi:type="uml:Class" xmi:id="Duration" name="Duration">
<ownedComment xmi:type="uml:Comment" xmi:id="Duration-_ownedComment.0" body="A Duration is a ValueSpecification that specifies the temporal distance between two time instants.">
<annotatedElement xmi:idref="Duration"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Duration-no_expr_requires_observation" name="no_expr_requires_observation">
<constrainedElement xmi:idref="Duration"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Duration-no_expr_requires_observation-_ownedComment.0" body="If a Duration has no expr, then it must have a single observation that is a DurationObservation.">
<annotatedElement xmi:idref="Duration-no_expr_requires_observation"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Duration-no_expr_requires_observation-_specification">
<body>expr = null implies (observation->size() = 1 and observation->forAll(oclIsKindOf(DurationObservation)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Duration-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Duration-expr" name="expr" aggregation="composite" type="ValueSpecification" association="A_expr_duration">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Duration-expr-_ownedComment.0" body="A ValueSpecification that evaluates to the value of the Duration.">
<annotatedElement xmi:idref="Duration-expr"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Duration-expr-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Duration-observation" name="observation" type="Observation" association="A_observation_duration">
<ownedComment xmi:type="uml:Comment" xmi:id="Duration-observation-_ownedComment.0" body="Refers to the Observations that are involved in the computation of the Duration value">
<annotatedElement xmi:idref="Duration-observation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Duration-observation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Duration-observation-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DurationConstraint" name="DurationConstraint">
<ownedComment xmi:type="uml:Comment" xmi:id="DurationConstraint-_ownedComment.0" body="A DurationConstraint is a Constraint that refers to a DurationInterval.">
<annotatedElement xmi:idref="DurationConstraint"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DurationConstraint-first_event_multiplicity" name="first_event_multiplicity">
<constrainedElement xmi:idref="DurationConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationConstraint-first_event_multiplicity-_ownedComment.0" body="The multiplicity of firstEvent must be 2 if the multiplicity of constrainedElement is 2. Otherwise the multiplicity of firstEvent is 0.">
<annotatedElement xmi:idref="DurationConstraint-first_event_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DurationConstraint-first_event_multiplicity-_specification">
<body>if (constrainedElement->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0) endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DurationConstraint-has_one_or_two_constrainedElements" name="has_one_or_two_constrainedElements">
<constrainedElement xmi:idref="DurationConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationConstraint-has_one_or_two_constrainedElements-_ownedComment.0" body="A DurationConstraint has either one or two constrainedElements.">
<annotatedElement xmi:idref="DurationConstraint-has_one_or_two_constrainedElements"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DurationConstraint-has_one_or_two_constrainedElements-_specification">
<body>constrainedElement->size() = 1 or constrainedElement->size()=2</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DurationConstraint-_generalization.0" general="IntervalConstraint"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationConstraint-firstEvent" name="firstEvent">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationConstraint-firstEvent-_ownedComment.0" body="The value of firstEvent[i] is related to constrainedElement[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters constrainedElement[i]. If firstEvent[i] is false, then the corresponding observation event is the last time instant the execution is within constrainedElement[i].">
<annotatedElement xmi:idref="DurationConstraint-firstEvent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DurationConstraint-firstEvent-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DurationConstraint-firstEvent-_upperValue" value="2"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationConstraint-specification" name="specification" aggregation="composite" type="DurationInterval" association="A_specification_durationConstraint">
<redefinedProperty xmi:idref="IntervalConstraint-specification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationConstraint-specification-_ownedComment.0" body="The DurationInterval constraining the duration.">
<annotatedElement xmi:idref="DurationConstraint-specification"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DurationInterval" name="DurationInterval">
<ownedComment xmi:type="uml:Comment" xmi:id="DurationInterval-_ownedComment.0" body="A DurationInterval defines the range between two Durations.">
<annotatedElement xmi:idref="DurationInterval"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DurationInterval-_generalization.0" general="Interval"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationInterval-max" name="max" type="Duration" association="A_max_durationInterval">
<redefinedProperty xmi:idref="Interval-max"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationInterval-max-_ownedComment.0" body="Refers to the Duration denoting the maximum value of the range.">
<annotatedElement xmi:idref="DurationInterval-max"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationInterval-min" name="min" type="Duration" association="A_min_durationInterval">
<redefinedProperty xmi:idref="Interval-min"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationInterval-min-_ownedComment.0" body="Refers to the Duration denoting the minimum value of the range.">
<annotatedElement xmi:idref="DurationInterval-min"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DurationObservation" name="DurationObservation">
<ownedComment xmi:type="uml:Comment" xmi:id="DurationObservation-_ownedComment.0" body="A DurationObservation is a reference to a duration during an execution. It points out the NamedElement(s) in the model to observe and whether the observations are when this NamedElement is entered or when it is exited.">
<annotatedElement xmi:idref="DurationObservation"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DurationObservation-first_event_multiplicity" name="first_event_multiplicity">
<constrainedElement xmi:idref="DurationObservation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationObservation-first_event_multiplicity-_ownedComment.0" body="The multiplicity of firstEvent must be 2 if the multiplicity of event is 2. Otherwise the multiplicity of firstEvent is 0.">
<annotatedElement xmi:idref="DurationObservation-first_event_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DurationObservation-first_event_multiplicity-_specification">
<body>if (event->size() = 2) then (firstEvent->size() = 2) else (firstEvent->size() = 0) endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DurationObservation-_generalization.0" general="Observation"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationObservation-event" name="event" isOrdered="true" type="NamedElement" association="A_event_durationObservation">
<ownedComment xmi:type="uml:Comment" xmi:id="DurationObservation-event-_ownedComment.0" body="The DurationObservation is determined as the duration between the entering or exiting of a single event Element during execution, or the entering/exiting of one event Element and the entering/exiting of a second.">
<annotatedElement xmi:idref="DurationObservation-event"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DurationObservation-event-_upperValue" value="2"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DurationObservation-firstEvent" name="firstEvent">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DurationObservation-firstEvent-_ownedComment.0" body="The value of firstEvent[i] is related to event[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters event[i]. If firstEvent[i] is false, then the corresponding observation event is the time instant the execution exits event[i].">
<annotatedElement xmi:idref="DurationObservation-firstEvent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DurationObservation-firstEvent-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DurationObservation-firstEvent-_upperValue" value="2"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Expression" name="Expression">
<ownedComment xmi:type="uml:Comment" xmi:id="Expression-_ownedComment.0" body="An Expression represents a node in an expression tree, which may be non-terminal or terminal. It defines a symbol, and has a possibly empty sequence of operands that are ValueSpecifications. It denotes a (possibly empty) set of values when evaluated in a context.">
<annotatedElement xmi:idref="Expression"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Expression-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Expression-operand" name="operand" isOrdered="true" aggregation="composite" type="ValueSpecification" association="A_operand_expression">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Expression-operand-_ownedComment.0" body="Specifies a sequence of operand ValueSpecifications.">
<annotatedElement xmi:idref="Expression-operand"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Expression-operand-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Expression-operand-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Expression-symbol" name="symbol">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Expression-symbol-_ownedComment.0" body="The symbol associated with this node in the expression tree.">
<annotatedElement xmi:idref="Expression-symbol"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Expression-symbol-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Interval" name="Interval">
<ownedComment xmi:type="uml:Comment" xmi:id="Interval-_ownedComment.0" body="An Interval defines the range between two ValueSpecifications.">
<annotatedElement xmi:idref="Interval"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Interval-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interval-max" name="max" type="ValueSpecification" association="A_max_interval">
<ownedComment xmi:type="uml:Comment" xmi:id="Interval-max-_ownedComment.0" body="Refers to the ValueSpecification denoting the maximum value of the range.">
<annotatedElement xmi:idref="Interval-max"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interval-min" name="min" type="ValueSpecification" association="A_min_interval">
<ownedComment xmi:type="uml:Comment" xmi:id="Interval-min-_ownedComment.0" body="Refers to the ValueSpecification denoting the minimum value of the range.">
<annotatedElement xmi:idref="Interval-min"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="IntervalConstraint" name="IntervalConstraint">
<ownedComment xmi:type="uml:Comment" xmi:id="IntervalConstraint-_ownedComment.0" body="An IntervalConstraint is a Constraint that is specified by an Interval.">
<annotatedElement xmi:idref="IntervalConstraint"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="IntervalConstraint-_generalization.0" general="Constraint"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="IntervalConstraint-specification" name="specification" aggregation="composite" type="Interval" association="A_specification_intervalConstraint">
<redefinedProperty xmi:idref="Constraint-specification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="IntervalConstraint-specification-_ownedComment.0" body="The Interval that specifies the condition of the IntervalConstraint.">
<annotatedElement xmi:idref="IntervalConstraint-specification"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralBoolean" name="LiteralBoolean">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralBoolean-_ownedComment.0" body="A LiteralBoolean is a specification of a Boolean value.">
<annotatedElement xmi:idref="LiteralBoolean"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralBoolean-_generalization.0" general="LiteralSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LiteralBoolean-value" name="value">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralBoolean-value-_ownedComment.0" body="The specified Boolean value.">
<annotatedElement xmi:idref="LiteralBoolean-value"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="LiteralBoolean-value-_defaultValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralBoolean-booleanValue" name="booleanValue" isQuery="true" bodyCondition="LiteralBoolean-booleanValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-booleanValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralBoolean-booleanValue-_ownedComment.0" body="The query booleanValue() gives the value.">
<annotatedElement xmi:idref="LiteralBoolean-booleanValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralBoolean-booleanValue-spec" name="spec">
<constrainedElement xmi:idref="LiteralBoolean-booleanValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralBoolean-booleanValue-spec-_specification">
<body>result = (value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralBoolean-booleanValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralBoolean-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralBoolean-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralBoolean-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralBoolean-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralBoolean-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralBoolean-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralBoolean-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralBoolean-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralInteger" name="LiteralInteger">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralInteger-_ownedComment.0" body="A LiteralInteger is a specification of an Integer value.">
<annotatedElement xmi:idref="LiteralInteger"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralInteger-_generalization.0" general="LiteralSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LiteralInteger-value" name="value">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralInteger-value-_ownedComment.0" body="The specified Integer value.">
<annotatedElement xmi:idref="LiteralInteger-value"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="LiteralInteger-value-_defaultValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralInteger-integerValue" name="integerValue" isQuery="true" bodyCondition="LiteralInteger-integerValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-integerValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralInteger-integerValue-_ownedComment.0" body="The query integerValue() gives the value.">
<annotatedElement xmi:idref="LiteralInteger-integerValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralInteger-integerValue-spec" name="spec">
<constrainedElement xmi:idref="LiteralInteger-integerValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralInteger-integerValue-spec-_specification">
<body>result = (value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralInteger-integerValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralInteger-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralInteger-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralInteger-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralInteger-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralInteger-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralInteger-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralInteger-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralInteger-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralNull" name="LiteralNull">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralNull-_ownedComment.0" body="A LiteralNull specifies the lack of a value.">
<annotatedElement xmi:idref="LiteralNull"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralNull-_generalization.0" general="LiteralSpecification"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralNull-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralNull-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralNull-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralNull-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralNull-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralNull-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralNull-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralNull-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralNull-isNull" name="isNull" isQuery="true" bodyCondition="LiteralNull-isNull-spec">
<redefinedOperation xmi:idref="ValueSpecification-isNull"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralNull-isNull-_ownedComment.0" body="The query isNull() returns true.">
<annotatedElement xmi:idref="LiteralNull-isNull"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralNull-isNull-spec" name="spec">
<constrainedElement xmi:idref="LiteralNull-isNull"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralNull-isNull-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralNull-isNull-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralReal" name="LiteralReal">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralReal-_ownedComment.0" body="A LiteralReal is a specification of a Real value.">
<annotatedElement xmi:idref="LiteralReal"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralReal-_generalization.0" general="LiteralSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LiteralReal-value" name="value">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Real"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralReal-value-_ownedComment.0" body="The specified Real value.">
<annotatedElement xmi:idref="LiteralReal-value"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralReal-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralReal-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralReal-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralReal-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralReal-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralReal-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralReal-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralReal-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralReal-realValue" name="realValue" isQuery="true" bodyCondition="LiteralReal-realValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-realValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralReal-realValue-_ownedComment.0" body="The query realValue() gives the value.">
<annotatedElement xmi:idref="LiteralReal-realValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralReal-realValue-spec" name="spec">
<constrainedElement xmi:idref="LiteralReal-realValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralReal-realValue-spec-_specification">
<body>result = (value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralReal-realValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Real"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralSpecification" name="LiteralSpecification" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralSpecification-_ownedComment.0" body="A LiteralSpecification identifies a literal constant being modeled.">
<annotatedElement xmi:idref="LiteralSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralSpecification-_generalization.0" general="ValueSpecification"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralString" name="LiteralString">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralString-_ownedComment.0" body="A LiteralString is a specification of a String value.">
<annotatedElement xmi:idref="LiteralString"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralString-_generalization.0" general="LiteralSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LiteralString-value" name="value">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralString-value-_ownedComment.0" body="The specified String value.">
<annotatedElement xmi:idref="LiteralString-value"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LiteralString-value-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralString-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralString-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralString-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralString-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralString-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralString-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralString-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralString-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralString-stringValue" name="stringValue" isQuery="true" bodyCondition="LiteralString-stringValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-stringValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralString-stringValue-_ownedComment.0" body="The query stringValue() gives the value.">
<annotatedElement xmi:idref="LiteralString-stringValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralString-stringValue-spec" name="spec">
<constrainedElement xmi:idref="LiteralString-stringValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralString-stringValue-spec-_specification">
<body>result = (value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralString-stringValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LiteralUnlimitedNatural" name="LiteralUnlimitedNatural">
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralUnlimitedNatural-_ownedComment.0" body="A LiteralUnlimitedNatural is a specification of an UnlimitedNatural number.">
<annotatedElement xmi:idref="LiteralUnlimitedNatural"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="LiteralUnlimitedNatural-_generalization.0" general="LiteralSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LiteralUnlimitedNatural-value" name="value">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralUnlimitedNatural-value-_ownedComment.0" body="The specified UnlimitedNatural value.">
<annotatedElement xmi:idref="LiteralUnlimitedNatural-value"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LiteralUnlimitedNatural-value-_defaultValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralUnlimitedNatural-isComputable" name="isComputable" isQuery="true" bodyCondition="LiteralUnlimitedNatural-isComputable-spec">
<redefinedOperation xmi:idref="ValueSpecification-isComputable"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralUnlimitedNatural-isComputable-_ownedComment.0" body="The query isComputable() is redefined to be true.">
<annotatedElement xmi:idref="LiteralUnlimitedNatural-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralUnlimitedNatural-isComputable-spec" name="spec">
<constrainedElement xmi:idref="LiteralUnlimitedNatural-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralUnlimitedNatural-isComputable-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralUnlimitedNatural-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LiteralUnlimitedNatural-unlimitedValue" name="unlimitedValue" isQuery="true" bodyCondition="LiteralUnlimitedNatural-unlimitedValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-unlimitedValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LiteralUnlimitedNatural-unlimitedValue-_ownedComment.0" body="The query unlimitedValue() gives the value.">
<annotatedElement xmi:idref="LiteralUnlimitedNatural-unlimitedValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LiteralUnlimitedNatural-unlimitedValue-spec" name="spec">
<constrainedElement xmi:idref="LiteralUnlimitedNatural-unlimitedValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LiteralUnlimitedNatural-unlimitedValue-spec-_specification">
<body>result = (value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LiteralUnlimitedNatural-unlimitedValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Observation" name="Observation" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Observation-_ownedComment.0" body="Observation specifies a value determined by observing an event or events that occur relative to other model Elements.">
<annotatedElement xmi:idref="Observation"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Observation-_generalization.0" general="PackageableElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OpaqueExpression" name="OpaqueExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-_ownedComment.0" body="An OpaqueExpression is a ValueSpecification that specifies the computation of a collection of values either in terms of a UML Behavior or based on a textual statement in a language other than UML">
<annotatedElement xmi:idref="OpaqueExpression"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-language_body_size" name="language_body_size">
<constrainedElement xmi:idref="OpaqueExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-language_body_size-_ownedComment.0" body="If the language attribute is not empty, then the size of the body and language arrays must be the same.">
<annotatedElement xmi:idref="OpaqueExpression-language_body_size"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-language_body_size-_specification">
<body>language->notEmpty() implies (_'body'->size() = language->size())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-one_return_result_parameter" name="one_return_result_parameter">
<constrainedElement xmi:idref="OpaqueExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-one_return_result_parameter-_ownedComment.0" body="The behavior must have exactly one return result parameter.">
<annotatedElement xmi:idref="OpaqueExpression-one_return_result_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-one_return_result_parameter-_specification">
<body>behavior <> null implies behavior.ownedParameter->select(direction=ParameterDirectionKind::return)->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-only_in_or_return_parameters" name="only_in_or_return_parameters">
<constrainedElement xmi:idref="OpaqueExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-only_in_or_return_parameters-_ownedComment.0" body="The behavior may only have non-stream in or return parameters.">
<annotatedElement xmi:idref="OpaqueExpression-only_in_or_return_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-only_in_or_return_parameters-_specification">
<body>behavior <> null implies behavior.ownedParameter->forAll(not isStream and (direction=ParameterDirectionKind::in or direction=ParameterDirectionKind::return))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="OpaqueExpression-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueExpression-behavior" name="behavior" type="Behavior" association="A_behavior_opaqueExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-behavior-_ownedComment.0" body="Specifies the behavior of the OpaqueExpression as a UML Behavior.">
<annotatedElement xmi:idref="OpaqueExpression-behavior"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueExpression-behavior-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueExpression-body" name="body" isOrdered="true" isUnique="false">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-body-_ownedComment.0" body="A textual definition of the behavior of the OpaqueExpression, possibly in multiple languages.">
<annotatedElement xmi:idref="OpaqueExpression-body"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueExpression-body-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueExpression-body-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueExpression-language" name="language" isOrdered="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-language-_ownedComment.0" body="Specifies the languages used to express the textual bodies of the OpaqueExpression. Languages are matched to body Strings by order. The interpretation of the body depends on the languages. If the languages are unspecified, they may be implicit from the expression body or the context.">
<annotatedElement xmi:idref="OpaqueExpression-language"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueExpression-language-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueExpression-language-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueExpression-result" name="result" isReadOnly="true" isDerived="true" type="Parameter" association="A_result_opaqueExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-result-_ownedComment.0" body="If an OpaqueExpression is specified using a UML Behavior, then this refers to the single required return Parameter of that Behavior. When the Behavior completes execution, the values on this Parameter give the result of evaluating the OpaqueExpression.">
<annotatedElement xmi:idref="OpaqueExpression-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueExpression-result-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="OpaqueExpression-isIntegral" name="isIntegral" isQuery="true" bodyCondition="OpaqueExpression-isIntegral-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-isIntegral-_ownedComment.0" body="The query isIntegral() tells whether an expression is intended to produce an Integer.">
<annotatedElement xmi:idref="OpaqueExpression-isIntegral"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-isIntegral-spec" name="spec">
<constrainedElement xmi:idref="OpaqueExpression-isIntegral"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-isIntegral-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="OpaqueExpression-isIntegral-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="OpaqueExpression-isNonNegative" name="isNonNegative" isQuery="true" bodyCondition="OpaqueExpression-isNonNegative-spec">
<precondition xmi:idref="OpaqueExpression-isNonNegative-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-isNonNegative-_ownedComment.0" body="The query isNonNegative() tells whether an integer expression has a non-negative value.">
<annotatedElement xmi:idref="OpaqueExpression-isNonNegative"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-isNonNegative-pre" name="pre">
<constrainedElement xmi:idref="OpaqueExpression-isNonNegative"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-isNonNegative-pre-_specification">
<body>self.isIntegral()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-isNonNegative-spec" name="spec">
<constrainedElement xmi:idref="OpaqueExpression-isNonNegative"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-isNonNegative-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="OpaqueExpression-isNonNegative-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="OpaqueExpression-isPositive" name="isPositive" isQuery="true" bodyCondition="OpaqueExpression-isPositive-spec">
<precondition xmi:idref="OpaqueExpression-isPositive-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-isPositive-_ownedComment.0" body="The query isPositive() tells whether an integer expression has a positive value.">
<annotatedElement xmi:idref="OpaqueExpression-isPositive"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-isPositive-spec" name="spec">
<constrainedElement xmi:idref="OpaqueExpression-isPositive"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-isPositive-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-isPositive-pre" name="pre">
<constrainedElement xmi:idref="OpaqueExpression-isPositive"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-isPositive-pre-_specification">
<body>self.isIntegral()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="OpaqueExpression-isPositive-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="OpaqueExpression-result.1" name="result" isQuery="true" bodyCondition="OpaqueExpression-result.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-result.1-_ownedComment.0" body="Derivation for OpaqueExpression::/result ">
<annotatedElement xmi:idref="OpaqueExpression-result.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-result.1-spec" name="spec">
<constrainedElement xmi:idref="OpaqueExpression-result.1"/>
<constrainedElement xmi:idref="OpaqueExpression-result"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-result.1-spec-_specification">
<body>result = (if behavior = null then null else behavior.ownedParameter->first() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="OpaqueExpression-result.1-result" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueExpression-result.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="OpaqueExpression-value" name="value" isQuery="true" bodyCondition="OpaqueExpression-value-spec">
<precondition xmi:idref="OpaqueExpression-value-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueExpression-value-_ownedComment.0" body="The query value() gives an integer value for an expression intended to produce one.">
<annotatedElement xmi:idref="OpaqueExpression-value"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-value-pre" name="pre">
<constrainedElement xmi:idref="OpaqueExpression-value"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-value-pre-_specification">
<body>self.isIntegral()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueExpression-value-spec" name="spec">
<constrainedElement xmi:idref="OpaqueExpression-value"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueExpression-value-spec-_specification">
<body>result = (0)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="OpaqueExpression-value-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StringExpression" name="StringExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-_ownedComment.0" body="A StringExpression is an Expression that specifies a String value that is derived by concatenating a sequence of operands with String values or a sequence of subExpressions, some of which might be template parameters.">
<annotatedElement xmi:idref="StringExpression"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StringExpression-operands" name="operands">
<constrainedElement xmi:idref="StringExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-operands-_ownedComment.0" body="All the operands of a StringExpression must be LiteralStrings">
<annotatedElement xmi:idref="StringExpression-operands"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StringExpression-operands-_specification">
<body>operand->forAll (oclIsKindOf (LiteralString))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StringExpression-subexpressions" name="subexpressions">
<constrainedElement xmi:idref="StringExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-subexpressions-_ownedComment.0" body="If a StringExpression has sub-expressions, it cannot have operands and vice versa (this avoids the problem of having to define a collating sequence between operands and subexpressions).">
<annotatedElement xmi:idref="StringExpression-subexpressions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StringExpression-subexpressions-_specification">
<body>if subExpression->notEmpty() then operand->isEmpty() else operand->notEmpty() endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StringExpression-_generalization.1" general="TemplateableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="StringExpression-_generalization.0" general="Expression"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StringExpression-owningExpression" name="owningExpression" type="StringExpression" association="A_subExpression_owningExpression">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-owningExpression-_ownedComment.0" body="The StringExpression of which this StringExpression is a subExpression.">
<annotatedElement xmi:idref="StringExpression-owningExpression"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StringExpression-owningExpression-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StringExpression-subExpression" name="subExpression" isOrdered="true" aggregation="composite" type="StringExpression" association="A_subExpression_owningExpression">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-subExpression-_ownedComment.0" body="The StringExpressions that constitute this StringExpression.">
<annotatedElement xmi:idref="StringExpression-subExpression"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StringExpression-subExpression-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StringExpression-subExpression-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="StringExpression-stringValue" name="stringValue" isQuery="true" bodyCondition="StringExpression-stringValue-spec">
<redefinedOperation xmi:idref="ValueSpecification-stringValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StringExpression-stringValue-_ownedComment.0" body="The query stringValue() returns the String resulting from concatenating, in order, all the component String values of all the operands or subExpressions that are part of the StringExpression.">
<annotatedElement xmi:idref="StringExpression-stringValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StringExpression-stringValue-spec" name="spec">
<constrainedElement xmi:idref="StringExpression-stringValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StringExpression-stringValue-spec-_specification">
<body>result = (if subExpression->notEmpty() then subExpression->iterate(se; stringValue: String = '' | stringValue.concat(se.stringValue())) else operand->iterate(op; stringValue: String = '' | stringValue.concat(op.stringValue())) endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StringExpression-stringValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TimeConstraint" name="TimeConstraint">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeConstraint-_ownedComment.0" body="A TimeConstraint is a Constraint that refers to a TimeInterval.">
<annotatedElement xmi:idref="TimeConstraint"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TimeConstraint-has_one_constrainedElement" name="has_one_constrainedElement">
<constrainedElement xmi:idref="TimeConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeConstraint-has_one_constrainedElement-_ownedComment.0" body="A TimeConstraint has one constrainedElement.">
<annotatedElement xmi:idref="TimeConstraint-has_one_constrainedElement"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TimeConstraint-has_one_constrainedElement-_specification">
<body>constrainedElement->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TimeConstraint-_generalization.0" general="IntervalConstraint"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeConstraint-firstEvent" name="firstEvent">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeConstraint-firstEvent-_ownedComment.0" body="The value of firstEvent is related to the constrainedElement. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters the constrainedElement. If firstEvent is false, then the corresponding observation event is the last time instant the execution is within the constrainedElement.">
<annotatedElement xmi:idref="TimeConstraint-firstEvent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TimeConstraint-firstEvent-_lowerValue"/>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="TimeConstraint-firstEvent-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeConstraint-specification" name="specification" aggregation="composite" type="TimeInterval" association="A_specification_timeConstraint">
<redefinedProperty xmi:idref="IntervalConstraint-specification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeConstraint-specification-_ownedComment.0" body="TheTimeInterval constraining the duration.">
<annotatedElement xmi:idref="TimeConstraint-specification"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TimeExpression" name="TimeExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeExpression-_ownedComment.0" body="A TimeExpression is a ValueSpecification that represents a time value.">
<annotatedElement xmi:idref="TimeExpression"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TimeExpression-no_expr_requires_observation" name="no_expr_requires_observation">
<constrainedElement xmi:idref="TimeExpression"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeExpression-no_expr_requires_observation-_ownedComment.0" body="If a TimeExpression has no expr, then it must have a single observation that is a TimeObservation.">
<annotatedElement xmi:idref="TimeExpression-no_expr_requires_observation"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TimeExpression-no_expr_requires_observation-_specification">
<body>expr = null implies (observation->size() = 1 and observation->forAll(oclIsKindOf(TimeObservation)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TimeExpression-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeExpression-expr" name="expr" aggregation="composite" type="ValueSpecification" association="A_expr_timeExpression">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeExpression-expr-_ownedComment.0" body="A ValueSpecification that evaluates to the value of the TimeExpression.">
<annotatedElement xmi:idref="TimeExpression-expr"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TimeExpression-expr-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeExpression-observation" name="observation" type="Observation" association="A_observation_timeExpression">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeExpression-observation-_ownedComment.0" body="Refers to the Observations that are involved in the computation of the TimeExpression value.">
<annotatedElement xmi:idref="TimeExpression-observation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TimeExpression-observation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TimeExpression-observation-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TimeInterval" name="TimeInterval">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeInterval-_ownedComment.0" body="A TimeInterval defines the range between two TimeExpressions.">
<annotatedElement xmi:idref="TimeInterval"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="TimeInterval-_generalization.0" general="Interval"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeInterval-max" name="max" type="TimeExpression" association="A_max_timeInterval">
<redefinedProperty xmi:idref="Interval-max"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeInterval-max-_ownedComment.0" body="Refers to the TimeExpression denoting the maximum value of the range.">
<annotatedElement xmi:idref="TimeInterval-max"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeInterval-min" name="min" type="TimeExpression" association="A_min_timeInterval">
<redefinedProperty xmi:idref="Interval-min"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeInterval-min-_ownedComment.0" body="Refers to the TimeExpression denoting the minimum value of the range.">
<annotatedElement xmi:idref="TimeInterval-min"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TimeObservation" name="TimeObservation">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeObservation-_ownedComment.0" body="A TimeObservation is a reference to a time instant during an execution. It points out the NamedElement in the model to observe and whether the observation is when this NamedElement is entered or when it is exited.">
<annotatedElement xmi:idref="TimeObservation"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="TimeObservation-_generalization.0" general="Observation"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeObservation-event" name="event" type="NamedElement" association="A_event_timeObservation">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeObservation-event-_ownedComment.0" body="The TimeObservation is determined by the entering or exiting of the event Element during execution.">
<annotatedElement xmi:idref="TimeObservation-event"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeObservation-firstEvent" name="firstEvent">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeObservation-firstEvent-_ownedComment.0" body="The value of firstEvent is related to the event. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters the event Element. If firstEvent is false, then the corresponding observation event is the time instant the execution exits the event Element.">
<annotatedElement xmi:idref="TimeObservation-firstEvent"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="TimeObservation-firstEvent-_defaultValue" value="true"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ValueSpecification" name="ValueSpecification" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-_ownedComment.0" body="A ValueSpecification is the specification of a (possibly empty) set of values. A ValueSpecification is a ParameterableElement that may be exposed as a formal TemplateParameter and provided as the actual parameter in the binding of a template.">
<annotatedElement xmi:idref="ValueSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ValueSpecification-_generalization.0" general="TypedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="ValueSpecification-_generalization.1" general="PackageableElement"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-booleanValue" name="booleanValue" isQuery="true" bodyCondition="ValueSpecification-booleanValue-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-booleanValue-_ownedComment.0" body="The query booleanValue() gives a single Boolean value when one can be computed.">
<annotatedElement xmi:idref="ValueSpecification-booleanValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-booleanValue-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-booleanValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-booleanValue-spec-_specification">
<body>result = (null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-booleanValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ValueSpecification-booleanValue-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-integerValue" name="integerValue" isQuery="true" bodyCondition="ValueSpecification-integerValue-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-integerValue-_ownedComment.0" body="The query integerValue() gives a single Integer value when one can be computed.">
<annotatedElement xmi:idref="ValueSpecification-integerValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-integerValue-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-integerValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-integerValue-spec-_specification">
<body>result = (null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-integerValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ValueSpecification-integerValue-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-isCompatibleWith" name="isCompatibleWith" isQuery="true" bodyCondition="ValueSpecification-isCompatibleWith-spec">
<redefinedOperation xmi:idref="ParameterableElement-isCompatibleWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-isCompatibleWith-_ownedComment.0" body="The query isCompatibleWith() determines if this ValueSpecification is compatible with the specified ParameterableElement. This ValueSpecification is compatible with ParameterableElement p if the kind of this ValueSpecification is the same as or a subtype of the kind of p. Further, if p is a TypedElement, then the type of this ValueSpecification must be conformant with the type of p.">
<annotatedElement xmi:idref="ValueSpecification-isCompatibleWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-isCompatibleWith-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-isCompatibleWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-isCompatibleWith-spec-_specification">
<body>result = (self.oclIsKindOf(p.oclType()) and (p.oclIsKindOf(TypedElement) implies self.type.conformsTo(p.oclAsType(TypedElement).type)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-isCompatibleWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-isCompatibleWith-p" name="p" type="ParameterableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-isComputable" name="isComputable" isQuery="true" bodyCondition="ValueSpecification-isComputable-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-isComputable-_ownedComment.0" body="The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all ValueSpecifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute at least the value of all LiteralSpecifications.">
<annotatedElement xmi:idref="ValueSpecification-isComputable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-isComputable-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-isComputable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-isComputable-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-isComputable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-isNull" name="isNull" isQuery="true" bodyCondition="ValueSpecification-isNull-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-isNull-_ownedComment.0" body="The query isNull() returns true when it can be computed that the value is null.">
<annotatedElement xmi:idref="ValueSpecification-isNull"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-isNull-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-isNull"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-isNull-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-isNull-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-realValue" name="realValue" isQuery="true" bodyCondition="ValueSpecification-realValue-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-realValue-_ownedComment.0" body="The query realValue() gives a single Real value when one can be computed.">
<annotatedElement xmi:idref="ValueSpecification-realValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-realValue-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-realValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-realValue-spec-_specification">
<body>result = (null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-realValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Real"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ValueSpecification-realValue-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-stringValue" name="stringValue" isQuery="true" bodyCondition="ValueSpecification-stringValue-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-stringValue-_ownedComment.0" body="The query stringValue() gives a single String value when one can be computed.">
<annotatedElement xmi:idref="ValueSpecification-stringValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-stringValue-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-stringValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-stringValue-spec-_specification">
<body>result = (null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-stringValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ValueSpecification-stringValue-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ValueSpecification-unlimitedValue" name="unlimitedValue" isQuery="true" bodyCondition="ValueSpecification-unlimitedValue-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecification-unlimitedValue-_ownedComment.0" body="The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.">
<annotatedElement xmi:idref="ValueSpecification-unlimitedValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecification-unlimitedValue-spec" name="spec">
<constrainedElement xmi:idref="ValueSpecification-unlimitedValue"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecification-unlimitedValue-spec-_specification">
<body>result = (null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ValueSpecification-unlimitedValue-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ValueSpecification-unlimitedValue-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_event_timeObservation" name="A_event_timeObservation">
<memberEnd xmi:idref="TimeObservation-event"/>
<memberEnd xmi:idref="A_event_timeObservation-timeObservation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_event_timeObservation-timeObservation" name="timeObservation" type="TimeObservation" association="A_event_timeObservation">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_event_timeObservation-timeObservation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_event_timeObservation-timeObservation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_max_timeInterval" name="A_max_timeInterval">
<memberEnd xmi:idref="TimeInterval-max"/>
<memberEnd xmi:idref="A_max_timeInterval-timeInterval"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_max_timeInterval-_generalization.0" general="A_max_interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_max_timeInterval-timeInterval" name="timeInterval" type="TimeInterval" association="A_max_timeInterval">
<redefinedProperty xmi:idref="A_max_interval-interval"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_max_timeInterval-timeInterval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_max_timeInterval-timeInterval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_min_timeInterval" name="A_min_timeInterval">
<memberEnd xmi:idref="TimeInterval-min"/>
<memberEnd xmi:idref="A_min_timeInterval-timeInterval"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_min_timeInterval-_generalization.0" general="A_min_interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_min_timeInterval-timeInterval" name="timeInterval" type="TimeInterval" association="A_min_timeInterval">
<redefinedProperty xmi:idref="A_min_interval-interval"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_min_timeInterval-timeInterval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_min_timeInterval-timeInterval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_expr_timeExpression" name="A_expr_timeExpression">
<memberEnd xmi:idref="TimeExpression-expr"/>
<memberEnd xmi:idref="A_expr_timeExpression-timeExpression"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_expr_timeExpression-timeExpression" name="timeExpression" type="TimeExpression" association="A_expr_timeExpression">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_expr_timeExpression-timeExpression-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_observation_timeExpression" name="A_observation_timeExpression">
<memberEnd xmi:idref="TimeExpression-observation"/>
<memberEnd xmi:idref="A_observation_timeExpression-timeExpression"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_observation_timeExpression-timeExpression" name="timeExpression" type="TimeExpression" association="A_observation_timeExpression">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_observation_timeExpression-timeExpression-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_specification_timeConstraint" name="A_specification_timeConstraint">
<memberEnd xmi:idref="TimeConstraint-specification"/>
<memberEnd xmi:idref="A_specification_timeConstraint-timeConstraint"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_specification_timeConstraint-_generalization.0" general="A_specification_intervalConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_specification_timeConstraint-timeConstraint" name="timeConstraint" type="TimeConstraint" association="A_specification_timeConstraint">
<redefinedProperty xmi:idref="A_specification_intervalConstraint-intervalConstraint"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_specification_timeConstraint-timeConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subExpression_owningExpression" name="A_subExpression_owningExpression">
<memberEnd xmi:idref="StringExpression-subExpression"/>
<memberEnd xmi:idref="StringExpression-owningExpression"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_opaqueExpression" name="A_result_opaqueExpression" isDerived="true">
<memberEnd xmi:idref="OpaqueExpression-result"/>
<memberEnd xmi:idref="A_result_opaqueExpression-opaqueExpression"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_opaqueExpression-opaqueExpression" name="opaqueExpression" type="OpaqueExpression" association="A_result_opaqueExpression">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_opaqueExpression-opaqueExpression-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_result_opaqueExpression-opaqueExpression-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_behavior_opaqueExpression" name="A_behavior_opaqueExpression">
<memberEnd xmi:idref="OpaqueExpression-behavior"/>
<memberEnd xmi:idref="A_behavior_opaqueExpression-opaqueExpression"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_behavior_opaqueExpression-opaqueExpression" name="opaqueExpression" type="OpaqueExpression" association="A_behavior_opaqueExpression">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_behavior_opaqueExpression-opaqueExpression-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_behavior_opaqueExpression-opaqueExpression-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_specification_intervalConstraint" name="A_specification_intervalConstraint">
<memberEnd xmi:idref="IntervalConstraint-specification"/>
<memberEnd xmi:idref="A_specification_intervalConstraint-intervalConstraint"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_specification_intervalConstraint-_generalization.0" general="A_specification_owningConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_specification_intervalConstraint-intervalConstraint" name="intervalConstraint" type="IntervalConstraint" association="A_specification_intervalConstraint">
<redefinedProperty xmi:idref="A_specification_owningConstraint-owningConstraint"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_specification_intervalConstraint-intervalConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_max_interval" name="A_max_interval">
<memberEnd xmi:idref="Interval-max"/>
<memberEnd xmi:idref="A_max_interval-interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_max_interval-interval" name="interval" type="Interval" association="A_max_interval">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_max_interval-interval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_max_interval-interval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_min_interval" name="A_min_interval">
<memberEnd xmi:idref="Interval-min"/>
<memberEnd xmi:idref="A_min_interval-interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_min_interval-interval" name="interval" type="Interval" association="A_min_interval">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_min_interval-interval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_min_interval-interval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_operand_expression" name="A_operand_expression">
<memberEnd xmi:idref="Expression-operand"/>
<memberEnd xmi:idref="A_operand_expression-expression"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_operand_expression-expression" name="expression" type="Expression" association="A_operand_expression">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_operand_expression-expression-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_event_durationObservation" name="A_event_durationObservation">
<memberEnd xmi:idref="DurationObservation-event"/>
<memberEnd xmi:idref="A_event_durationObservation-durationObservation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_event_durationObservation-durationObservation" name="durationObservation" type="DurationObservation" association="A_event_durationObservation">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_event_durationObservation-durationObservation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_event_durationObservation-durationObservation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_max_durationInterval" name="A_max_durationInterval">
<memberEnd xmi:idref="DurationInterval-max"/>
<memberEnd xmi:idref="A_max_durationInterval-durationInterval"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_max_durationInterval-_generalization.0" general="A_max_interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_max_durationInterval-durationInterval" name="durationInterval" type="DurationInterval" association="A_max_durationInterval">
<redefinedProperty xmi:idref="A_max_interval-interval"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_max_durationInterval-durationInterval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_max_durationInterval-durationInterval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_min_durationInterval" name="A_min_durationInterval">
<memberEnd xmi:idref="DurationInterval-min"/>
<memberEnd xmi:idref="A_min_durationInterval-durationInterval"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_min_durationInterval-_generalization.0" general="A_min_interval"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_min_durationInterval-durationInterval" name="durationInterval" type="DurationInterval" association="A_min_durationInterval">
<redefinedProperty xmi:idref="A_min_interval-interval"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_min_durationInterval-durationInterval-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_min_durationInterval-durationInterval-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_specification_durationConstraint" name="A_specification_durationConstraint">
<memberEnd xmi:idref="DurationConstraint-specification"/>
<memberEnd xmi:idref="A_specification_durationConstraint-durationConstraint"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_specification_durationConstraint-_generalization.0" general="A_specification_intervalConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_specification_durationConstraint-durationConstraint" name="durationConstraint" type="DurationConstraint" association="A_specification_durationConstraint">
<redefinedProperty xmi:idref="A_specification_intervalConstraint-intervalConstraint"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_specification_durationConstraint-durationConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_expr_duration" name="A_expr_duration">
<memberEnd xmi:idref="Duration-expr"/>
<memberEnd xmi:idref="A_expr_duration-duration"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_expr_duration-duration" name="duration" type="Duration" association="A_expr_duration">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_expr_duration-duration-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_observation_duration" name="A_observation_duration">
<memberEnd xmi:idref="Duration-observation"/>
<memberEnd xmi:idref="A_observation_duration-duration"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_observation_duration-duration" name="duration" type="Duration" association="A_observation_duration">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_observation_duration-duration-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="UseCases" name="UseCases">
<packageImport xmi:type="uml:PackageImport" xmi:id="UseCases-_packageImport.0" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="UseCases-_packageImport.1" importedPackage="CommonBehavior"/>
<packagedElement xmi:type="uml:Class" xmi:id="Actor" name="Actor">
<ownedComment xmi:type="uml:Comment" xmi:id="Actor-_ownedComment.0" body="An Actor specifies a role played by a user or any other system that interacts with the subject.">
<annotatedElement xmi:idref="Actor"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Actor-associations" name="associations">
<constrainedElement xmi:idref="Actor"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Actor-associations-_ownedComment.0" body="An Actor can only have Associations to UseCases, Components, and Classes. Furthermore these Associations must be binary.">
<annotatedElement xmi:idref="Actor-associations"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Actor-associations-_specification">
<body>Association.allInstances()->forAll( a | a.memberEnd->collect(type)->includes(self) implies ( a.memberEnd->size() = 2 and let actorEnd : Property = a.memberEnd->any(type = self) in actorEnd.opposite.class.oclIsKindOf(UseCase) or ( actorEnd.opposite.class.oclIsKindOf(Class) and not actorEnd.opposite.class.oclIsKindOf(Behavior)) ) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Actor-must_have_name" name="must_have_name">
<constrainedElement xmi:idref="Actor"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Actor-must_have_name-_ownedComment.0" body="An Actor must have a name.">
<annotatedElement xmi:idref="Actor-must_have_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Actor-must_have_name-_specification">
<body>name->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Actor-_generalization.0" general="BehavioredClassifier"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Extend" name="Extend">
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-_ownedComment.0" body="A relationship from an extending UseCase to an extended UseCase that specifies how and when the behavior defined in the extending UseCase can be inserted into the behavior defined in the extended UseCase.">
<annotatedElement xmi:idref="Extend"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extend-extension_points" name="extension_points">
<constrainedElement xmi:idref="Extend"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-extension_points-_ownedComment.0" body="The ExtensionPoints referenced by the Extend relationship must belong to the UseCase that is being extended.">
<annotatedElement xmi:idref="Extend-extension_points"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extend-extension_points-_specification">
<body>extensionLocation->forAll (xp | extendedCase.extensionPoint->includes(xp))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Extend-_generalization.0" general="NamedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Extend-_generalization.1" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extend-condition" name="condition" aggregation="composite" type="Constraint" association="A_condition_extend">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-condition-_ownedComment.0" body="References the condition that must hold when the first ExtensionPoint is reached for the extension to take place. If no constraint is associated with the Extend relationship, the extension is unconditional.">
<annotatedElement xmi:idref="Extend-condition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Extend-condition-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extend-extendedCase" name="extendedCase" type="UseCase" association="A_extendedCase_extend">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-extendedCase-_ownedComment.0" body="The UseCase that is being extended.">
<annotatedElement xmi:idref="Extend-extendedCase"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extend-extension" name="extension" type="UseCase" association="A_extend_extension">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-extension-_ownedComment.0" body="The UseCase that represents the extension and owns the Extend relationship.">
<annotatedElement xmi:idref="Extend-extension"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extend-extensionLocation" name="extensionLocation" isOrdered="true" type="ExtensionPoint" association="A_extensionLocation_extension">
<ownedComment xmi:type="uml:Comment" xmi:id="Extend-extensionLocation-_ownedComment.0" body="An ordered list of ExtensionPoints belonging to the extended UseCase, specifying where the respective behavioral fragments of the extending UseCase are to be inserted. The first fragment in the extending UseCase is associated with the first extension point in the list, the second fragment with the second point, and so on. Note that, in most practical cases, the extending UseCase has just a single behavior fragment, so that the list of ExtensionPoints is trivial.">
<annotatedElement xmi:idref="Extend-extensionLocation"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Extend-extensionLocation-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExtensionPoint" name="ExtensionPoint">
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionPoint-_ownedComment.0" body="An ExtensionPoint identifies a point in the behavior of a UseCase where that behavior can be extended by the behavior of some other (extending) UseCase, as specified by an Extend relationship.">
<annotatedElement xmi:idref="ExtensionPoint"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExtensionPoint-must_have_name" name="must_have_name">
<constrainedElement xmi:idref="ExtensionPoint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionPoint-must_have_name-_ownedComment.0" body="An ExtensionPoint must have a name.">
<annotatedElement xmi:idref="ExtensionPoint-must_have_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExtensionPoint-must_have_name-_specification">
<body>name->notEmpty ()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ExtensionPoint-_generalization.0" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExtensionPoint-useCase" name="useCase" type="UseCase" association="A_extensionPoint_useCase">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionPoint-useCase-_ownedComment.0" body="The UseCase that owns this ExtensionPoint.">
<annotatedElement xmi:idref="ExtensionPoint-useCase"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Include" name="Include">
<ownedComment xmi:type="uml:Comment" xmi:id="Include-_ownedComment.0" body="An Include relationship specifies that a UseCase contains the behavior defined in another UseCase.">
<annotatedElement xmi:idref="Include"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Include-_generalization.0" general="DirectedRelationship"/>
<generalization xmi:type="uml:Generalization" xmi:id="Include-_generalization.1" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Include-addition" name="addition" type="UseCase" association="A_addition_include">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Include-addition-_ownedComment.0" body="The UseCase that is to be included.">
<annotatedElement xmi:idref="Include-addition"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Include-includingCase" name="includingCase" type="UseCase" association="A_include_includingCase">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Include-includingCase-_ownedComment.0" body="The UseCase which includes the addition and owns the Include relationship.">
<annotatedElement xmi:idref="Include-includingCase"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="UseCase" name="UseCase">
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-_ownedComment.0" body="A UseCase specifies a set of actions performed by its subjects, which yields an observable result that is of value for one or more Actors or other stakeholders of each subject.">
<annotatedElement xmi:idref="UseCase"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="UseCase-binary_associations" name="binary_associations">
<constrainedElement xmi:idref="UseCase"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-binary_associations-_ownedComment.0" body="UseCases can only be involved in binary Associations.">
<annotatedElement xmi:idref="UseCase-binary_associations"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UseCase-binary_associations-_specification">
<body>Association.allInstances()->forAll(a | a.memberEnd.type->includes(self) implies a.memberEnd->size() = 2)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UseCase-no_association_to_use_case" name="no_association_to_use_case">
<constrainedElement xmi:idref="UseCase"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-no_association_to_use_case-_ownedComment.0" body="UseCases cannot have Associations to UseCases specifying the same subject.">
<annotatedElement xmi:idref="UseCase-no_association_to_use_case"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UseCase-no_association_to_use_case-_specification">
<body>Association.allInstances()->forAll(a | a.memberEnd.type->includes(self) implies ( let usecases: Set(UseCase) = a.memberEnd.type->select(oclIsKindOf(UseCase))->collect(oclAsType(UseCase))->asSet() in usecases->size() > 1 implies usecases->collect(subject)->size() > 1 ) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UseCase-cannot_include_self" name="cannot_include_self">
<constrainedElement xmi:idref="UseCase"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-cannot_include_self-_ownedComment.0" body="A UseCase cannot include UseCases that directly or indirectly include it.">
<annotatedElement xmi:idref="UseCase-cannot_include_self"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UseCase-cannot_include_self-_specification">
<body>not allIncludedUseCases()->includes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UseCase-must_have_name" name="must_have_name">
<constrainedElement xmi:idref="UseCase"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-must_have_name-_ownedComment.0" body="A UseCase must have a name.">
<annotatedElement xmi:idref="UseCase-must_have_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UseCase-must_have_name-_specification">
<body>name -> notEmpty ()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="UseCase-_generalization.0" general="BehavioredClassifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="UseCase-extend" name="extend" aggregation="composite" type="Extend" association="A_extend_extension">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-extend-_ownedComment.0" body="The Extend relationships owned by this UseCase.">
<annotatedElement xmi:idref="UseCase-extend"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="UseCase-extend-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UseCase-extend-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="UseCase-extensionPoint" name="extensionPoint" aggregation="composite" type="ExtensionPoint" association="A_extensionPoint_useCase">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-extensionPoint-_ownedComment.0" body="The ExtensionPoints owned by this UseCase.">
<annotatedElement xmi:idref="UseCase-extensionPoint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="UseCase-extensionPoint-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UseCase-extensionPoint-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="UseCase-include" name="include" aggregation="composite" type="Include" association="A_include_includingCase">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-include-_ownedComment.0" body="The Include relationships owned by this UseCase.">
<annotatedElement xmi:idref="UseCase-include"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="UseCase-include-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UseCase-include-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="UseCase-subject" name="subject" type="Classifier" association="A_subject_useCase">
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-subject-_ownedComment.0" body="The subjects to which this UseCase applies. Each subject or its parts realize all the UseCases that apply to it.">
<annotatedElement xmi:idref="UseCase-subject"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="UseCase-subject-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UseCase-subject-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="UseCase-allIncludedUseCases" name="allIncludedUseCases" isQuery="true" bodyCondition="UseCase-allIncludedUseCases-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="UseCase-allIncludedUseCases-_ownedComment.0" body="The query allIncludedUseCases() returns the transitive closure of all UseCases (directly or indirectly) included by this UseCase.">
<annotatedElement xmi:idref="UseCase-allIncludedUseCases"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="UseCase-allIncludedUseCases-spec" name="spec">
<constrainedElement xmi:idref="UseCase-allIncludedUseCases"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UseCase-allIncludedUseCases-spec-_specification">
<body>result = (self.include.addition->union(self.include.addition->collect(uc | uc.allIncludedUseCases()))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="UseCase-allIncludedUseCases-result" name="result" direction="return" type="UseCase">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="UseCase-allIncludedUseCases-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UseCase-allIncludedUseCases-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extensionPoint_useCase" name="A_extensionPoint_useCase">
<memberEnd xmi:idref="UseCase-extensionPoint"/>
<memberEnd xmi:idref="ExtensionPoint-useCase"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_include_includingCase" name="A_include_includingCase">
<memberEnd xmi:idref="UseCase-include"/>
<memberEnd xmi:idref="Include-includingCase"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subject_useCase" name="A_subject_useCase">
<memberEnd xmi:idref="UseCase-subject"/>
<memberEnd xmi:idref="Classifier-useCase"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extend_extension" name="A_extend_extension">
<memberEnd xmi:idref="UseCase-extend"/>
<memberEnd xmi:idref="Extend-extension"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_addition_include" name="A_addition_include">
<memberEnd xmi:idref="Include-addition"/>
<memberEnd xmi:idref="A_addition_include-include"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_addition_include-include" name="include" type="Include" association="A_addition_include">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_addition_include-include-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_addition_include-include-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extensionLocation_extension" name="A_extensionLocation_extension">
<memberEnd xmi:idref="Extend-extensionLocation"/>
<memberEnd xmi:idref="A_extensionLocation_extension-extension"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_extensionLocation_extension-extension" name="extension" type="Extend" association="A_extensionLocation_extension">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_extensionLocation_extension-extension-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_extensionLocation_extension-extension-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_condition_extend" name="A_condition_extend">
<memberEnd xmi:idref="Extend-condition"/>
<memberEnd xmi:idref="A_condition_extend-extend"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_condition_extend-extend" name="extend" type="Extend" association="A_condition_extend">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_condition_extend-extend-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extendedCase_extend" name="A_extendedCase_extend">
<memberEnd xmi:idref="Extend-extendedCase"/>
<memberEnd xmi:idref="A_extendedCase_extend-extend"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_extendedCase_extend-extend" name="extend" type="Extend" association="A_extendedCase_extend">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_extendedCase_extend-extend-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_extendedCase_extend-extend-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="StructuredClassifiers" name="StructuredClassifiers">
<packageImport xmi:type="uml:PackageImport" xmi:id="StructuredClassifiers-_packageImport.0" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="StructuredClassifiers-_packageImport.1" importedPackage="Packages"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="StructuredClassifiers-_packageImport.2" importedPackage="SimpleClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="StructuredClassifiers-_packageImport.3" importedPackage="CommonStructure"/>
<packagedElement xmi:type="uml:Class" xmi:id="Association" name="Association">
<ownedComment xmi:type="uml:Comment" xmi:id="Association-_ownedComment.0" body="A link is a tuple of values that refer to typed objects. An Association classifies a set of links, each of which is an instance of the Association. Each value in the link refers to an instance of the type of the corresponding end of the Association. ">
<annotatedElement xmi:idref="Association"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-specialized_end_number" name="specialized_end_number">
<constrainedElement xmi:idref="Association"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-specialized_end_number-_ownedComment.0" body="An Association specializing another Association has the same number of ends as the other Association.">
<annotatedElement xmi:idref="Association-specialized_end_number"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-specialized_end_number-_specification">
<body>parents()->select(oclIsKindOf(Association)).oclAsType(Association)->forAll(p | p.memberEnd->size() = self.memberEnd->size())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-specialized_end_types" name="specialized_end_types">
<constrainedElement xmi:idref="Association"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-specialized_end_types-_ownedComment.0" body="When an Association specializes another Association, every end of the specific Association corresponds to an end of the general Association, and the specific end reaches the same type or a subtype of the corresponding general end.">
<annotatedElement xmi:idref="Association-specialized_end_types"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-specialized_end_types-_specification">
<body>Sequence{1..memberEnd->size()}-> forAll(i | general->select(oclIsKindOf(Association)).oclAsType(Association)-> forAll(ga | self.memberEnd->at(i).type.conformsTo(ga.memberEnd->at(i).type)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-binary_associations" name="binary_associations">
<constrainedElement xmi:idref="Association"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-binary_associations-_ownedComment.0" body="Only binary Associations can be aggregations.">
<annotatedElement xmi:idref="Association-binary_associations"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-binary_associations-_specification">
<body>memberEnd->exists(aggregation <> AggregationKind::none) implies (memberEnd->size() = 2 and memberEnd->exists(aggregation = AggregationKind::none))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-association_ends" name="association_ends">
<constrainedElement xmi:idref="Association"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-association_ends-_ownedComment.0" body="Ends of Associations with more than two ends must be owned by the Association itself.">
<annotatedElement xmi:idref="Association-association_ends"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-association_ends-_specification">
<body>memberEnd->size() > 2 implies ownedEnd->includesAll(memberEnd)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-ends_must_be_typed" name="ends_must_be_typed">
<constrainedElement xmi:idref="Association"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-ends_must_be_typed-_specification">
<body>memberEnd->forAll(type->notEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Association-_generalization.0" general="Relationship"/>
<generalization xmi:type="uml:Generalization" xmi:id="Association-_generalization.1" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Association-endType" name="endType" isReadOnly="true" isDerived="true" type="Type" association="A_endType_association">
<subsettedProperty xmi:idref="Relationship-relatedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-endType-_ownedComment.0" body="The Classifiers that are used as types of the ends of the Association.">
<annotatedElement xmi:idref="Association-endType"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Association-endType-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Association-isDerived" name="isDerived">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-isDerived-_ownedComment.0" body="Specifies whether the Association is derived from other model elements such as other Associations.">
<annotatedElement xmi:idref="Association-isDerived"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Association-isDerived-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Association-memberEnd" name="memberEnd" isOrdered="true" type="Property" association="A_memberEnd_association">
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-memberEnd-_ownedComment.0" body="Each end represents participation of instances of the Classifier connected to the end in links of the Association.">
<annotatedElement xmi:idref="Association-memberEnd"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Association-memberEnd-_lowerValue" value="2"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Association-memberEnd-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Association-navigableOwnedEnd" name="navigableOwnedEnd" type="Property" association="A_navigableOwnedEnd_association">
<subsettedProperty xmi:idref="Association-ownedEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-navigableOwnedEnd-_ownedComment.0" body="The navigable ends that are owned by the Association itself.">
<annotatedElement xmi:idref="Association-navigableOwnedEnd"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Association-navigableOwnedEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Association-navigableOwnedEnd-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Association-ownedEnd" name="ownedEnd" isOrdered="true" aggregation="composite" type="Property" association="A_ownedEnd_owningAssociation">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Association-memberEnd"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Association-ownedEnd-_ownedComment.0" body="The ends that are owned by the Association itself.">
<annotatedElement xmi:idref="Association-ownedEnd"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Association-ownedEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Association-ownedEnd-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Association-endType.1" name="endType" isQuery="true" bodyCondition="Association-endType.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Association-endType.1-_ownedComment.0" body="endType is derived from the types of the member ends.">
<annotatedElement xmi:idref="Association-endType.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Association-endType.1-spec" name="spec">
<constrainedElement xmi:idref="Association-endType.1"/>
<constrainedElement xmi:idref="Association-endType"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Association-endType.1-spec-_specification">
<body>result = (memberEnd->collect(type)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Association-endType.1-result" name="result" direction="return" type="Type">
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Association-endType.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="AssociationClass" name="AssociationClass">
<ownedComment xmi:type="uml:Comment" xmi:id="AssociationClass-_ownedComment.0" body="A model element that has both Association and Class properties. An AssociationClass can be seen as an Association that also has Class properties, or as a Class that also has Association properties. It not only connects a set of Classifiers but also defines a set of Features that belong to the Association itself and not to any of the associated Classifiers.">
<annotatedElement xmi:idref="AssociationClass"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="AssociationClass-cannot_be_defined" name="cannot_be_defined">
<constrainedElement xmi:idref="AssociationClass"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AssociationClass-cannot_be_defined-_ownedComment.0" body="An AssociationClass cannot be defined between itself and something else.">
<annotatedElement xmi:idref="AssociationClass-cannot_be_defined"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AssociationClass-cannot_be_defined-_specification">
<body>self.endType()->excludes(self) and self.endType()->collect(et|et.oclAsType(Classifier).allParents())->flatten()->excludes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AssociationClass-disjoint_attributes_ends" name="disjoint_attributes_ends">
<constrainedElement xmi:idref="AssociationClass"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AssociationClass-disjoint_attributes_ends-_ownedComment.0" body="The owned attributes and owned ends of an AssociationClass are disjoint.">
<annotatedElement xmi:idref="AssociationClass-disjoint_attributes_ends"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AssociationClass-disjoint_attributes_ends-_specification">
<body>ownedAttribute->intersection(ownedEnd)->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="AssociationClass-_generalization.0" general="Class"/>
<generalization xmi:type="uml:Generalization" xmi:id="AssociationClass-_generalization.1" general="Association"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Class" name="Class">
<ownedComment xmi:type="uml:Comment" xmi:id="Class-_ownedComment.0" body="A Class classifies a set of objects and specifies the features that characterize the structure and behavior of those objects. A Class may have an internal structure and Ports. ">
<annotatedElement xmi:idref="Class"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Class-passive_class" name="passive_class">
<constrainedElement xmi:idref="Class"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-passive_class-_ownedComment.0" body="Only an active Class may own Receptions and have a classifierBehavior.">
<annotatedElement xmi:idref="Class-passive_class"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Class-passive_class-_specification">
<body>not isActive implies (ownedReception->isEmpty() and classifierBehavior = null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Class-_generalization.0" general="BehavioredClassifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="Class-_generalization.1" general="EncapsulatedClassifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-extension" name="extension" isReadOnly="true" isDerived="true" type="Extension" association="A_extension_metaclass">
<ownedComment xmi:type="uml:Comment" xmi:id="Class-extension-_ownedComment.0" body="This property is used when the Class is acting as a metaclass. It references the Extensions that specify additional properties of the metaclass. The property is derived from the Extensions whose memberEnds are typed by the Class.">
<annotatedElement xmi:idref="Class-extension"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-extension-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-extension-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-isAbstract" name="isAbstract">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<redefinedProperty xmi:idref="Classifier-isAbstract"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-isAbstract-_ownedComment.0" body="If true, the Class does not provide a complete declaration and cannot be instantiated. An abstract Class is typically used as a target of Associations or Generalizations.">
<annotatedElement xmi:idref="Class-isAbstract"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Class-isAbstract-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-isActive" name="isActive">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-isActive-_ownedComment.0" body="Determines whether an object specified by this Class is active or not. If true, then the owning Class is referred to as an active Class. If false, then such a Class is referred to as a passive Class.">
<annotatedElement xmi:idref="Class-isActive"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Class-isActive-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-nestedClassifier" name="nestedClassifier" isOrdered="true" aggregation="composite" type="Classifier" association="A_nestedClassifier_nestingClass">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-nestedClassifier-_ownedComment.0" body="The Classifiers owned by the Class that are not ownedBehaviors.">
<annotatedElement xmi:idref="Class-nestedClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-nestedClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-nestedClassifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_class">
<redefinedProperty xmi:idref="StructuredClassifier-ownedAttribute"/>
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-ownedAttribute-_ownedComment.0" body="The attributes (i.e., the Properties) owned by the Class.">
<annotatedElement xmi:idref="Class-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-ownedOperation" name="ownedOperation" isOrdered="true" aggregation="composite" type="Operation" association="A_ownedOperation_class">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-ownedOperation-_ownedComment.0" body="The Operations owned by the Class.">
<annotatedElement xmi:idref="Class-ownedOperation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-ownedOperation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-ownedOperation-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-ownedReception" name="ownedReception" aggregation="composite" type="Reception" association="A_ownedReception_class">
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-ownedReception-_ownedComment.0" body="The Receptions owned by the Class.">
<annotatedElement xmi:idref="Class-ownedReception"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-ownedReception-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-ownedReception-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Class-superClass" name="superClass" isDerived="true" type="Class" association="A_superClass_class">
<redefinedProperty xmi:idref="Classifier-general"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Class-superClass-_ownedComment.0" body="The superclasses of a Class, derived from its Generalizations.">
<annotatedElement xmi:idref="Class-superClass"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-superClass-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-superClass-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Class-extension.1" name="extension" isQuery="true" bodyCondition="Class-extension.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Class-extension.1-_ownedComment.0" body="Derivation for Class::/extension : Extension">
<annotatedElement xmi:idref="Class-extension.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Class-extension.1-spec" name="spec">
<constrainedElement xmi:idref="Class-extension.1"/>
<constrainedElement xmi:idref="Class-extension"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Class-extension.1-spec-_specification">
<body>result = (Extension.allInstances()->select(ext | let endTypes : Sequence(Classifier) = ext.memberEnd->collect(type.oclAsType(Classifier)) in endTypes->includes(self) or endTypes.allParents()->includes(self) ))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Class-extension.1-result" name="result" direction="return" type="Extension">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-extension.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-extension.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Class-superClass.1" name="superClass" isQuery="true" bodyCondition="Class-superClass.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Class-superClass.1-_ownedComment.0" body="Derivation for Class::/superClass : Class">
<annotatedElement xmi:idref="Class-superClass.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Class-superClass.1-spec" name="spec">
<constrainedElement xmi:idref="Class-superClass.1"/>
<constrainedElement xmi:idref="Class-superClass"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Class-superClass.1-spec-_specification">
<body>result = (self.general()->select(oclIsKindOf(Class))->collect(oclAsType(Class))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Class-superClass.1-result" name="result" direction="return" type="Class">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Class-superClass.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Class-superClass.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Collaboration" name="Collaboration">
<ownedComment xmi:type="uml:Comment" xmi:id="Collaboration-_ownedComment.0" body="A Collaboration describes a structure of collaborating elements (roles), each performing a specialized function, which collectively accomplish some desired functionality. ">
<annotatedElement xmi:idref="Collaboration"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Collaboration-_generalization.1" general="StructuredClassifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="Collaboration-_generalization.0" general="BehavioredClassifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Collaboration-collaborationRole" name="collaborationRole" type="ConnectableElement" association="A_collaborationRole_collaboration">
<subsettedProperty xmi:idref="StructuredClassifier-role"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Collaboration-collaborationRole-_ownedComment.0" body="Represents the participants in the Collaboration.">
<annotatedElement xmi:idref="Collaboration-collaborationRole"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Collaboration-collaborationRole-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Collaboration-collaborationRole-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CollaborationUse" name="CollaborationUse">
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-_ownedComment.0" body="A CollaborationUse is used to specify the application of a pattern specified by a Collaboration to a specific situation.">
<annotatedElement xmi:idref="CollaborationUse"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CollaborationUse-client_elements" name="client_elements">
<constrainedElement xmi:idref="CollaborationUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-client_elements-_ownedComment.0" body="All the client elements of a roleBinding are in one Classifier and all supplier elements of a roleBinding are in one Collaboration.">
<annotatedElement xmi:idref="CollaborationUse-client_elements"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CollaborationUse-client_elements-_specification">
<body>roleBinding->collect(client)->forAll(ne1, ne2 | ne1.oclIsKindOf(ConnectableElement) and ne2.oclIsKindOf(ConnectableElement) and let ce1 : ConnectableElement = ne1.oclAsType(ConnectableElement), ce2 : ConnectableElement = ne2.oclAsType(ConnectableElement) in ce1.structuredClassifier = ce2.structuredClassifier) and roleBinding->collect(supplier)->forAll(ne1, ne2 | ne1.oclIsKindOf(ConnectableElement) and ne2.oclIsKindOf(ConnectableElement) and let ce1 : ConnectableElement = ne1.oclAsType(ConnectableElement), ce2 : ConnectableElement = ne2.oclAsType(ConnectableElement) in ce1.collaboration = ce2.collaboration)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CollaborationUse-every_role" name="every_role">
<constrainedElement xmi:idref="CollaborationUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-every_role-_ownedComment.0" body="Every collaborationRole in the Collaboration is bound within the CollaborationUse.">
<annotatedElement xmi:idref="CollaborationUse-every_role"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CollaborationUse-every_role-_specification">
<body>type.collaborationRole->forAll(role | roleBinding->exists(rb | rb.supplier->includes(role)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CollaborationUse-connectors" name="connectors">
<constrainedElement xmi:idref="CollaborationUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-connectors-_ownedComment.0" body="Connectors in a Collaboration typing a CollaborationUse must have corresponding Connectors between elements bound in the context Classifier, and these corresponding Connectors must have the same or more general type than the Collaboration Connectors.">
<annotatedElement xmi:idref="CollaborationUse-connectors"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CollaborationUse-connectors-_specification">
<body>type.ownedConnector->forAll(connector | let rolesConnectedInCollab : Set(ConnectableElement) = connector.end.role->asSet(), relevantBindings : Set(Dependency) = roleBinding->select(rb | rb.supplier->intersection(rolesConnectedInCollab)->notEmpty()), boundRoles : Set(ConnectableElement) = relevantBindings->collect(client.oclAsType(ConnectableElement))->asSet(), contextClassifier : StructuredClassifier = boundRoles->any(true).structuredClassifier->any(true) in contextClassifier.ownedConnector->exists( correspondingConnector | correspondingConnector.end.role->forAll( role | boundRoles->includes(role) ) and (connector.type->notEmpty() and correspondingConnector.type->notEmpty()) implies connector.type->forAll(conformsTo(correspondingConnector.type)) ) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CollaborationUse-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CollaborationUse-roleBinding" name="roleBinding" aggregation="composite" type="Dependency" association="A_roleBinding_collaborationUse">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-roleBinding-_ownedComment.0" body="A mapping between features of the Collaboration and features of the owning Classifier. This mapping indicates which ConnectableElement of the Classifier plays which role(s) in the Collaboration. A ConnectableElement may be bound to multiple roles in the same CollaborationUse (that is, it may play multiple roles).">
<annotatedElement xmi:idref="CollaborationUse-roleBinding"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CollaborationUse-roleBinding-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CollaborationUse-roleBinding-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CollaborationUse-type" name="type" type="Collaboration" association="A_type_collaborationUse">
<ownedComment xmi:type="uml:Comment" xmi:id="CollaborationUse-type-_ownedComment.0" body="The Collaboration which is used in this CollaborationUse. The Collaboration defines the cooperation between its roles which are mapped to ConnectableElements relating to the Classifier owning the CollaborationUse.">
<annotatedElement xmi:idref="CollaborationUse-type"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Component" name="Component">
<ownedComment xmi:type="uml:Comment" xmi:id="Component-_ownedComment.0" body="A Component represents a modular part of a system that encapsulates its contents and whose manifestation is replaceable within its environment. ">
<annotatedElement xmi:idref="Component"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Component-no_nested_classifiers" name="no_nested_classifiers">
<constrainedElement xmi:idref="Component"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Component-no_nested_classifiers-_ownedComment.0" body="A Component cannot nest Classifiers.">
<annotatedElement xmi:idref="Component-no_nested_classifiers"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Component-no_nested_classifiers-_specification">
<body>nestedClassifier->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Component-no_packaged_elements" name="no_packaged_elements">
<constrainedElement xmi:idref="Component"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Component-no_packaged_elements-_ownedComment.0" body="A Component nested in a Class cannot have any packaged elements.">
<annotatedElement xmi:idref="Component-no_packaged_elements"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Component-no_packaged_elements-_specification">
<body>nestingClass <> null implies packagedElement->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Component-_generalization.0" general="Class"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Component-isIndirectlyInstantiated" name="isIndirectlyInstantiated">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Component-isIndirectlyInstantiated-_ownedComment.0" body="If true, the Component is defined at design-time, but at run-time (or execution-time) an object specified by the Component does not exist, that is, the Component is instantiated indirectly, through the instantiation of its realizing Classifiers or parts.">
<annotatedElement xmi:idref="Component-isIndirectlyInstantiated"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Component-isIndirectlyInstantiated-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Component-packagedElement" name="packagedElement" aggregation="composite" type="PackageableElement" association="A_packagedElement_component">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Component-packagedElement-_ownedComment.0" body="The set of PackageableElements that a Component owns. In the namespace of a Component, all model elements that are involved in or related to its definition may be owned or imported explicitly. These may include e.g., Classes, Interfaces, Components, Packages, UseCases, Dependencies (e.g., mappings), and Artifacts.">
<annotatedElement xmi:idref="Component-packagedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-packagedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-packagedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Component-provided" name="provided" isReadOnly="true" isDerived="true" type="Interface" association="A_provided_component">
<ownedComment xmi:type="uml:Comment" xmi:id="Component-provided-_ownedComment.0" body="The Interfaces that the Component exposes to its environment. These Interfaces may be Realized by the Component or any of its realizingClassifiers, or they may be the Interfaces that are provided by its public Ports.">
<annotatedElement xmi:idref="Component-provided"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-provided-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-provided-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Component-realization" name="realization" aggregation="composite" type="ComponentRealization" association="A_realization_abstraction_component">
<subsettedProperty xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Component-realization-_ownedComment.0" body="The set of Realizations owned by the Component. Realizations reference the Classifiers of which the Component is an abstraction; i.e., that realize its behavior.">
<annotatedElement xmi:idref="Component-realization"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-realization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-realization-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Component-required" name="required" isReadOnly="true" isDerived="true" type="Interface" association="A_required_component">
<ownedComment xmi:type="uml:Comment" xmi:id="Component-required-_ownedComment.0" body="The Interfaces that the Component requires from other Components in its environment in order to be able to offer its full set of provided functionality. These Interfaces may be used by the Component or any of its realizingClassifiers, or they may be the Interfaces that are required by its public Ports.">
<annotatedElement xmi:idref="Component-required"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-required-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-required-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Component-provided.1" name="provided" isQuery="true" bodyCondition="Component-provided.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Component-provided.1-_ownedComment.0" body="Derivation for Component::/provided">
<annotatedElement xmi:idref="Component-provided.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Component-provided.1-spec" name="spec">
<constrainedElement xmi:idref="Component-provided.1"/>
<constrainedElement xmi:idref="Component-provided"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Component-provided.1-spec-_specification">
<body>result = (let ris : Set(Interface) = allRealizedInterfaces(), realizingClassifiers : Set(Classifier) = self.realization.realizingClassifier->union(self.allParents()->collect(realization.realizingClassifier))->asSet(), allRealizingClassifiers : Set(Classifier) = realizingClassifiers->union(realizingClassifiers.allParents())->asSet(), realizingClassifierInterfaces : Set(Interface) = allRealizingClassifiers->iterate(c; rci : Set(Interface) = Set{} | rci->union(c.allRealizedInterfaces())), ports : Set(Port) = self.ownedPort->union(allParents()->collect(ownedPort))->asSet(), providedByPorts : Set(Interface) = ports.provided->asSet() in ris->union(realizingClassifierInterfaces) ->union(providedByPorts)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Component-provided.1-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-provided.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-provided.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Component-required.1" name="required" isQuery="true" bodyCondition="Component-required.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Component-required.1-_ownedComment.0" body="Derivation for Component::/required">
<annotatedElement xmi:idref="Component-required.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Component-required.1-spec" name="spec">
<constrainedElement xmi:idref="Component-required.1"/>
<constrainedElement xmi:idref="Component-required"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Component-required.1-spec-_specification">
<body>result = (let uis : Set(Interface) = allUsedInterfaces(), realizingClassifiers : Set(Classifier) = self.realization.realizingClassifier->union(self.allParents()->collect(realization.realizingClassifier))->asSet(), allRealizingClassifiers : Set(Classifier) = realizingClassifiers->union(realizingClassifiers.allParents())->asSet(), realizingClassifierInterfaces : Set(Interface) = allRealizingClassifiers->iterate(c; rci : Set(Interface) = Set{} | rci->union(c.allUsedInterfaces())), ports : Set(Port) = self.ownedPort->union(allParents()->collect(ownedPort))->asSet(), usedByPorts : Set(Interface) = ports.required->asSet() in uis->union(realizingClassifierInterfaces)->union(usedByPorts)->asSet() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Component-required.1-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Component-required.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Component-required.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ComponentRealization" name="ComponentRealization">
<ownedComment xmi:type="uml:Comment" xmi:id="ComponentRealization-_ownedComment.0" body="Realization is specialized to (optionally) define the Classifiers that realize the contract offered by a Component in terms of its provided and required Interfaces. The Component forms an abstraction from these various Classifiers.">
<annotatedElement xmi:idref="ComponentRealization"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ComponentRealization-_generalization.0" general="Realization"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ComponentRealization-abstraction" name="abstraction" type="Component" association="A_realization_abstraction_component">
<subsettedProperty xmi:idref="Dependency-supplier"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ComponentRealization-abstraction-_ownedComment.0" body="The Component that owns this ComponentRealization and which is implemented by its realizing Classifiers.">
<annotatedElement xmi:idref="ComponentRealization-abstraction"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ComponentRealization-abstraction-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ComponentRealization-realizingClassifier" name="realizingClassifier" type="Classifier" association="A_realizingClassifier_componentRealization">
<subsettedProperty xmi:idref="Dependency-client"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ComponentRealization-realizingClassifier-_ownedComment.0" body="The Classifiers that are involved in the implementation of the Component that owns this Realization.">
<annotatedElement xmi:idref="ComponentRealization-realizingClassifier"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ComponentRealization-realizingClassifier-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ConnectableElement" name="ConnectableElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElement-_ownedComment.0" body="ConnectableElement is an abstract metaclass representing a set of instances that play roles of a StructuredClassifier. ConnectableElements may be joined by attached Connectors and specify configurations of linked instances to be created within an instance of the containing StructuredClassifier.">
<annotatedElement xmi:idref="ConnectableElement"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ConnectableElement-_generalization.1" general="TypedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="ConnectableElement-_generalization.0" general="ParameterableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectableElement-end" name="end" isReadOnly="true" isDerived="true" type="ConnectorEnd" association="A_end_role">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElement-end-_ownedComment.0" body="A set of ConnectorEnds that attach to this ConnectableElement.">
<annotatedElement xmi:idref="ConnectableElement-end"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectableElement-end-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConnectableElement-end-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectableElement-templateParameter" name="templateParameter" type="ConnectableElementTemplateParameter" association="A_connectableElement_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="ParameterableElement-templateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElement-templateParameter-_ownedComment.0" body="The ConnectableElementTemplateParameter for this ConnectableElement parameter.">
<annotatedElement xmi:idref="ConnectableElement-templateParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectableElement-templateParameter-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ConnectableElement-end.1" name="end" isQuery="true" bodyCondition="ConnectableElement-end.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElement-end.1-_ownedComment.0" body="Derivation for ConnectableElement::/end : ConnectorEnd">
<annotatedElement xmi:idref="ConnectableElement-end.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectableElement-end.1-spec" name="spec">
<constrainedElement xmi:idref="ConnectableElement-end.1"/>
<constrainedElement xmi:idref="ConnectableElement-end"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectableElement-end.1-spec-_specification">
<body>result = (ConnectorEnd.allInstances()->select(role = self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ConnectableElement-end.1-result" name="result" direction="return" type="ConnectorEnd">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectableElement-end.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConnectableElement-end.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ConnectableElementTemplateParameter" name="ConnectableElementTemplateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElementTemplateParameter-_ownedComment.0" body="A ConnectableElementTemplateParameter exposes a ConnectableElement as a formal parameter for a template.">
<annotatedElement xmi:idref="ConnectableElementTemplateParameter"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ConnectableElementTemplateParameter-_generalization.0" general="TemplateParameter"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectableElementTemplateParameter-parameteredElement" name="parameteredElement" type="ConnectableElement" association="A_connectableElement_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="TemplateParameter-parameteredElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectableElementTemplateParameter-parameteredElement-_ownedComment.0" body="The ConnectableElement for this ConnectableElementTemplateParameter.">
<annotatedElement xmi:idref="ConnectableElementTemplateParameter-parameteredElement"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Connector" name="Connector">
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-_ownedComment.0" body="A Connector specifies links that enables communication between two or more instances. In contrast to Associations, which specify links between any instance of the associated Classifiers, Connectors specify links between instances playing the connected parts only.">
<annotatedElement xmi:idref="Connector"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Connector-types" name="types">
<constrainedElement xmi:idref="Connector"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-types-_ownedComment.0" body="The types of the ConnectableElements that the ends of a Connector are attached to must conform to the types of the ends of the Association that types the Connector, if any.">
<annotatedElement xmi:idref="Connector-types"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Connector-types-_specification">
<body>type<>null implies let noOfEnds : Integer = end->size() in (type.memberEnd->size() = noOfEnds) and Sequence{1..noOfEnds}->forAll(i | end->at(i).role.type.conformsTo(type.memberEnd->at(i).type))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Connector-roles" name="roles">
<constrainedElement xmi:idref="Connector"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-roles-_ownedComment.0" body="The ConnectableElements attached as roles to each ConnectorEnd owned by a Connector must be owned or inherited roles of the Classifier that owned the Connector, or they must be Ports of such roles.">
<annotatedElement xmi:idref="Connector-roles"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Connector-roles-_specification">
<body>structuredClassifier <> null and end->forAll( e | structuredClassifier.allRoles()->includes(e.role) or e.role.oclIsKindOf(Port) and structuredClassifier.allRoles()->includes(e.partWithPort))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Connector-_generalization.0" general="Feature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Connector-contract" name="contract" type="Behavior" association="A_contract_connector">
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-contract-_ownedComment.0" body="The set of Behaviors that specify the valid interaction patterns across the Connector.">
<annotatedElement xmi:idref="Connector-contract"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Connector-contract-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Connector-contract-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Connector-end" name="end" isOrdered="true" aggregation="composite" type="ConnectorEnd" association="A_end_connector">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-end-_ownedComment.0" body="A Connector has at least two ConnectorEnds, each representing the participation of instances of the Classifiers typing the ConnectableElements attached to the end. The set of ConnectorEnds is ordered.">
<annotatedElement xmi:idref="Connector-end"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Connector-end-_lowerValue" value="2"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Connector-end-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Connector-kind" name="kind" isReadOnly="true" isDerived="true" type="ConnectorKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-kind-_ownedComment.0" body="Indicates the kind of Connector. This is derived: a Connector with one or more ends connected to a Port which is not on a Part and which is not a behavior port is a delegation; otherwise it is an assembly.">
<annotatedElement xmi:idref="Connector-kind"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Connector-redefinedConnector" name="redefinedConnector" type="Connector" association="A_redefinedConnector_connector">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-redefinedConnector-_ownedComment.0" body="A Connector may be redefined when its containing Classifier is specialized. The redefining Connector may have a type that specializes the type of the redefined Connector. The types of the ConnectorEnds of the redefining Connector may specialize the types of the ConnectorEnds of the redefined Connector. The properties of the ConnectorEnds of the redefining Connector may be replaced.">
<annotatedElement xmi:idref="Connector-redefinedConnector"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Connector-redefinedConnector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Connector-redefinedConnector-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Connector-type" name="type" type="Association" association="A_type_connector">
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-type-_ownedComment.0" body="An optional Association that classifies links corresponding to this Connector.">
<annotatedElement xmi:idref="Connector-type"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Connector-type-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Connector-kind.1" name="kind" isQuery="true" bodyCondition="Connector-kind.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Connector-kind.1-_ownedComment.0" body="Derivation for Connector::/kind : ConnectorKind">
<annotatedElement xmi:idref="Connector-kind.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Connector-kind.1-spec" name="spec">
<constrainedElement xmi:idref="Connector-kind.1"/>
<constrainedElement xmi:idref="Connector-kind"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Connector-kind.1-spec-_specification">
<body>result = (if end->exists( role.oclIsKindOf(Port) and partWithPort->isEmpty() and not role.oclAsType(Port).isBehavior) then ConnectorKind::delegation else ConnectorKind::assembly endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Connector-kind.1-result" name="result" direction="return" type="ConnectorKind"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ConnectorEnd" name="ConnectorEnd">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-_ownedComment.0" body="A ConnectorEnd is an endpoint of a Connector, which attaches the Connector to a ConnectableElement.">
<annotatedElement xmi:idref="ConnectorEnd"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectorEnd-role_and_part_with_port" name="role_and_part_with_port">
<constrainedElement xmi:idref="ConnectorEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-role_and_part_with_port-_ownedComment.0" body="If a ConnectorEnd references a partWithPort, then the role must be a Port that is defined or inherited by the type of the partWithPort.">
<annotatedElement xmi:idref="ConnectorEnd-role_and_part_with_port"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectorEnd-role_and_part_with_port-_specification">
<body>partWithPort->notEmpty() implies (role.oclIsKindOf(Port) and partWithPort.type.oclAsType(Namespace).member->includes(role))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectorEnd-part_with_port_empty" name="part_with_port_empty">
<constrainedElement xmi:idref="ConnectorEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-part_with_port_empty-_ownedComment.0" body="If a ConnectorEnd is attached to a Port of the containing Classifier, partWithPort will be empty.">
<annotatedElement xmi:idref="ConnectorEnd-part_with_port_empty"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectorEnd-part_with_port_empty-_specification">
<body>(role.oclIsKindOf(Port) and role.owner = connector.owner) implies partWithPort->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectorEnd-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ConnectorEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-multiplicity-_ownedComment.0" body="The multiplicity of the ConnectorEnd may not be more general than the multiplicity of the corresponding end of the Association typing the owning Connector, if any.">
<annotatedElement xmi:idref="ConnectorEnd-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectorEnd-multiplicity-_specification">
<body>self.compatibleWith(definingEnd)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectorEnd-self_part_with_port" name="self_part_with_port">
<constrainedElement xmi:idref="ConnectorEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-self_part_with_port-_ownedComment.0" body="The Property held in self.partWithPort must not be a Port.">
<annotatedElement xmi:idref="ConnectorEnd-self_part_with_port"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectorEnd-self_part_with_port-_specification">
<body>partWithPort->notEmpty() implies not partWithPort.oclIsKindOf(Port)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ConnectorEnd-_generalization.0" general="MultiplicityElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectorEnd-definingEnd" name="definingEnd" isReadOnly="true" isDerived="true" type="Property" association="A_definingEnd_connectorEnd">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-definingEnd-_ownedComment.0" body="A derived property referencing the corresponding end on the Association which types the Connector owing this ConnectorEnd, if any. It is derived by selecting the end at the same place in the ordering of Association ends as this ConnectorEnd.">
<annotatedElement xmi:idref="ConnectorEnd-definingEnd"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectorEnd-definingEnd-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectorEnd-partWithPort" name="partWithPort" type="Property" association="A_partWithPort_connectorEnd">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-partWithPort-_ownedComment.0" body="Indicates the role of the internal structure of a Classifier with the Port to which the ConnectorEnd is attached.">
<annotatedElement xmi:idref="ConnectorEnd-partWithPort"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectorEnd-partWithPort-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectorEnd-role" name="role" type="ConnectableElement" association="A_end_role">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-role-_ownedComment.0" body="The ConnectableElement attached at this ConnectorEnd. When an instance of the containing Classifier is created, a link may (depending on the multiplicities) be created to an instance of the Classifier that types this ConnectableElement.">
<annotatedElement xmi:idref="ConnectorEnd-role"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ConnectorEnd-definingEnd.1" name="definingEnd" isQuery="true" bodyCondition="ConnectorEnd-definingEnd.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorEnd-definingEnd.1-_ownedComment.0" body="Derivation for ConnectorEnd::/definingEnd : Property">
<annotatedElement xmi:idref="ConnectorEnd-definingEnd.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectorEnd-definingEnd.1-spec" name="spec">
<constrainedElement xmi:idref="ConnectorEnd-definingEnd.1"/>
<constrainedElement xmi:idref="ConnectorEnd-definingEnd"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectorEnd-definingEnd.1-spec-_specification">
<body>result = (if connector.type = null then null else let index : Integer = connector.end->indexOf(self) in connector.type.memberEnd->at(index) endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ConnectorEnd-definingEnd.1-result" name="result" direction="return" type="Property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectorEnd-definingEnd.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="EncapsulatedClassifier" name="EncapsulatedClassifier" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="EncapsulatedClassifier-_ownedComment.0" body="An EncapsulatedClassifier may own Ports to specify typed interaction points.">
<annotatedElement xmi:idref="EncapsulatedClassifier"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="EncapsulatedClassifier-_generalization.0" general="StructuredClassifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="EncapsulatedClassifier-ownedPort" name="ownedPort" isReadOnly="true" aggregation="composite" isDerived="true" type="Port" association="A_ownedPort_encapsulatedClassifier">
<subsettedProperty xmi:idref="StructuredClassifier-ownedAttribute"/>
<ownedComment xmi:type="uml:Comment" xmi:id="EncapsulatedClassifier-ownedPort-_ownedComment.0" body="The Ports owned by the EncapsulatedClassifier.">
<annotatedElement xmi:idref="EncapsulatedClassifier-ownedPort"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="EncapsulatedClassifier-ownedPort-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="EncapsulatedClassifier-ownedPort-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="EncapsulatedClassifier-ownedPort.1" name="ownedPort" isQuery="true" bodyCondition="EncapsulatedClassifier-ownedPort.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="EncapsulatedClassifier-ownedPort.1-_ownedComment.0" body="Derivation for EncapsulatedClassifier::/ownedPort : Port">
<annotatedElement xmi:idref="EncapsulatedClassifier-ownedPort.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="EncapsulatedClassifier-ownedPort.1-spec" name="spec">
<constrainedElement xmi:idref="EncapsulatedClassifier-ownedPort.1"/>
<constrainedElement xmi:idref="EncapsulatedClassifier-ownedPort"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="EncapsulatedClassifier-ownedPort.1-spec-_specification">
<body>result = (ownedAttribute->select(oclIsKindOf(Port))->collect(oclAsType(Port))->asOrderedSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="EncapsulatedClassifier-ownedPort.1-result" isOrdered="true" name="result" direction="return" type="Port">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="EncapsulatedClassifier-ownedPort.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="EncapsulatedClassifier-ownedPort.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Port" name="Port">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-_ownedComment.0" body="A Port is a property of an EncapsulatedClassifier that specifies a distinct interaction point between that EncapsulatedClassifier and its environment or between the (behavior of the) EncapsulatedClassifier and its internal parts. Ports are connected to Properties of the EncapsulatedClassifier by Connectors through which requests can be made to invoke BehavioralFeatures. A Port may specify the services an EncapsulatedClassifier provides (offers) to its environment as well as the services that an EncapsulatedClassifier expects (requires) of its environment. A Port may have an associated ProtocolStateMachine.">
<annotatedElement xmi:idref="Port"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-port_aggregation" name="port_aggregation">
<constrainedElement xmi:idref="Port"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-port_aggregation-_ownedComment.0" body="Port.aggregation must be composite.">
<annotatedElement xmi:idref="Port-port_aggregation"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-port_aggregation-_specification">
<body>aggregation = AggregationKind::composite</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-default_value" name="default_value">
<constrainedElement xmi:idref="Port"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-default_value-_ownedComment.0" body="A defaultValue for port cannot be specified when the type of the Port is an Interface.">
<annotatedElement xmi:idref="Port-default_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-default_value-_specification">
<body>type.oclIsKindOf(Interface) implies defaultValue->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-encapsulated_owner" name="encapsulated_owner">
<constrainedElement xmi:idref="Port"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-encapsulated_owner-_ownedComment.0" body="All Ports are owned by an EncapsulatedClassifier.">
<annotatedElement xmi:idref="Port-encapsulated_owner"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-encapsulated_owner-_specification">
<body>owner = encapsulatedClassifier</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Port-_generalization.0" general="Property"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-isBehavior" name="isBehavior">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-isBehavior-_ownedComment.0" body="Specifies whether requests arriving at this Port are sent to the classifier behavior of this EncapsulatedClassifier. Such a Port is referred to as a behavior Port. Any invocation of a BehavioralFeature targeted at a behavior Port will be handled by the instance of the owning EncapsulatedClassifier itself, rather than by any instances that it may contain.">
<annotatedElement xmi:idref="Port-isBehavior"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Port-isBehavior-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-isConjugated" name="isConjugated">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-isConjugated-_ownedComment.0" body="Specifies the way that the provided and required Interfaces are derived from the Port’s Type.">
<annotatedElement xmi:idref="Port-isConjugated"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Port-isConjugated-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-isService" name="isService">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-isService-_ownedComment.0" body="If true, indicates that this Port is used to provide the published functionality of an EncapsulatedClassifier. If false, this Port is used to implement the EncapsulatedClassifier but is not part of the essential externally-visible functionality of the EncapsulatedClassifier and can, therefore, be altered or deleted along with the internal implementation of the EncapsulatedClassifier and other properties that are considered part of its implementation.">
<annotatedElement xmi:idref="Port-isService"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Port-isService-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-protocol" name="protocol" type="ProtocolStateMachine" association="A_protocol_port">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-protocol-_ownedComment.0" body="An optional ProtocolStateMachine which describes valid interactions at this interaction point.">
<annotatedElement xmi:idref="Port-protocol"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-protocol-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-provided" name="provided" isReadOnly="true" isDerived="true" type="Interface" association="A_provided_port">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-provided-_ownedComment.0" body="The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCclassifier offers to its environment via this Port, and which it will handle either directly or by forwarding it to a part of its internal structure. This association is derived according to the value of isConjugated. If isConjugated is false, provided is derived as the union of the sets of Interfaces realized by the type of the port and its supertypes, or directly from the type of the Port if the Port is typed by an Interface. If isConjugated is true, it is derived as the union of the sets of Interfaces used by the type of the Port and its supertypes.">
<annotatedElement xmi:idref="Port-provided"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-provided-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-provided-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-redefinedPort" name="redefinedPort" type="Port" association="A_redefinedPort_port">
<subsettedProperty xmi:idref="Property-redefinedProperty"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Port-redefinedPort-_ownedComment.0" body="A Port may be redefined when its containing EncapsulatedClassifier is specialized. The redefining Port may have additional Interfaces to those that are associated with the redefined Port or it may replace an Interface by one of its subtypes.">
<annotatedElement xmi:idref="Port-redefinedPort"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-redefinedPort-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-redefinedPort-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Port-required" name="required" isReadOnly="true" isDerived="true" type="Interface" association="A_required_port">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-required-_ownedComment.0" body="The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCassifier expects its environment to handle via this port. This association is derived according to the value of isConjugated. If isConjugated is false, required is derived as the union of the sets of Interfaces used by the type of the Port and its supertypes. If isConjugated is true, it is derived as the union of the sets of Interfaces realized by the type of the Port and its supertypes, or directly from the type of the Port if the Port is typed by an Interface.">
<annotatedElement xmi:idref="Port-required"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-required-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-required-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Port-provided.1" name="provided" isQuery="true" bodyCondition="Port-provided.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-provided.1-_ownedComment.0" body="Derivation for Port::/provided">
<annotatedElement xmi:idref="Port-provided.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-provided.1-spec" name="spec">
<constrainedElement xmi:idref="Port-provided.1"/>
<constrainedElement xmi:idref="Port-provided"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-provided.1-spec-_specification">
<body>result = (if isConjugated then basicRequired() else basicProvided() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Port-provided.1-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-provided.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-provided.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Port-required.1" name="required" isQuery="true" bodyCondition="Port-required.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-required.1-_ownedComment.0" body="Derivation for Port::/required">
<annotatedElement xmi:idref="Port-required.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-required.1-spec" name="spec">
<constrainedElement xmi:idref="Port-required.1"/>
<constrainedElement xmi:idref="Port-required"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-required.1-spec-_specification">
<body>result = (if isConjugated then basicProvided() else basicRequired() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Port-required.1-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-required.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-required.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Port-basicProvided" name="basicProvided" isQuery="true" bodyCondition="Port-basicProvided-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-basicProvided-_ownedComment.0" body="The union of the sets of Interfaces realized by the type of the Port and its supertypes, or directly the type of the Port if the Port is typed by an Interface.">
<annotatedElement xmi:idref="Port-basicProvided"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-basicProvided-spec" name="spec">
<constrainedElement xmi:idref="Port-basicProvided"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-basicProvided-spec-_specification">
<body>result = (if type.oclIsKindOf(Interface) then type.oclAsType(Interface)->asSet() else type.oclAsType(Classifier).allRealizedInterfaces() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Port-basicProvided-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-basicProvided-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-basicProvided-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Port-basicRequired" name="basicRequired" isQuery="true" bodyCondition="Port-basicRequired-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Port-basicRequired-_ownedComment.0" body="The union of the sets of Interfaces used by the type of the Port and its supertypes.">
<annotatedElement xmi:idref="Port-basicRequired"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Port-basicRequired-spec" name="spec">
<constrainedElement xmi:idref="Port-basicRequired"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Port-basicRequired-spec-_specification">
<body>result = ( type.oclAsType(Classifier).allUsedInterfaces() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Port-basicRequired-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Port-basicRequired-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Port-basicRequired-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StructuredClassifier" name="StructuredClassifier" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-_ownedComment.0" body="StructuredClassifiers may contain an internal structure of connected elements each of which plays a role in the overall Behavior modeled by the StructuredClassifier.">
<annotatedElement xmi:idref="StructuredClassifier"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="StructuredClassifier-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredClassifier-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_structuredClassifier">
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<subsettedProperty xmi:idref="StructuredClassifier-role"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-ownedAttribute-_ownedComment.0" body="The Properties owned by the StructuredClassifier.">
<annotatedElement xmi:idref="StructuredClassifier-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredClassifier-ownedConnector" name="ownedConnector" aggregation="composite" type="Connector" association="A_ownedConnector_structuredClassifier">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-ownedConnector-_ownedComment.0" body="The connectors owned by the StructuredClassifier.">
<annotatedElement xmi:idref="StructuredClassifier-ownedConnector"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-ownedConnector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-ownedConnector-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredClassifier-part" name="part" isReadOnly="true" isDerived="true" type="Property" association="A_part_structuredClassifier">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-part-_ownedComment.0" body="The Properties specifying instances that the StructuredClassifier owns by composition. This collection is derived, selecting those owned Properties where isComposite is true.">
<annotatedElement xmi:idref="StructuredClassifier-part"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-part-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-part-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredClassifier-role" name="role" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="ConnectableElement" association="A_role_structuredClassifier">
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-role-_ownedComment.0" body="The roles that instances may play in this StructuredClassifier.">
<annotatedElement xmi:idref="StructuredClassifier-role"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-role-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-role-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredClassifier-part.1" name="part" isQuery="true" bodyCondition="StructuredClassifier-part.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-part.1-_ownedComment.0" body="Derivation for StructuredClassifier::/part">
<annotatedElement xmi:idref="StructuredClassifier-part.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredClassifier-part.1-spec" name="spec">
<constrainedElement xmi:idref="StructuredClassifier-part.1"/>
<constrainedElement xmi:idref="StructuredClassifier-part"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredClassifier-part.1-spec-_specification">
<body>result = (ownedAttribute->select(isComposite))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredClassifier-part.1-result" name="result" direction="return" type="Property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-part.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-part.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredClassifier-allRoles" name="allRoles" isQuery="true" bodyCondition="StructuredClassifier-allRoles-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredClassifier-allRoles-_ownedComment.0" body="All features of type ConnectableElement, equivalent to all direct and inherited roles.">
<annotatedElement xmi:idref="StructuredClassifier-allRoles"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredClassifier-allRoles-spec" name="spec">
<constrainedElement xmi:idref="StructuredClassifier-allRoles"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredClassifier-allRoles-spec-_specification">
<body>result = (allFeatures()->select(oclIsKindOf(ConnectableElement))->collect(oclAsType(ConnectableElement))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredClassifier-allRoles-result" name="result" direction="return" type="ConnectableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredClassifier-allRoles-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredClassifier-allRoles-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="ConnectorKind" name="ConnectorKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorKind-_ownedComment.0" body="ConnectorKind is an enumeration that defines whether a Connector is an assembly or a delegation.">
<annotatedElement xmi:idref="ConnectorKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ConnectorKind-assembly" name="assembly">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorKind-assembly-_ownedComment.0" body="Indicates that the Connector is an assembly Connector.">
<annotatedElement xmi:idref="ConnectorKind-assembly"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ConnectorKind-delegation" name="delegation">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectorKind-delegation-_ownedComment.0" body="Indicates that the Connector is a delegation Connector.">
<annotatedElement xmi:idref="ConnectorKind-delegation"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_part_structuredClassifier" name="A_part_structuredClassifier" isDerived="true">
<memberEnd xmi:idref="StructuredClassifier-part"/>
<memberEnd xmi:idref="A_part_structuredClassifier-structuredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_part_structuredClassifier-structuredClassifier" name="structuredClassifier" type="StructuredClassifier" association="A_part_structuredClassifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_part_structuredClassifier-structuredClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedConnector_structuredClassifier" name="A_ownedConnector_structuredClassifier">
<memberEnd xmi:idref="StructuredClassifier-ownedConnector"/>
<memberEnd xmi:idref="A_ownedConnector_structuredClassifier-structuredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedConnector_structuredClassifier-structuredClassifier" name="structuredClassifier" type="StructuredClassifier" association="A_ownedConnector_structuredClassifier">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedConnector_structuredClassifier-structuredClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_structuredClassifier" name="A_ownedAttribute_structuredClassifier">
<memberEnd xmi:idref="StructuredClassifier-ownedAttribute"/>
<memberEnd xmi:idref="A_ownedAttribute_structuredClassifier-structuredClassifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_ownedAttribute_structuredClassifier-_generalization.0" general="A_role_structuredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedAttribute_structuredClassifier-structuredClassifier" name="structuredClassifier" type="StructuredClassifier" association="A_ownedAttribute_structuredClassifier">
<redefinedProperty xmi:idref="A_role_structuredClassifier-structuredClassifier"/>
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedAttribute_structuredClassifier-structuredClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_role_structuredClassifier" name="A_role_structuredClassifier" isDerived="true">
<memberEnd xmi:idref="StructuredClassifier-role"/>
<memberEnd xmi:idref="A_role_structuredClassifier-structuredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_role_structuredClassifier-structuredClassifier" name="structuredClassifier" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="StructuredClassifier" association="A_role_structuredClassifier">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_role_structuredClassifier-structuredClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_role_structuredClassifier-structuredClassifier-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_protocol_port" name="A_protocol_port">
<memberEnd xmi:idref="Port-protocol"/>
<memberEnd xmi:idref="A_protocol_port-port"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_protocol_port-port" name="port" type="Port" association="A_protocol_port">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_protocol_port-port-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_protocol_port-port-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_required_port" name="A_required_port" isDerived="true">
<memberEnd xmi:idref="Port-required"/>
<memberEnd xmi:idref="A_required_port-port"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_required_port-port" name="port" type="Port" association="A_required_port">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_required_port-port-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_required_port-port-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedPort_port" name="A_redefinedPort_port">
<memberEnd xmi:idref="Port-redefinedPort"/>
<memberEnd xmi:idref="A_redefinedPort_port-port"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedPort_port-port" name="port" type="Port" association="A_redefinedPort_port">
<subsettedProperty xmi:idref="A_redefinedProperty_property-property"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedPort_port-port-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedPort_port-port-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_provided_port" name="A_provided_port" isDerived="true">
<memberEnd xmi:idref="Port-provided"/>
<memberEnd xmi:idref="A_provided_port-port"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_provided_port-port" name="port" type="Port" association="A_provided_port">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_provided_port-port-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_provided_port-port-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedPort_encapsulatedClassifier" name="A_ownedPort_encapsulatedClassifier" isDerived="true">
<memberEnd xmi:idref="EncapsulatedClassifier-ownedPort"/>
<memberEnd xmi:idref="A_ownedPort_encapsulatedClassifier-encapsulatedClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedPort_encapsulatedClassifier-encapsulatedClassifier" name="encapsulatedClassifier" type="EncapsulatedClassifier" association="A_ownedPort_encapsulatedClassifier">
<subsettedProperty xmi:idref="A_ownedAttribute_structuredClassifier-structuredClassifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedPort_encapsulatedClassifier-encapsulatedClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_partWithPort_connectorEnd" name="A_partWithPort_connectorEnd">
<memberEnd xmi:idref="ConnectorEnd-partWithPort"/>
<memberEnd xmi:idref="A_partWithPort_connectorEnd-connectorEnd"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_partWithPort_connectorEnd-connectorEnd" name="connectorEnd" type="ConnectorEnd" association="A_partWithPort_connectorEnd">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_partWithPort_connectorEnd-connectorEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_partWithPort_connectorEnd-connectorEnd-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_definingEnd_connectorEnd" name="A_definingEnd_connectorEnd" isDerived="true">
<memberEnd xmi:idref="ConnectorEnd-definingEnd"/>
<memberEnd xmi:idref="A_definingEnd_connectorEnd-connectorEnd"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_definingEnd_connectorEnd-connectorEnd" name="connectorEnd" type="ConnectorEnd" association="A_definingEnd_connectorEnd">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_definingEnd_connectorEnd-connectorEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_definingEnd_connectorEnd-connectorEnd-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_end_connector" name="A_end_connector">
<memberEnd xmi:idref="Connector-end"/>
<memberEnd xmi:idref="A_end_connector-connector"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_end_connector-connector" name="connector" type="Connector" association="A_end_connector">
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedConnector_connector" name="A_redefinedConnector_connector">
<memberEnd xmi:idref="Connector-redefinedConnector"/>
<memberEnd xmi:idref="A_redefinedConnector_connector-connector"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedConnector_connector-connector" name="connector" type="Connector" association="A_redefinedConnector_connector">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedConnector_connector-connector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedConnector_connector-connector-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_contract_connector" name="A_contract_connector">
<memberEnd xmi:idref="Connector-contract"/>
<memberEnd xmi:idref="A_contract_connector-connector"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_contract_connector-connector" name="connector" type="Connector" association="A_contract_connector">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_contract_connector-connector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_contract_connector-connector-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_type_connector" name="A_type_connector">
<memberEnd xmi:idref="Connector-type"/>
<memberEnd xmi:idref="A_type_connector-connector"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_type_connector-connector" name="connector" type="Connector" association="A_type_connector">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_type_connector-connector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_type_connector-connector-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_connectableElement_templateParameter_parameteredElement" name="A_connectableElement_templateParameter_parameteredElement">
<memberEnd xmi:idref="ConnectableElement-templateParameter"/>
<memberEnd xmi:idref="ConnectableElementTemplateParameter-parameteredElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_end_role" name="A_end_role">
<memberEnd xmi:idref="ConnectableElement-end"/>
<memberEnd xmi:idref="ConnectorEnd-role"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realizingClassifier_componentRealization" name="A_realizingClassifier_componentRealization">
<memberEnd xmi:idref="ComponentRealization-realizingClassifier"/>
<memberEnd xmi:idref="A_realizingClassifier_componentRealization-componentRealization"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_realizingClassifier_componentRealization-componentRealization" name="componentRealization" type="ComponentRealization" association="A_realizingClassifier_componentRealization">
<subsettedProperty xmi:idref="NamedElement-clientDependency"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_realizingClassifier_componentRealization-componentRealization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_realizingClassifier_componentRealization-componentRealization-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_required_component" name="A_required_component" isDerived="true">
<memberEnd xmi:idref="Component-required"/>
<memberEnd xmi:idref="A_required_component-component"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_required_component-component" name="component" type="Component" association="A_required_component">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_required_component-component-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_required_component-component-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_packagedElement_component" name="A_packagedElement_component">
<memberEnd xmi:idref="Component-packagedElement"/>
<memberEnd xmi:idref="A_packagedElement_component-component"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_packagedElement_component-component" name="component" type="Component" association="A_packagedElement_component">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_packagedElement_component-component-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realization_abstraction_component" name="A_realization_abstraction_component">
<memberEnd xmi:idref="Component-realization"/>
<memberEnd xmi:idref="ComponentRealization-abstraction"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_provided_component" name="A_provided_component" isDerived="true">
<memberEnd xmi:idref="Component-provided"/>
<memberEnd xmi:idref="A_provided_component-component"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_provided_component-component" name="component" type="Component" association="A_provided_component">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_provided_component-component-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_provided_component-component-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_type_collaborationUse" name="A_type_collaborationUse">
<memberEnd xmi:idref="CollaborationUse-type"/>
<memberEnd xmi:idref="A_type_collaborationUse-collaborationUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_type_collaborationUse-collaborationUse" name="collaborationUse" type="CollaborationUse" association="A_type_collaborationUse">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_type_collaborationUse-collaborationUse-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_type_collaborationUse-collaborationUse-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_roleBinding_collaborationUse" name="A_roleBinding_collaborationUse">
<memberEnd xmi:idref="CollaborationUse-roleBinding"/>
<memberEnd xmi:idref="A_roleBinding_collaborationUse-collaborationUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_roleBinding_collaborationUse-collaborationUse" name="collaborationUse" type="CollaborationUse" association="A_roleBinding_collaborationUse">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_roleBinding_collaborationUse-collaborationUse-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_collaborationRole_collaboration" name="A_collaborationRole_collaboration">
<memberEnd xmi:idref="Collaboration-collaborationRole"/>
<memberEnd xmi:idref="A_collaborationRole_collaboration-collaboration"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_collaborationRole_collaboration-collaboration" name="collaboration" type="Collaboration" association="A_collaborationRole_collaboration">
<subsettedProperty xmi:idref="A_role_structuredClassifier-structuredClassifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_collaborationRole_collaboration-collaboration-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_collaborationRole_collaboration-collaboration-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedOperation_class" name="A_ownedOperation_class">
<memberEnd xmi:idref="Class-ownedOperation"/>
<memberEnd xmi:idref="Operation-class"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_superClass_class" name="A_superClass_class" isDerived="true">
<memberEnd xmi:idref="Class-superClass"/>
<memberEnd xmi:idref="A_superClass_class-class"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_superClass_class-class" name="class" type="Class" association="A_superClass_class">
<subsettedProperty xmi:idref="A_general_classifier-classifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_superClass_class-class-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_superClass_class-class-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extension_metaclass" name="A_extension_metaclass" isDerived="true">
<memberEnd xmi:idref="Class-extension"/>
<memberEnd xmi:idref="Extension-metaclass"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_class" name="A_ownedAttribute_class">
<memberEnd xmi:idref="Class-ownedAttribute"/>
<memberEnd xmi:idref="Property-class"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nestedClassifier_nestingClass" name="A_nestedClassifier_nestingClass">
<memberEnd xmi:idref="Class-nestedClassifier"/>
<memberEnd xmi:idref="A_nestedClassifier_nestingClass-nestingClass"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_nestedClassifier_nestingClass-nestingClass" name="nestingClass" type="Class" association="A_nestedClassifier_nestingClass">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_nestedClassifier_nestingClass-nestingClass-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedReception_class" name="A_ownedReception_class">
<memberEnd xmi:idref="Class-ownedReception"/>
<memberEnd xmi:idref="A_ownedReception_class-class"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedReception_class-class" name="class" type="Class" association="A_ownedReception_class">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedReception_class-class-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_memberEnd_association" name="A_memberEnd_association">
<memberEnd xmi:idref="Association-memberEnd"/>
<memberEnd xmi:idref="Property-association"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_endType_association" name="A_endType_association" isDerived="true">
<memberEnd xmi:idref="Association-endType"/>
<memberEnd xmi:idref="A_endType_association-association"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_endType_association-association" name="association" type="Association" association="A_endType_association">
<subsettedProperty xmi:idref="A_relatedElement_relationship-relationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_endType_association-association-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_endType_association-association-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedEnd_owningAssociation" name="A_ownedEnd_owningAssociation">
<memberEnd xmi:idref="Association-ownedEnd"/>
<memberEnd xmi:idref="Property-owningAssociation"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_navigableOwnedEnd_association" name="A_navigableOwnedEnd_association">
<memberEnd xmi:idref="Association-navigableOwnedEnd"/>
<memberEnd xmi:idref="A_navigableOwnedEnd_association-association"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_navigableOwnedEnd_association-association" name="association" type="Association" association="A_navigableOwnedEnd_association">
<subsettedProperty xmi:idref="Property-owningAssociation"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_navigableOwnedEnd_association-association-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="StateMachines" name="StateMachines">
<packageImport xmi:type="uml:PackageImport" xmi:id="StateMachines-_packageImport.0" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="StateMachines-_packageImport.1" importedPackage="SimpleClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="StateMachines-_packageImport.2" importedPackage="CommonStructure"/>
<packagedElement xmi:type="uml:Class" xmi:id="ConnectionPointReference" name="ConnectionPointReference">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-_ownedComment.0" body="A ConnectionPointReference represents a usage (as part of a submachine State) of an entry/exit point Pseudostate defined in the StateMachine referenced by the submachine State.">
<annotatedElement xmi:idref="ConnectionPointReference"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectionPointReference-exit_pseudostates" name="exit_pseudostates">
<constrainedElement xmi:idref="ConnectionPointReference"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-exit_pseudostates-_ownedComment.0" body="The exit Pseudostates must be Pseudostates with kind exitPoint.">
<annotatedElement xmi:idref="ConnectionPointReference-exit_pseudostates"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectionPointReference-exit_pseudostates-_specification">
<body>exit->forAll(kind = PseudostateKind::exitPoint)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectionPointReference-entry_pseudostates" name="entry_pseudostates">
<constrainedElement xmi:idref="ConnectionPointReference"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-entry_pseudostates-_ownedComment.0" body="The entry Pseudostates must be Pseudostates with kind entryPoint.">
<annotatedElement xmi:idref="ConnectionPointReference-entry_pseudostates"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectionPointReference-entry_pseudostates-_specification">
<body>entry->forAll(kind = PseudostateKind::entryPoint)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ConnectionPointReference-_generalization.0" general="Vertex"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectionPointReference-entry" name="entry" type="Pseudostate" association="A_entry_connectionPointReference">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-entry-_ownedComment.0" body="The entryPoint Pseudostates corresponding to this connection point.">
<annotatedElement xmi:idref="ConnectionPointReference-entry"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectionPointReference-entry-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConnectionPointReference-entry-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectionPointReference-exit" name="exit" type="Pseudostate" association="A_exit_connectionPointReference">
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-exit-_ownedComment.0" body="The exitPoints kind Pseudostates corresponding to this connection point.">
<annotatedElement xmi:idref="ConnectionPointReference-exit"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectionPointReference-exit-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConnectionPointReference-exit-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConnectionPointReference-state" name="state" type="State" association="A_connection_state">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-state-_ownedComment.0" body="The State in which the ConnectionPointReference is defined.">
<annotatedElement xmi:idref="ConnectionPointReference-state"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConnectionPointReference-state-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ConnectionPointReference-isConsistentWith" name="isConsistentWith" visibility="public" bodyCondition="ConnectionPointReference-isConsistentWith-spec">
<precondition xmi:idref="ConnectionPointReference-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConnectionPointReference-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies a ConnectionPointReference can only be redefined by a ConnectionPointReference.">
<annotatedElement xmi:idref="ConnectionPointReference-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectionPointReference-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="ConnectionPointReference-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectionPointReference-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConnectionPointReference-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="ConnectionPointReference-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConnectionPointReference-isConsistentWith-spec-_specification">
<body>result = redefiningElement.oclIsKindOf(ConnectionPointReference)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ConnectionPointReference-isConsistentWith-redefiningElement" name="redefiningElement" visibility="public" type="RedefinableElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ConnectionPointReference-isConsistentWith-result" name="result" visibility="public" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="FinalState" name="FinalState">
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-_ownedComment.0" body="A special kind of State, which, when entered, signifies that the enclosing Region has completed. If the enclosing Region is directly contained in a StateMachine and all other Regions in that StateMachine also are completed, then it means that the entire StateMachine behavior is completed.">
<annotatedElement xmi:idref="FinalState"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-no_exit_behavior" name="no_exit_behavior">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-no_exit_behavior-_ownedComment.0" body="A FinalState has no exit Behavior.">
<annotatedElement xmi:idref="FinalState-no_exit_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-no_exit_behavior-_specification">
<body>exit->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-no_outgoing_transitions" name="no_outgoing_transitions">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-no_outgoing_transitions-_ownedComment.0" body="A FinalState cannot have any outgoing Transitions.">
<annotatedElement xmi:idref="FinalState-no_outgoing_transitions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-no_outgoing_transitions-_specification">
<body>outgoing->size() = 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-no_regions" name="no_regions">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-no_regions-_ownedComment.0" body="A FinalState cannot have Regions.">
<annotatedElement xmi:idref="FinalState-no_regions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-no_regions-_specification">
<body>region->size() = 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-cannot_reference_submachine" name="cannot_reference_submachine">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-cannot_reference_submachine-_ownedComment.0" body="A FinalState cannot reference a submachine.">
<annotatedElement xmi:idref="FinalState-cannot_reference_submachine"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-cannot_reference_submachine-_specification">
<body>submachine->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-no_entry_behavior" name="no_entry_behavior">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-no_entry_behavior-_ownedComment.0" body="A FinalState has no entry Behavior.">
<annotatedElement xmi:idref="FinalState-no_entry_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-no_entry_behavior-_specification">
<body>entry->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-no_state_behavior" name="no_state_behavior">
<constrainedElement xmi:idref="FinalState"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-no_state_behavior-_ownedComment.0" body="A FinalState has no state (doActivity) Behavior.">
<annotatedElement xmi:idref="FinalState-no_state_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-no_state_behavior-_specification">
<body>doActivity->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="FinalState-_generalization.0" general="State"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="FinalState-isConsistentWith" name="isConsistentWith" visibility="public" bodyCondition="FinalState-isConsistentWith-spec">
<precondition xmi:idref="FinalState-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FinalState-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies a FinalState can only be redefined by a FinalState.">
<annotatedElement xmi:idref="FinalState-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="FinalState-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FinalState-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="FinalState-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FinalState-isConsistentWith-spec-_specification">
<body>result = redefiningElement.oclIsKindOf(FinalState)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="FinalState-isConsistentWith-redefiningElement" name="redefiningElement" visibility="public" type="RedefinableElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="FinalState-isConsistentWith-result" name="result" visibility="public" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ProtocolConformance" name="ProtocolConformance">
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolConformance-_ownedComment.0" body="A ProtocolStateMachine can be redefined into a more specific ProtocolStateMachine or into behavioral StateMachine. ProtocolConformance declares that the specific ProtocolStateMachine specifies a protocol that conforms to the general ProtocolStateMachine or that the specific behavioral StateMachine abides by the protocol of the general ProtocolStateMachine.">
<annotatedElement xmi:idref="ProtocolConformance"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ProtocolConformance-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolConformance-generalMachine" name="generalMachine" type="ProtocolStateMachine" association="A_generalMachine_protocolConformance">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolConformance-generalMachine-_ownedComment.0" body="Specifies the ProtocolStateMachine to which the specific ProtocolStateMachine conforms.">
<annotatedElement xmi:idref="ProtocolConformance-generalMachine"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolConformance-specificMachine" name="specificMachine" type="ProtocolStateMachine" association="A_conformance_specificMachine">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolConformance-specificMachine-_ownedComment.0" body="Specifies the ProtocolStateMachine which conforms to the general ProtocolStateMachine.">
<annotatedElement xmi:idref="ProtocolConformance-specificMachine"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ProtocolStateMachine" name="ProtocolStateMachine">
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-_ownedComment.0" body="A ProtocolStateMachine is always defined in the context of a Classifier. It specifies which BehavioralFeatures of the Classifier can be called in which State and under which conditions, thus specifying the allowed invocation sequences on the Classifier's BehavioralFeatures. A ProtocolStateMachine specifies the possible and permitted Transitions on the instances of its context Classifier, together with the BehavioralFeatures that carry the Transitions. In this manner, an instance lifecycle can be specified for a Classifier, by defining the order in which the BehavioralFeatures can be activated and the States through which an instance progresses during its existence.">
<annotatedElement xmi:idref="ProtocolStateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolStateMachine-classifier_context" name="classifier_context">
<constrainedElement xmi:idref="ProtocolStateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-classifier_context-_ownedComment.0" body="A ProtocolStateMachine must only have a Classifier context, not a BehavioralFeature context.">
<annotatedElement xmi:idref="ProtocolStateMachine-classifier_context"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolStateMachine-classifier_context-_specification">
<body>_'context' <> null and specification = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolStateMachine-deep_or_shallow_history" name="deep_or_shallow_history">
<constrainedElement xmi:idref="ProtocolStateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-deep_or_shallow_history-_ownedComment.0" body="ProtocolStateMachines cannot have deep or shallow history Pseudostates.">
<annotatedElement xmi:idref="ProtocolStateMachine-deep_or_shallow_history"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolStateMachine-deep_or_shallow_history-_specification">
<body>region->forAll (r | r.subvertex->forAll (v | v.oclIsKindOf(Pseudostate) implies ((v.oclAsType(Pseudostate).kind <> PseudostateKind::deepHistory) and (v.oclAsType(Pseudostate).kind <> PseudostateKind::shallowHistory)))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolStateMachine-entry_exit_do" name="entry_exit_do">
<constrainedElement xmi:idref="ProtocolStateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-entry_exit_do-_ownedComment.0" body="The states of a ProtocolStateMachine cannot have entry, exit, or do activity Behaviors.">
<annotatedElement xmi:idref="ProtocolStateMachine-entry_exit_do"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolStateMachine-entry_exit_do-_specification">
<body>region->forAll(r | r.subvertex->forAll(v | v.oclIsKindOf(State) implies (v.oclAsType(State).entry->isEmpty() and v.oclAsType(State).exit->isEmpty() and v.oclAsType(State).doActivity->isEmpty()))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolStateMachine-protocol_transitions" name="protocol_transitions">
<constrainedElement xmi:idref="ProtocolStateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-protocol_transitions-_ownedComment.0" body="All Transitions of a ProtocolStateMachine must be ProtocolTransitions.">
<annotatedElement xmi:idref="ProtocolStateMachine-protocol_transitions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolStateMachine-protocol_transitions-_specification">
<body>region->forAll(r | r.transition->forAll(t | t.oclIsTypeOf(ProtocolTransition)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ProtocolStateMachine-_generalization.0" general="StateMachine"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolStateMachine-conformance" name="conformance" aggregation="composite" type="ProtocolConformance" association="A_conformance_specificMachine">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolStateMachine-conformance-_ownedComment.0" body="Conformance between ProtocolStateMachine ">
<annotatedElement xmi:idref="ProtocolStateMachine-conformance"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ProtocolStateMachine-conformance-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ProtocolStateMachine-conformance-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ProtocolTransition" name="ProtocolTransition">
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-_ownedComment.0" body="A ProtocolTransition specifies a legal Transition for an Operation. Transitions of ProtocolStateMachines have the following information: a pre-condition (guard), a Trigger, and a post-condition. Every ProtocolTransition is associated with at most one BehavioralFeature belonging to the context Classifier of the ProtocolStateMachine.">
<annotatedElement xmi:idref="ProtocolTransition"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolTransition-refers_to_operation" name="refers_to_operation">
<constrainedElement xmi:idref="ProtocolTransition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-refers_to_operation-_ownedComment.0" body="If a ProtocolTransition refers to an Operation (i.e., has a CallEvent trigger corresponding to an Operation), then that Operation should apply to the context Classifier of the StateMachine of the ProtocolTransition.">
<annotatedElement xmi:idref="ProtocolTransition-refers_to_operation"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolTransition-refers_to_operation-_specification">
<body>if (referred()->notEmpty() and containingStateMachine()._'context'->notEmpty()) then containingStateMachine()._'context'.oclAsType(BehavioredClassifier).allFeatures()->includesAll(referred()) else true endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolTransition-associated_actions" name="associated_actions">
<constrainedElement xmi:idref="ProtocolTransition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-associated_actions-_ownedComment.0" body="A ProtocolTransition never has associated Behaviors.">
<annotatedElement xmi:idref="ProtocolTransition-associated_actions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolTransition-associated_actions-_specification">
<body>effect = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolTransition-belongs_to_psm" name="belongs_to_psm">
<constrainedElement xmi:idref="ProtocolTransition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-belongs_to_psm-_ownedComment.0" body="A ProtocolTransition always belongs to a ProtocolStateMachine.">
<annotatedElement xmi:idref="ProtocolTransition-belongs_to_psm"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolTransition-belongs_to_psm-_specification">
<body>container.belongsToPSM()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ProtocolTransition-_generalization.0" general="Transition"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolTransition-postCondition" name="postCondition" aggregation="composite" type="Constraint" association="A_postCondition_owningTransition">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-postCondition-_ownedComment.0" body="Specifies the post condition of the Transition which is the Condition that should be obtained once the Transition is triggered. This post condition is part of the post condition of the Operation connected to the Transition.">
<annotatedElement xmi:idref="ProtocolTransition-postCondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ProtocolTransition-postCondition-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolTransition-preCondition" name="preCondition" aggregation="composite" type="Constraint" association="A_preCondition_protocolTransition">
<subsettedProperty xmi:idref="Transition-guard"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-preCondition-_ownedComment.0" body="Specifies the precondition of the Transition. It specifies the Condition that should be verified before triggering the Transition. This guard condition added to the source State will be evaluated as part of the precondition of the Operation referred by the Transition if any.">
<annotatedElement xmi:idref="ProtocolTransition-preCondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ProtocolTransition-preCondition-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProtocolTransition-referred" name="referred" isReadOnly="true" isDerived="true" type="Operation" association="A_referred_protocolTransition">
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-referred-_ownedComment.0" body="This association refers to the associated Operation. It is derived from the Operation of the CallEvent Trigger when applicable.">
<annotatedElement xmi:idref="ProtocolTransition-referred"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ProtocolTransition-referred-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ProtocolTransition-referred-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ProtocolTransition-referred.1" name="referred" isQuery="true" bodyCondition="ProtocolTransition-referred.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ProtocolTransition-referred.1-_ownedComment.0" body="Derivation for ProtocolTransition::/referred">
<annotatedElement xmi:idref="ProtocolTransition-referred.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ProtocolTransition-referred.1-spec" name="spec">
<constrainedElement xmi:idref="ProtocolTransition-referred.1"/>
<constrainedElement xmi:idref="ProtocolTransition-referred"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ProtocolTransition-referred.1-spec-_specification">
<body>result = (trigger->collect(event)->select(oclIsKindOf(CallEvent))->collect(oclAsType(CallEvent).operation)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ProtocolTransition-referred.1-result" name="result" direction="return" type="Operation">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ProtocolTransition-referred.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ProtocolTransition-referred.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Pseudostate" name="Pseudostate">
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-_ownedComment.0" body="A Pseudostate is an abstraction that encompasses different types of transient Vertices in the StateMachine graph. A StateMachine instance never comes to rest in a Pseudostate, instead, it will exit and enter the Pseudostate within a single run-to-completion step.">
<annotatedElement xmi:idref="Pseudostate"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-transitions_outgoing" name="transitions_outgoing">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-transitions_outgoing-_ownedComment.0" body="All transitions outgoing a fork vertex must target states in different regions of an orthogonal state.">
<annotatedElement xmi:idref="Pseudostate-transitions_outgoing"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-transitions_outgoing-_specification">
<body>(kind = PseudostateKind::fork) implies -- for any pair of outgoing transitions there exists an orthogonal state which contains the targets of these transitions -- such that these targets belong to different regions of that orthogonal state outgoing->forAll(t1:Transition, t2:Transition | let contState:State = containingStateMachine().LCAState(t1.target, t2.target) in ((contState <> null) and (contState.region ->exists(r1:Region, r2: Region | (r1 <> r2) and t1.target.isContainedInRegion(r1) and t2.target.isContainedInRegion(r2))))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-choice_vertex" name="choice_vertex">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-choice_vertex-_ownedComment.0" body="In a complete statemachine, a choice Vertex must have at least one incoming and one outgoing Transition.">
<annotatedElement xmi:idref="Pseudostate-choice_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-choice_vertex-_specification">
<body>(kind = PseudostateKind::choice) implies (incoming->size() >= 1 and outgoing->size() >= 1) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-outgoing_from_initial" name="outgoing_from_initial">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-outgoing_from_initial-_ownedComment.0" body="The outgoing Transition from an initial vertex may have a behavior, but not a trigger or a guard.">
<annotatedElement xmi:idref="Pseudostate-outgoing_from_initial"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-outgoing_from_initial-_specification">
<body>(kind = PseudostateKind::initial) implies (outgoing.guard = null and outgoing.trigger->isEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-join_vertex" name="join_vertex">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-join_vertex-_ownedComment.0" body="In a complete StateMachine, a join Vertex must have at least two incoming Transitions and exactly one outgoing Transition.">
<annotatedElement xmi:idref="Pseudostate-join_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-join_vertex-_specification">
<body>(kind = PseudostateKind::join) implies (outgoing->size() = 1 and incoming->size() >= 2) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-junction_vertex" name="junction_vertex">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-junction_vertex-_ownedComment.0" body="In a complete StateMachine, a junction Vertex must have at least one incoming and one outgoing Transition.">
<annotatedElement xmi:idref="Pseudostate-junction_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-junction_vertex-_specification">
<body>(kind = PseudostateKind::junction) implies (incoming->size() >= 1 and outgoing->size() >= 1) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-history_vertices" name="history_vertices">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-history_vertices-_ownedComment.0" body="History Vertices can have at most one outgoing Transition.">
<annotatedElement xmi:idref="Pseudostate-history_vertices"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-history_vertices-_specification">
<body>((kind = PseudostateKind::deepHistory) or (kind = PseudostateKind::shallowHistory)) implies (outgoing->size() <= 1) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-initial_vertex" name="initial_vertex">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-initial_vertex-_ownedComment.0" body="An initial Vertex can have at most one outgoing Transition.">
<annotatedElement xmi:idref="Pseudostate-initial_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-initial_vertex-_specification">
<body>(kind = PseudostateKind::initial) implies (outgoing->size() <= 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-fork_vertex" name="fork_vertex">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-fork_vertex-_ownedComment.0" body="In a complete StateMachine, a fork Vertex must have at least two outgoing Transitions and exactly one incoming Transition.">
<annotatedElement xmi:idref="Pseudostate-fork_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-fork_vertex-_specification">
<body>(kind = PseudostateKind::fork) implies (incoming->size() = 1 and outgoing->size() >= 2) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-transitions_incoming" name="transitions_incoming">
<constrainedElement xmi:idref="Pseudostate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-transitions_incoming-_ownedComment.0" body="All Transitions incoming a join Vertex must originate in different Regions of an orthogonal State.">
<annotatedElement xmi:idref="Pseudostate-transitions_incoming"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-transitions_incoming-_specification">
<body>(kind = PseudostateKind::join) implies -- for any pair of incoming transitions there exists an orthogonal state which contains the source vetices of these transitions -- such that these source vertices belong to different regions of that orthogonal state incoming->forAll(t1:Transition, t2:Transition | let contState:State = containingStateMachine().LCAState(t1.source, t2.source) in ((contState <> null) and (contState.region ->exists(r1:Region, r2: Region | (r1 <> r2) and t1.source.isContainedInRegion(r1) and t2.source.isContainedInRegion(r2)))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Pseudostate-_generalization.0" general="Vertex"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Pseudostate-kind" name="kind" type="PseudostateKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-kind-_ownedComment.0" body="Determines the precise type of the Pseudostate and can be one of: entryPoint, exitPoint, initial, deepHistory, shallowHistory, join, fork, junction, terminate or choice.">
<annotatedElement xmi:idref="Pseudostate-kind"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="Pseudostate-kind-_defaultValue" type="PseudostateKind" instance="PseudostateKind-initial"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Pseudostate-state" name="state" type="State" association="A_connectionPoint_state">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-state-_ownedComment.0" body="The State that owns this Pseudostate and in which it appears.">
<annotatedElement xmi:idref="Pseudostate-state"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Pseudostate-state-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Pseudostate-stateMachine" name="stateMachine" type="StateMachine" association="A_connectionPoint_stateMachine">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-stateMachine-_ownedComment.0" body="The StateMachine in which this Pseudostate is defined. This only applies to Pseudostates of the kind entryPoint or exitPoint.">
<annotatedElement xmi:idref="Pseudostate-stateMachine"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Pseudostate-stateMachine-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Pseudostate-isConsistentWith" name="isConsistentWith" visibility="public" bodyCondition="Pseudostate-isConsistentWith-spec">
<precondition xmi:idref="Pseudostate-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pseudostate-isConsistentWith-owmnedComment.0" body="The query isConsistentWith() specifies a Pseudostate can only be redefined by a Pseudostate of the same kind.">
<annotatedElement xmi:idref="Pseudostate-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="Pseudostate-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pseudostate-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="Pseudostate-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pseudostate-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(Pseudostate) and redefiningElement.oclAsType(Pseudostate).kind = kind)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Pseudostate-isConsistentWith-redefiningElement" name="redefiningElement" visibility="public" type="RedefinableElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Pseudostate-isConsistentWith-result" name="result" visibility="public" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Region" name="Region">
<ownedComment xmi:type="uml:Comment" xmi:id="Region-_ownedComment.0" body="A Region is a top-level part of a StateMachine or a composite State, that serves as a container for the Vertices and Transitions of the StateMachine. A StateMachine or composite State may contain multiple Regions representing behaviors that may occur in parallel.">
<annotatedElement xmi:idref="Region"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-deep_history_vertex" name="deep_history_vertex">
<constrainedElement xmi:idref="Region"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-deep_history_vertex-_ownedComment.0" body="A Region can have at most one deep history Vertex.">
<annotatedElement xmi:idref="Region-deep_history_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-deep_history_vertex-_specification">
<body>self.subvertex->select (oclIsKindOf(Pseudostate))->collect(oclAsType(Pseudostate))-> select(kind = PseudostateKind::deepHistory)->size() <= 1 </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-shallow_history_vertex" name="shallow_history_vertex">
<constrainedElement xmi:idref="Region"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-shallow_history_vertex-_ownedComment.0" body="A Region can have at most one shallow history Vertex.">
<annotatedElement xmi:idref="Region-shallow_history_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-shallow_history_vertex-_specification">
<body>subvertex->select(oclIsKindOf(Pseudostate))->collect(oclAsType(Pseudostate))-> select(kind = PseudostateKind::shallowHistory)->size() <= 1 </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-owned" name="owned">
<constrainedElement xmi:idref="Region"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-owned-_ownedComment.0" body="If a Region is owned by a StateMachine, then it cannot also be owned by a State and vice versa.">
<annotatedElement xmi:idref="Region-owned"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-owned-_specification">
<body>(stateMachine <> null implies state = null) and (state <> null implies stateMachine = null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-initial_vertex" name="initial_vertex">
<constrainedElement xmi:idref="Region"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-initial_vertex-_ownedComment.0" body="A Region can have at most one initial Vertex.">
<annotatedElement xmi:idref="Region-initial_vertex"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-initial_vertex-_specification">
<body>self.subvertex->select (oclIsKindOf(Pseudostate))->collect(oclAsType(Pseudostate))-> select(kind = PseudostateKind::initial)->size() <= 1 </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Region-_generalization.0" general="Namespace"/>
<generalization xmi:type="uml:Generalization" xmi:id="Region-_generalization.1" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-extendedRegion" name="extendedRegion" type="Region" association="A_extendedRegion_region">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-extendedRegion-_ownedComment.0" body="The region of which this region is an extension.">
<annotatedElement xmi:idref="Region-extendedRegion"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Region-extendedRegion-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-redefinitionContext" name="redefinitionContext" isReadOnly="true" isDerived="true" type="Classifier" association="A_redefinitionContext_region">
<redefinedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-redefinitionContext-_ownedComment.0" body="References the Classifier in which context this element may be redefined.">
<annotatedElement xmi:idref="Region-redefinitionContext"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-state" name="state" type="State" association="A_region_state">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-state-_ownedComment.0" body="The State that owns the Region. If a Region is owned by a State, then it cannot also be owned by a StateMachine.">
<annotatedElement xmi:idref="Region-state"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Region-state-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-stateMachine" name="stateMachine" type="StateMachine" association="A_region_stateMachine">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-stateMachine-_ownedComment.0" body="The StateMachine that owns the Region. If a Region is owned by a StateMachine, then it cannot also be owned by a State.">
<annotatedElement xmi:idref="Region-stateMachine"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Region-stateMachine-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-subvertex" name="subvertex" aggregation="composite" type="Vertex" association="A_subvertex_container">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-subvertex-_ownedComment.0" body="The set of Vertices that are owned by this Region.">
<annotatedElement xmi:idref="Region-subvertex"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Region-subvertex-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Region-subvertex-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Region-transition" name="transition" aggregation="composite" type="Transition" association="A_transition_container">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-transition-_ownedComment.0" body="The set of Transitions owned by the Region.">
<annotatedElement xmi:idref="Region-transition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Region-transition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Region-transition-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Region-belongsToPSM" name="belongsToPSM" isQuery="true" bodyCondition="Region-belongsToPSM-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Region-belongsToPSM-_ownedComment.0" body="The operation belongsToPSM () checks if the Region belongs to a ProtocolStateMachine.">
<annotatedElement xmi:idref="Region-belongsToPSM"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-belongsToPSM-spec" name="spec">
<constrainedElement xmi:idref="Region-belongsToPSM"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-belongsToPSM-spec-_specification">
<body>result = (if stateMachine <> null then stateMachine.oclIsKindOf(ProtocolStateMachine) else state <> null implies state.container.belongsToPSM() endif )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-belongsToPSM-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Region-containingStateMachine" name="containingStateMachine" isQuery="true" bodyCondition="Region-containingStateMachine-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Region-containingStateMachine-_ownedComment.0" body="The operation containingStateMachine() returns the StateMachine in which this Region is defined.">
<annotatedElement xmi:idref="Region-containingStateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-containingStateMachine-spec" name="spec">
<constrainedElement xmi:idref="Region-containingStateMachine"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-containingStateMachine-spec-_specification">
<body>result = (if stateMachine = null then state.containingStateMachine() else stateMachine endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-containingStateMachine-result" name="result" direction="return" type="StateMachine"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Region-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="Region-isConsistentWith-spec">
<precondition xmi:idref="Region-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-isConsistentWith-_ownedComment.0" body="The query isConsistentWith specifies that a Region can be redefined by any Region for which the redefinition context is valid (see the isRedefinitionContextValid operation). Note that consistency requirements for the redefinition of Vertices and Transitions within a redefining Region are specified by the isConsistentWith and isRedefinitionContextValid operations for Vertex (and its subclasses) and Transition.">
<annotatedElement xmi:idref="Region-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="Region-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-isConsistentWith-spec-_specification">
<body>result = true</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="Region-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Region-isRedefinitionContextValid" name="isRedefinitionContextValid" isQuery="true" bodyCondition="Region-isRedefinitionContextValid-spec">
<redefinedOperation xmi:idref="RedefinableElement-isRedefinitionContextValid"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Region-isRedefinitionContextValid-_ownedComment.0" body="The query isRedefinitionContextValid() specifies whether the redefinition contexts of a Region are properly related to the redefinition contexts of the specified Region to allow this element to redefine the other. The containing StateMachine or State of a redefining Region must Redefine the containing StateMachine or State of the redefined Region.">
<annotatedElement xmi:idref="Region-isRedefinitionContextValid"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-isRedefinitionContextValid-spec" name="spec">
<constrainedElement xmi:idref="Region-isRedefinitionContextValid"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-isRedefinitionContextValid-spec-_specification">
<body>result = (if redefinedElement.oclIsKindOf(Region) then let redefinedRegion : Region = redefinedElement.oclAsType(Region) in if stateMachine->isEmpty() then -- the Region is owned by a State (state.redefinedState->notEmpty() and state.redefinedState.region->includes(redefinedRegion)) else -- the region is owned by a StateMachine (stateMachine.extendedStateMachine->notEmpty() and stateMachine.extendedStateMachine->exists(sm : StateMachine | sm.region->includes(redefinedRegion))) endif else false endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-isRedefinitionContextValid-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-isRedefinitionContextValid-redefinedElement" name="redefinedElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Region-redefinitionContext.1" name="redefinitionContext" isQuery="true" bodyCondition="Region-redefinitionContext.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Region-redefinitionContext.1-_ownedComment.0" body="The redefinition context of a Region is the nearest containing StateMachine.">
<annotatedElement xmi:idref="Region-redefinitionContext.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Region-redefinitionContext.1-spec" name="spec">
<constrainedElement xmi:idref="Region-redefinitionContext.1"/>
<constrainedElement xmi:idref="Region-redefinitionContext"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Region-redefinitionContext.1-spec-_specification">
<body>result = containingStateMachine()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Region-redefinitionContext.1-result" name="result" direction="return" type="Classifier"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="State" name="State">
<ownedComment xmi:type="uml:Comment" xmi:id="State-_ownedComment.0" body="A State models a situation during which some (usually implicit) invariant condition holds.">
<annotatedElement xmi:idref="State"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-entry_or_exit" name="entry_or_exit">
<constrainedElement xmi:idref="State"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-entry_or_exit-_ownedComment.0" body="Only entry or exit Pseudostates can serve as connection points.">
<annotatedElement xmi:idref="State-entry_or_exit"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-entry_or_exit-_specification">
<body>connectionPoint->forAll(kind = PseudostateKind::entryPoint or kind = PseudostateKind::exitPoint)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-submachine_states" name="submachine_states">
<constrainedElement xmi:idref="State"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-submachine_states-_ownedComment.0" body="Only submachine States can have connection point references.">
<annotatedElement xmi:idref="State-submachine_states"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-submachine_states-_specification">
<body>isSubmachineState implies connection->notEmpty( )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-composite_states" name="composite_states">
<constrainedElement xmi:idref="State"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-composite_states-_ownedComment.0" body="Only composite States can have entry or exit Pseudostates defined.">
<annotatedElement xmi:idref="State-composite_states"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-composite_states-_specification">
<body>connectionPoint->notEmpty() implies isComposite</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-destinations_or_sources_of_transitions" name="destinations_or_sources_of_transitions">
<constrainedElement xmi:idref="State"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-destinations_or_sources_of_transitions-_ownedComment.0" body="The connection point references used as destinations/sources of Transitions associated with a submachine State must be defined as entry/exit points in the submachine StateMachine.">
<annotatedElement xmi:idref="State-destinations_or_sources_of_transitions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-destinations_or_sources_of_transitions-_specification">
<body>self.isSubmachineState implies (self.connection->forAll (cp | cp.entry->forAll (ps | ps.stateMachine = self.submachine) and cp.exit->forAll (ps | ps.stateMachine = self.submachine)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-submachine_or_regions" name="submachine_or_regions">
<constrainedElement xmi:idref="State"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-submachine_or_regions-_ownedComment.0" body="A State is not allowed to have both a submachine and Regions.">
<annotatedElement xmi:idref="State-submachine_or_regions"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-submachine_or_regions-_specification">
<body>isComposite implies not isSubmachineState</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="State-_generalization.0" general="Namespace"/>
<generalization xmi:type="uml:Generalization" xmi:id="State-_generalization.2" general="Vertex"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-connection" name="connection" aggregation="composite" type="ConnectionPointReference" association="A_connection_state">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-connection-_ownedComment.0" body="The entry and exit connection points used in conjunction with this (submachine) State, i.e., as targets and sources, respectively, in the Region with the submachine State. A connection point reference references the corresponding definition of a connection point Pseudostate in the StateMachine referenced by the submachine State.">
<annotatedElement xmi:idref="State-connection"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-connection-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="State-connection-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-connectionPoint" name="connectionPoint" aggregation="composite" type="Pseudostate" association="A_connectionPoint_state">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-connectionPoint-_ownedComment.0" body="The entry and exit Pseudostates of a composite State. These can only be entry or exit Pseudostates, and they must have different names. They can only be defined for composite States.">
<annotatedElement xmi:idref="State-connectionPoint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-connectionPoint-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="State-connectionPoint-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-deferrableTrigger" name="deferrableTrigger" aggregation="composite" type="Trigger" association="A_deferrableTrigger_state">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-deferrableTrigger-_ownedComment.0" body="A list of Triggers that are candidates to be retained by the StateMachine if they trigger no Transitions out of the State (not consumed). A deferred Trigger is retained until the StateMachine reaches a State configuration where it is no longer deferred.">
<annotatedElement xmi:idref="State-deferrableTrigger"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-deferrableTrigger-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="State-deferrableTrigger-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-doActivity" name="doActivity" aggregation="composite" type="Behavior" association="A_doActivity_state">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-doActivity-_ownedComment.0" body="An optional Behavior that is executed while being in the State. The execution starts when this State is entered, and ceases either by itself when done, or when the State is exited, whichever comes first.">
<annotatedElement xmi:idref="State-doActivity"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-doActivity-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-entry" name="entry" aggregation="composite" type="Behavior" association="A_entry_state">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-entry-_ownedComment.0" body="An optional Behavior that is executed whenever this State is entered regardless of the Transition taken to reach the State. If defined, entry Behaviors are always executed to completion prior to any internal Behavior or Transitions performed within the State.">
<annotatedElement xmi:idref="State-entry"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-entry-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-exit" name="exit" aggregation="composite" type="Behavior" association="A_exit_state">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-exit-_ownedComment.0" body="An optional Behavior that is executed whenever this State is exited regardless of which Transition was taken out of the State. If defined, exit Behaviors are always executed to completion only after all internal and transition Behaviors have completed execution.">
<annotatedElement xmi:idref="State-exit"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-exit-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-isComposite" name="isComposite" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isComposite-_ownedComment.0" body="A state with isComposite=true is said to be a composite State. A composite State is a State that contains at least one Region.">
<annotatedElement xmi:idref="State-isComposite"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-isOrthogonal" name="isOrthogonal" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isOrthogonal-_ownedComment.0" body="A State with isOrthogonal=true is said to be an orthogonal composite State An orthogonal composite State contains two or more Regions.">
<annotatedElement xmi:idref="State-isOrthogonal"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-isSimple" name="isSimple" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isSimple-_ownedComment.0" body="A State with isSimple=true is said to be a simple State A simple State does not have any Regions and it does not refer to any submachine StateMachine.">
<annotatedElement xmi:idref="State-isSimple"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-isSubmachineState" name="isSubmachineState" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isSubmachineState-_ownedComment.0" body="A State with isSubmachineState=true is said to be a submachine State Such a State refers to another StateMachine(submachine).">
<annotatedElement xmi:idref="State-isSubmachineState"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-region" name="region" aggregation="composite" type="Region" association="A_region_state">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-region-_ownedComment.0" body="The Regions owned directly by the State.">
<annotatedElement xmi:idref="State-region"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-region-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="State-region-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-stateInvariant" name="stateInvariant" aggregation="composite" type="Constraint" association="A_stateInvariant_owningState">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-stateInvariant-_ownedComment.0" body="Specifies conditions that are always true when this State is the current State. In ProtocolStateMachines state invariants are additional conditions to the preconditions of the outgoing Transitions, and to the postcondition of the incoming Transitions.">
<annotatedElement xmi:idref="State-stateInvariant"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-stateInvariant-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-submachine" name="submachine" type="StateMachine" association="A_submachineState_submachine">
<ownedComment xmi:type="uml:Comment" xmi:id="State-submachine-_ownedComment.0" body="The StateMachine that is to be inserted in place of the (submachine) State.">
<annotatedElement xmi:idref="State-submachine"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-submachine-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-containingStateMachine" name="containingStateMachine" isQuery="true" bodyCondition="State-containingStateMachine-spec">
<redefinedOperation xmi:idref="Vertex-containingStateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-containingStateMachine-_ownedComment.0" body="The query containingStateMachine() returns the StateMachine that contains the State either directly or transitively.">
<annotatedElement xmi:idref="State-containingStateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-containingStateMachine-spec" name="spec">
<constrainedElement xmi:idref="State-containingStateMachine"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-containingStateMachine-spec-_specification">
<body>result = (container.containingStateMachine())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-containingStateMachine-result" name="result" direction="return" type="StateMachine"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isComposite.1" name="isComposite" isQuery="true" bodyCondition="State-isComposite.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="State-isComposite.1-_ownedComment.0" body="A composite State is a State with at least one Region.">
<annotatedElement xmi:idref="State-isComposite.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isComposite.1-spec" name="spec">
<constrainedElement xmi:idref="State-isComposite.1"/>
<constrainedElement xmi:idref="State-isComposite"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isComposite.1-spec-_specification">
<body>result = (region->notEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isComposite.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="State-isConsistentWith-spec">
<precondition xmi:idref="State-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isConsistentWith-_ownedComment.0" body="The query isConsistentWith specifies that a non-final State can only be redefined by a non-final State (this is overridden by FinalState to allow a FinalState to be redefined by a FinalState) and, if the redefined State is a submachine State, then the redefining State must be a submachine state whose submachine is a redefinition of the submachine of the redefined State. Note that consistency requirements for the redefinition of Regions and connectionPoint Pseudostates within a composite State and connection ConnectionPoints of a submachine State are specified by the isConsistentWith and isRedefinitionContextValid operations for Region and Vertex (and its subclasses, Pseudostate and ConnectionPointReference).">
<annotatedElement xmi:idref="State-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="State-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsTypeOf(State) and let redefiningState : State = redefiningElement.oclAsType(State) in submachine <> null implies (redefiningState.submachine <> null and redefiningState.submachine.extendedStateMachine->includes(submachine)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="State-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isOrthogonal.1" name="isOrthogonal" isQuery="true" bodyCondition="State-isOrthogonal.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="State-isOrthogonal.1-_ownedComment.0" body="An orthogonal State is a composite state with at least 2 regions.">
<annotatedElement xmi:idref="State-isOrthogonal.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isOrthogonal.1-spec" name="spec">
<constrainedElement xmi:idref="State-isOrthogonal.1"/>
<constrainedElement xmi:idref="State-isOrthogonal"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isOrthogonal.1-spec-_specification">
<body>result = (region->size () > 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isOrthogonal.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isSimple.1" name="isSimple" isQuery="true" bodyCondition="State-isSimple.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="State-isSimple.1-_ownedComment.0" body="A simple State is a State without any regions.">
<annotatedElement xmi:idref="State-isSimple.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isSimple.1-spec" name="spec">
<constrainedElement xmi:idref="State-isSimple.1"/>
<constrainedElement xmi:idref="State-isSimple"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isSimple.1-spec-_specification">
<body>result = ((region->isEmpty()) and not isSubmachineState())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isSimple.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isSubmachineState.1" name="isSubmachineState" isQuery="true" bodyCondition="State-isSubmachineState.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="State-isSubmachineState.1-_ownedComment.0" body="Only submachine State references another StateMachine.">
<annotatedElement xmi:idref="State-isSubmachineState.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isSubmachineState.1-spec" name="spec">
<constrainedElement xmi:idref="State-isSubmachineState.1"/>
<constrainedElement xmi:idref="State-isSubmachineState"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isSubmachineState.1-spec-_specification">
<body>result = (submachine <> null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isSubmachineState.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StateMachine" name="StateMachine">
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-_ownedComment.0" body="StateMachines can be used to express event-driven behaviors of parts of a system. Behavior is modeled as a traversal of a graph of Vertices interconnected by one or more joined Transition arcs that are triggered by the dispatching of successive Event occurrences. During this traversal, the StateMachine may execute a sequence of Behaviors associated with various elements of the StateMachine.">
<annotatedElement xmi:idref="StateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-connection_points" name="connection_points">
<constrainedElement xmi:idref="StateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-connection_points-_ownedComment.0" body="The connection points of a StateMachine are Pseudostates of kind entry point or exit point.">
<annotatedElement xmi:idref="StateMachine-connection_points"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-connection_points-_specification">
<body>connectionPoint->forAll (kind = PseudostateKind::entryPoint or kind = PseudostateKind::exitPoint)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-classifier_context" name="classifier_context">
<constrainedElement xmi:idref="StateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-classifier_context-_ownedComment.0" body="The Classifier context of a StateMachine cannot be an Interface.">
<annotatedElement xmi:idref="StateMachine-classifier_context"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-classifier_context-_specification">
<body>_'context' <> null implies not _'context'.oclIsKindOf(Interface)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-method" name="method">
<constrainedElement xmi:idref="StateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-method-_ownedComment.0" body="A StateMachine as the method for a BehavioralFeature cannot have entry/exit connection points.">
<annotatedElement xmi:idref="StateMachine-method"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-method-_specification">
<body>specification <> null implies connectionPoint->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-context_classifier" name="context_classifier">
<constrainedElement xmi:idref="StateMachine"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-context_classifier-_ownedComment.0" body="The context Classifier of the method StateMachine of a BehavioralFeature must be the Classifier that owns the BehavioralFeature.">
<annotatedElement xmi:idref="StateMachine-context_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-context_classifier-_specification">
<body>specification <> null implies ( _'context' <> null and specification.featuringClassifier->exists(c | c = _'context'))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StateMachine-_generalization.0" general="Behavior"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateMachine-connectionPoint" name="connectionPoint" aggregation="composite" type="Pseudostate" association="A_connectionPoint_stateMachine">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-connectionPoint-_ownedComment.0" body="The connection points defined for this StateMachine. They represent the interface of the StateMachine when used as part of submachine State">
<annotatedElement xmi:idref="StateMachine-connectionPoint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StateMachine-connectionPoint-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StateMachine-connectionPoint-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateMachine-extendedStateMachine" name="extendedStateMachine" type="StateMachine" association="A_extendedStateMachine_stateMachine">
<redefinedProperty xmi:idref="Behavior-redefinedBehavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-extendedStateMachine-_ownedComment.0" body="The StateMachines of which this is an extension.">
<annotatedElement xmi:idref="StateMachine-extendedStateMachine"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StateMachine-extendedStateMachine-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StateMachine-extendedStateMachine-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateMachine-region" name="region" aggregation="composite" type="Region" association="A_region_stateMachine">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-region-_ownedComment.0" body="The Regions owned directly by the StateMachine.">
<annotatedElement xmi:idref="StateMachine-region"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StateMachine-region-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateMachine-submachineState" name="submachineState" type="State" association="A_submachineState_submachine">
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-submachineState-_ownedComment.0" body="References the submachine(s) in case of a submachine State. Multiple machines are referenced in case of a concurrent State.">
<annotatedElement xmi:idref="StateMachine-submachineState"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StateMachine-submachineState-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StateMachine-submachineState-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="StateMachine-LCA" name="LCA" isQuery="true" bodyCondition="StateMachine-LCA-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-LCA-_ownedComment.0" body="The operation LCA(s1,s2) returns the Region that is the least common ancestor of Vertices s1 and s2, based on the StateMachine containment hierarchy.">
<annotatedElement xmi:idref="StateMachine-LCA"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-LCA-spec" name="spec">
<constrainedElement xmi:idref="StateMachine-LCA"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-LCA-spec-_specification">
<body>result = (if ancestor(s1, s2) then s2.container else if ancestor(s2, s1) then s1.container else LCA(s1.container.state, s2.container.state) endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCA-result" name="result" direction="return" type="Region"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCA-s1" name="s1" type="Vertex"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCA-s2" name="s2" type="Vertex"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StateMachine-ancestor" name="ancestor" isQuery="true" bodyCondition="StateMachine-ancestor-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-ancestor-_ownedComment.0" body="The query ancestor(s1, s2) checks whether Vertex s2 is an ancestor of Vertex s1.">
<annotatedElement xmi:idref="StateMachine-ancestor"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-ancestor-spec" name="spec">
<constrainedElement xmi:idref="StateMachine-ancestor"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-ancestor-spec-_specification">
<body>result = (if (s2 = s1) then true else if s1.container.stateMachine->notEmpty() then true else if s2.container.stateMachine->notEmpty() then false else ancestor(s1, s2.container.state) endif endif endif )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-ancestor-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-ancestor-s1" name="s1" type="Vertex"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-ancestor-s2" name="s2" type="Vertex"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StateMachine-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="StateMachine-isConsistentWith-spec">
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-isConsistentWith-_ownedComment.0" body="The query isConsistentWith specifies that a StateMachine can be redefined by any other StateMachine for which the redefinition context is valid (see the isRedefinitionContextValid operation). Note that consistency requirements for the redefinition of Regions and connectionPoint Pseudostates owned by a StateMachine are specified by the isConsistentWith and isRedefinitionContextValid operations for Region and Vertex (and its subclass Pseudostate).">
<annotatedElement xmi:idref="StateMachine-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="StateMachine-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-isConsistentWith-spec-_specification">
<body>result = true</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StateMachine-isRedefinitionContextValid" name="isRedefinitionContextValid" isQuery="true" bodyCondition="StateMachine-isRedefinitionContextValid-spec">
<redefinedOperation xmi:idref="RedefinableElement-isRedefinitionContextValid"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-isRedefinitionContextValid-_ownedComment.0" body="The query isRedefinitionContextValid specifies whether the redefinition context of a StateMachine is properly related to the redefinition contexts of a StateMachine it redefines. The requirement is that the context BehavioredClassifier of a redefining StateMachine must specialize the context Classifier of the redefined StateMachine. If the redefining StateMachine does not have a context BehavioredClassifier, then then the redefining StateMachine also must not have a context BehavioredClassifier but must, instead, specialize the redefining StateMachine.">
<annotatedElement xmi:idref="StateMachine-isRedefinitionContextValid"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-isRedefinitionContextValid-spec" name="spec">
<constrainedElement xmi:idref="StateMachine-isRedefinitionContextValid"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-isRedefinitionContextValid-spec-_specification">
<body>result = (redefinedElement.oclIsKindOf(StateMachine) and let parentContext : BehavioredClassifier = redefinedElement.oclAsType(StateMachine).context in if context = null then parentContext = null and self.allParents()→includes(redefinedElement) else parentContext <> null and context.allParents()->includes(parentContext) endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-isRedefinitionContextValid-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-isRedefinitionContextValid-redefinedElement" name="redefinedElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StateMachine-LCAState" name="LCAState" isQuery="true" bodyCondition="StateMachine-LCAState-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StateMachine-LCAState-_ownedComment.0" body="This utility funciton is like the LCA, except that it returns the nearest composite State that contains both input Vertices.">
<annotatedElement xmi:idref="StateMachine-LCAState"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StateMachine-LCAState-spec" name="spec">
<constrainedElement xmi:idref="StateMachine-LCAState"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StateMachine-LCAState-spec-_specification">
<body>result = (if v2.oclIsTypeOf(State) and ancestor(v1, v2) then v2.oclAsType(State) else if v1.oclIsTypeOf(State) and ancestor(v2, v1) then v1.oclAsType(State) else if (v1.container.state->isEmpty() or v2.container.state->isEmpty()) then null.oclAsType(State) else LCAState(v1.container.state, v2.container.state) endif endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCAState-result" name="result" direction="return" type="State"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCAState-v1" name="v1" type="Vertex"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StateMachine-LCAState-v2" name="v2" type="Vertex"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Transition" name="Transition">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-_ownedComment.0" body="A Transition represents an arc between exactly one source Vertex and exactly one Target vertex (the source and targets may be the same Vertex). It may form part of a compound transition, which takes the StateMachine from one steady State configuration to another, representing the full response of the StateMachine to an occurrence of an Event that triggered it.">
<annotatedElement xmi:idref="Transition"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-state_is_external" name="state_is_external">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-state_is_external-_ownedComment.0" body="A Transition with kind external can source any Vertex except entry points.">
<annotatedElement xmi:idref="Transition-state_is_external"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-state_is_external-_specification">
<body>(kind = TransitionKind::external) implies not (source.oclIsKindOf(Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-join_segment_guards" name="join_segment_guards">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-join_segment_guards-_ownedComment.0" body="A join segment must not have Guards or Triggers.">
<annotatedElement xmi:idref="Transition-join_segment_guards"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-join_segment_guards-_specification">
<body>(target.oclIsKindOf(Pseudostate) and target.oclAsType(Pseudostate).kind = PseudostateKind::join) implies (guard = null and trigger->isEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-state_is_internal" name="state_is_internal">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-state_is_internal-_ownedComment.0" body="A Transition with kind internal must have a State as its source, and its source and target must be equal.">
<annotatedElement xmi:idref="Transition-state_is_internal"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-state_is_internal-_specification">
<body>(kind = TransitionKind::internal) implies (source.oclIsKindOf (State) and source = target)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-outgoing_pseudostates" name="outgoing_pseudostates">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-outgoing_pseudostates-_ownedComment.0" body="Transitions outgoing Pseudostates may not have a Trigger.">
<annotatedElement xmi:idref="Transition-outgoing_pseudostates"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-outgoing_pseudostates-_specification">
<body>source.oclIsKindOf(Pseudostate) and (source.oclAsType(Pseudostate).kind <> PseudostateKind::initial) implies trigger->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-join_segment_state" name="join_segment_state">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-join_segment_state-_ownedComment.0" body="A join segment must always originate from a State.">
<annotatedElement xmi:idref="Transition-join_segment_state"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-join_segment_state-_specification">
<body>(target.oclIsKindOf(Pseudostate) and target.oclAsType(Pseudostate).kind = PseudostateKind::join) implies (source.oclIsKindOf(State))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-fork_segment_state" name="fork_segment_state">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-fork_segment_state-_ownedComment.0" body="A fork segment must always target a State.">
<annotatedElement xmi:idref="Transition-fork_segment_state"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-fork_segment_state-_specification">
<body>(source.oclIsKindOf(Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::fork) implies (target.oclIsKindOf(State))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-state_is_local" name="state_is_local">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-state_is_local-_ownedComment.0" body="A Transition with kind local must have a composite State or an entry point as its source.">
<annotatedElement xmi:idref="Transition-state_is_local"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-state_is_local-_specification">
<body>(kind = TransitionKind::local) implies ((source.oclIsKindOf (State) and source.oclAsType(State).isComposite) or (source.oclIsKindOf (Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-initial_transition" name="initial_transition">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-initial_transition-_ownedComment.0" body="An initial Transition at the topmost level Region of a StateMachine that has no Trigger.">
<annotatedElement xmi:idref="Transition-initial_transition"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-initial_transition-_specification">
<body>(source.oclIsKindOf(Pseudostate) and container.stateMachine->notEmpty()) implies trigger->isEmpty() </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-fork_segment_guards" name="fork_segment_guards">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-fork_segment_guards-_ownedComment.0" body="A fork segment must not have Guards or Triggers.">
<annotatedElement xmi:idref="Transition-fork_segment_guards"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-fork_segment_guards-_specification">
<body>(source.oclIsKindOf(Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::fork) implies (guard = null and trigger->isEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-transition_vertices" name="transition_vertices">
<constrainedElement xmi:idref="Transition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-transition_vertices-_ownedComment.0" body="The source and target Vertices of a Transition must be contained in the same StateMachine as the Transition.">
<annotatedElement xmi:idref="Transition-transition_vertices"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-transition_vertices-_specification">
<body>let stateMachine = self.containingStateMachine() in source.containingStateMachine() = stateMachine and target.containingStateMachine() = stateMachine</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Transition-_generalization.0" general="Namespace"/>
<generalization xmi:type="uml:Generalization" xmi:id="Transition-_generalization.1" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-container" name="container" type="Region" association="A_transition_container">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-container-_ownedComment.0" body="Designates the Region that owns this Transition.">
<annotatedElement xmi:idref="Transition-container"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-effect" name="effect" aggregation="composite" type="Behavior" association="A_effect_transition">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-effect-_ownedComment.0" body="Specifies an optional behavior to be performed when the Transition fires.">
<annotatedElement xmi:idref="Transition-effect"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Transition-effect-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-guard" name="guard" aggregation="composite" type="Constraint" association="A_guard_transition">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-guard-_ownedComment.0" body="A guard is a Constraint that provides a fine-grained control over the firing of the Transition. The guard is evaluated when an Event occurrence is dispatched by the StateMachine. If the guard is true at that time, the Transition may be enabled, otherwise, it is disabled. Guards should be pure expressions without side effects. Guard expressions with side effects are ill formed.">
<annotatedElement xmi:idref="Transition-guard"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Transition-guard-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-kind" name="kind" type="TransitionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-kind-_ownedComment.0" body="Indicates the precise type of the Transition.">
<annotatedElement xmi:idref="Transition-kind"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="Transition-kind-_defaultValue" type="TransitionKind" instance="TransitionKind-external"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-redefinedTransition" name="redefinedTransition" type="Transition" association="A_redefinedTransition_transition">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-redefinedTransition-_ownedComment.0" body="The Transition that is redefined by this Transition.">
<annotatedElement xmi:idref="Transition-redefinedTransition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Transition-redefinedTransition-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-redefinitionContext" name="redefinitionContext" isReadOnly="true" isDerived="true" type="Classifier" association="A_redefinitionContext_transition">
<redefinedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-redefinitionContext-_ownedComment.0" body="References the Classifier in which context this element may be redefined.">
<annotatedElement xmi:idref="Transition-redefinitionContext"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-source" name="source" type="Vertex" association="A_outgoing_source_vertex">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-source-_ownedComment.0" body="Designates the originating Vertex (State or Pseudostate) of the Transition.">
<annotatedElement xmi:idref="Transition-source"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-target" name="target" type="Vertex" association="A_incoming_target_vertex">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-target-_ownedComment.0" body="Designates the target Vertex that is reached when the Transition is taken.">
<annotatedElement xmi:idref="Transition-target"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Transition-trigger" name="trigger" aggregation="composite" type="Trigger" association="A_trigger_transition">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-trigger-_ownedComment.0" body="Specifies the Triggers that may fire the transition.">
<annotatedElement xmi:idref="Transition-trigger"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Transition-trigger-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Transition-trigger-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Transition-containingStateMachine" name="containingStateMachine" isQuery="true" bodyCondition="Transition-containingStateMachine-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-containingStateMachine-_ownedComment.0" body="The query containingStateMachine() returns the StateMachine that contains the Transition either directly or transitively.">
<annotatedElement xmi:idref="Transition-containingStateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-containingStateMachine-spec" name="spec">
<constrainedElement xmi:idref="Transition-containingStateMachine"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-containingStateMachine-spec-_specification">
<body>result = (container.containingStateMachine())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Transition-containingStateMachine-result" name="result" direction="return" type="StateMachine"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Transition-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="Transition-isConsistentWith-spec">
<precondition xmi:idref="Transition-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-isConsistentWith-_ownedComment.0" body="The query isConsistentWith specifies that a redefining Transition is consistent with a redefined Transition provided that the source Vertex of the redefining Transition redefines the source Vertex of the redefined Transition.">
<annotatedElement xmi:idref="Transition-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="Transition-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(Transition) and redefiningElement.oclAsType(Transition).source.redefinedTransition = source)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="Transition-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Transition-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Transition-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Transition-redefinitionContext.1" name="redefinitionContext" isQuery="true" bodyCondition="Transition-redefinitionContext.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Transition-redefinitionContext.1-_ownedComment.0" body="The redefinition context of a Transition is the nearest containing StateMachine.">
<annotatedElement xmi:idref="Transition-redefinitionContext.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Transition-redefinitionContext.1-spec" name="spec">
<constrainedElement xmi:idref="Transition-redefinitionContext.1"/>
<constrainedElement xmi:idref="Transition-redefinitionContext"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Transition-redefinitionContext.1-spec-_specification">
<body>result = containingStateMachine()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Transition-redefinitionContext.1-result" name="result" direction="return" type="Classifier"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Vertex" name="Vertex" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-_ownedComment.0" body="A Vertex is an abstraction of a node in a StateMachine graph. It can be the source or destination of any number of Transitions.">
<annotatedElement xmi:idref="Vertex"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Vertex-_generalization.0" general="NamedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Vertex-_generalization.1" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Vertex-container" name="container" type="Region" association="A_subvertex_container">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-container-_ownedComment.0" body="The Region that contains this Vertex.">
<annotatedElement xmi:idref="Vertex-container"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Vertex-container-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Vertex-incoming" name="incoming" isReadOnly="true" isDerived="true" type="Transition" association="A_incoming_target_vertex">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-incoming-_ownedComment.0" body="Specifies the Transitions entering this Vertex.">
<annotatedElement xmi:idref="Vertex-incoming"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Vertex-incoming-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Vertex-incoming-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Vertex-outgoing" name="outgoing" isReadOnly="true" isDerived="true" type="Transition" association="A_outgoing_source_vertex">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-outgoing-_ownedComment.0" body="Specifies the Transitions departing from this Vertex.">
<annotatedElement xmi:idref="Vertex-outgoing"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Vertex-outgoing-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Vertex-outgoing-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-redefinitionContext" name="redefinitionContext" isReadOnly="true" isDerived="true" type="Classifier" association="A_redefinitionContext_state">
<redefinedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-redefinitionContext-_ownedComment.0" body="References the Classifier in which context this element may be redefined.">
<annotatedElement xmi:idref="State-redefinitionContext"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="State-redefinedState" name="redefinedVertex" type="Vertex" association="A_redefinedState_state">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-redefinedState-_ownedComment.0" body="The Vertex of which this Vertex is a redefinition.">
<annotatedElement xmi:idref="State-redefinedState"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="State-redefinedState-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Vertex-containingStateMachine" name="containingStateMachine" isQuery="true" bodyCondition="Vertex-containingStateMachine-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-containingStateMachine-_ownedComment.0" body="The operation containingStateMachine() returns the StateMachine in which this Vertex is defined.">
<annotatedElement xmi:idref="Vertex-containingStateMachine"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Vertex-containingStateMachine-spec" name="spec">
<constrainedElement xmi:idref="Vertex-containingStateMachine"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Vertex-containingStateMachine-spec-_specification">
<body>result = (if container <> null then -- the container is a region container.containingStateMachine() else if (self.oclIsKindOf(Pseudostate)) and ((self.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint) or (self.oclAsType(Pseudostate).kind = PseudostateKind::exitPoint)) then self.oclAsType(Pseudostate).stateMachine else if (self.oclIsKindOf(ConnectionPointReference)) then self.oclAsType(ConnectionPointReference).state.containingStateMachine() -- no other valid cases possible else null endif endif endif )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-containingStateMachine-result" name="result" direction="return" type="StateMachine"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Vertex-incoming.1" name="incoming" isQuery="true" bodyCondition="Vertex-incoming.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-incoming.1-_ownedComment.0" body="Derivation for Vertex::/incoming.">
<annotatedElement xmi:idref="Vertex-incoming.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Vertex-incoming.1-spec" name="spec">
<constrainedElement xmi:idref="Vertex-incoming.1"/>
<constrainedElement xmi:idref="Vertex-incoming"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Vertex-incoming.1-spec-_specification">
<body>result = (Transition.allInstances()->select(target=self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-incoming.1-result" name="result" direction="return" type="Transition">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Vertex-incoming.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Vertex-incoming.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Vertex-outgoing.1" name="outgoing" isQuery="true" bodyCondition="Vertex-outgoing.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-outgoing.1-_ownedComment.0" body="Derivation for Vertex::/outgoing">
<annotatedElement xmi:idref="Vertex-outgoing.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Vertex-outgoing.1-spec" name="spec">
<constrainedElement xmi:idref="Vertex-outgoing.1"/>
<constrainedElement xmi:idref="Vertex-outgoing"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Vertex-outgoing.1-spec-_specification">
<body>result = (Transition.allInstances()->select(source=self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-outgoing.1-result" name="result" direction="return" type="Transition">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Vertex-outgoing.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Vertex-outgoing.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Vertex-isContainedInState" name="isContainedInState" isQuery="true" bodyCondition="Vertex-isContainedInState-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-isContainedInState-_ownedComment.0" body="This utility operation returns true if the Vertex is contained in the State s (input argument).">
<annotatedElement xmi:idref="Vertex-isContainedInState"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Vertex-isContainedInState-spec" name="spec">
<constrainedElement xmi:idref="Vertex-isContainedInState"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Vertex-isContainedInState-spec-_specification">
<body>result = (if not s.isComposite() or container->isEmpty() then false else if container.state = s then true else container.state.isContainedInState(s) endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-isContainedInState-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-isContainedInState-s" name="s" type="State"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Vertex-isContainedInRegion" name="isContainedInRegion" isQuery="true" bodyCondition="Vertex-isContainedInRegion-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Vertex-isContainedInRegion-_ownedComment.0" body="This utility query returns true if the Vertex is contained in the Region r (input argument).">
<annotatedElement xmi:idref="Vertex-isContainedInRegion"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Vertex-isContainedInRegion-spec" name="spec">
<constrainedElement xmi:idref="Vertex-isContainedInRegion"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Vertex-isContainedInRegion-spec-_specification">
<body>result = (if (container = r) then true else if (r.state->isEmpty()) then false else container.state.isContainedInRegion(r) endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-isContainedInRegion-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Vertex-isContainedInRegion-r" name="r" type="Region"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-redefinitionContext.1" name="redefinitionContext" isQuery="true" bodyCondition="State-redefinitionContext.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="State-redefinitionContext.1-_ownedComment.0" body="The redefinition context of a Vertex is the nearest containing StateMachine.">
<annotatedElement xmi:idref="State-redefinitionContext.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-redefinitionContext.1-spec" name="spec">
<constrainedElement xmi:idref="State-redefinitionContext.1"/>
<constrainedElement xmi:idref="State-redefinitionContext"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-redefinitionContext.1-spec-_specification">
<body>result = containingStateMachine()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-redefinitionContext.1-result" name="result" direction="return" type="Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="State-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="State-isConsistentWith-spec">
<precondition xmi:idref="State-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="State-isConsistentWith-_ownedComment.0" body="The query isRedefinitionContextValid specifies that the redefinition context of a redefining Vertex is properly related to the redefinition context of the redefined Vertex if the owner of the redefining Vertex is a redefinition of the owner of the redefined Vertex. Note that the owner of a Vertex may be a Region, a StateMachine (for a connectionPoint Pseudostate), or a State (for a connectionPoint Pseudostate or a connection ConnectionPointReference), all of which are RedefinableElements.">
<annotatedElement xmi:idref="State-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="State-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="State-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="State-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="State-isConsistentWith-spec-_specification">
<body>result = (redefinedElement.oclIsKindOf(Vertex) and owner.oclAsType(RedefinableElement).redefinedElement->includes(redefinedElement.owner))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="State-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="PseudostateKind" name="PseudostateKind">
<ownedComment xmi:type="uml:Comment" xmi:id="PseudostateKind-_ownedComment.0" body="PseudostateKind is an Enumeration type that is used to differentiate various kinds of Pseudostates.">
<annotatedElement xmi:idref="PseudostateKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-initial" name="initial"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-deepHistory" name="deepHistory"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-shallowHistory" name="shallowHistory"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-join" name="join"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-fork" name="fork"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-junction" name="junction"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-choice" name="choice"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-entryPoint" name="entryPoint"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-exitPoint" name="exitPoint"/>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="PseudostateKind-terminate" name="terminate"/>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="TransitionKind" name="TransitionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="TransitionKind-_ownedComment.0" body="TransitionKind is an Enumeration type used to differentiate the various kinds of Transitions.">
<annotatedElement xmi:idref="TransitionKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="TransitionKind-internal" name="internal">
<ownedComment xmi:type="uml:Comment" xmi:id="TransitionKind-internal-_ownedComment.0" body="Implies that the Transition, if triggered, occurs without exiting or entering the source State (i.e., it does not cause a state change). This means that the entry or exit condition of the source State will not be invoked. An internal Transition can be taken even if the SateMachine is in one or more Regions nested within the associated State.">
<annotatedElement xmi:idref="TransitionKind-internal"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="TransitionKind-local" name="local">
<ownedComment xmi:type="uml:Comment" xmi:id="TransitionKind-local-_ownedComment.0" body="Implies that the Transition, if triggered, will not exit the composite (source) State, but it will exit and re-enter any state within the composite State that is in the current state configuration.">
<annotatedElement xmi:idref="TransitionKind-local"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="TransitionKind-external" name="external">
<ownedComment xmi:type="uml:Comment" xmi:id="TransitionKind-external-_ownedComment.0" body="Implies that the Transition, if triggered, will exit the composite (source) State.">
<annotatedElement xmi:idref="TransitionKind-external"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_incoming_target_vertex" name="A_incoming_target_vertex">
<memberEnd xmi:idref="Vertex-incoming"/>
<memberEnd xmi:idref="Transition-target"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_outgoing_source_vertex" name="A_outgoing_source_vertex">
<memberEnd xmi:idref="Vertex-outgoing"/>
<memberEnd xmi:idref="Transition-source"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_trigger_transition" name="A_trigger_transition">
<memberEnd xmi:idref="Transition-trigger"/>
<memberEnd xmi:idref="A_trigger_transition-transition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_trigger_transition-transition" name="transition" type="Transition" association="A_trigger_transition">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_trigger_transition-transition-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_guard_transition" name="A_guard_transition">
<memberEnd xmi:idref="Transition-guard"/>
<memberEnd xmi:idref="A_guard_transition-transition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_guard_transition-transition" name="transition" type="Transition" association="A_guard_transition">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_guard_transition-transition-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedTransition_transition" name="A_redefinedTransition_transition">
<memberEnd xmi:idref="Transition-redefinedTransition"/>
<memberEnd xmi:idref="A_redefinedTransition_transition-transition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedTransition_transition-transition" name="transition" type="Transition" association="A_redefinedTransition_transition">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedTransition_transition-transition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedTransition_transition-transition-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinitionContext_transition" name="A_redefinitionContext_transition" isDerived="true">
<memberEnd xmi:idref="Transition-redefinitionContext"/>
<memberEnd xmi:idref="A_redefinitionContext_transition-transition"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_redefinitionContext_transition-_generalization.0" general="A_redefinitionContext_redefinableElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinitionContext_transition-transition" name="transition" type="Transition" association="A_redefinitionContext_transition">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinitionContext_transition-transition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinitionContext_transition-transition-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_effect_transition" name="A_effect_transition">
<memberEnd xmi:idref="Transition-effect"/>
<memberEnd xmi:idref="A_effect_transition-transition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_effect_transition-transition" name="transition" type="Transition" association="A_effect_transition">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_effect_transition-transition-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_submachineState_submachine" name="A_submachineState_submachine">
<memberEnd xmi:idref="StateMachine-submachineState"/>
<memberEnd xmi:idref="State-submachine"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_connectionPoint_stateMachine" name="A_connectionPoint_stateMachine">
<memberEnd xmi:idref="StateMachine-connectionPoint"/>
<memberEnd xmi:idref="Pseudostate-stateMachine"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_region_stateMachine" name="A_region_stateMachine">
<memberEnd xmi:idref="StateMachine-region"/>
<memberEnd xmi:idref="Region-stateMachine"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extendedStateMachine_stateMachine" name="A_extendedStateMachine_stateMachine">
<memberEnd xmi:idref="StateMachine-extendedStateMachine"/>
<memberEnd xmi:idref="A_extendedStateMachine_stateMachine-stateMachine"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_extendedStateMachine_stateMachine-stateMachine" name="stateMachine" type="StateMachine" association="A_extendedStateMachine_stateMachine">
<subsettedProperty xmi:idref="A_redefinedBehavior_behavior-behavior"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_extendedStateMachine_stateMachine-stateMachine-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_extendedStateMachine_stateMachine-stateMachine-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinitionContext_state" name="A_redefinitionContext_vertex" isDerived="true">
<memberEnd xmi:idref="State-redefinitionContext"/>
<memberEnd xmi:idref="A_redefinitionContext_state-state"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_redefinitionContext_state-_generalization.0" general="A_redefinitionContext_redefinableElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinitionContext_state-state" name="vertex" type="Vertex" association="A_redefinitionContext_state">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinitionContext_state-state-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinitionContext_state-state-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_region_state" name="A_region_state">
<memberEnd xmi:idref="State-region"/>
<memberEnd xmi:idref="Region-state"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_stateInvariant_owningState" name="A_stateInvariant_owningState">
<memberEnd xmi:idref="State-stateInvariant"/>
<memberEnd xmi:idref="A_stateInvariant_owningState-owningState"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_stateInvariant_owningState-owningState" name="owningState" type="State" association="A_stateInvariant_owningState">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_stateInvariant_owningState-owningState-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedState_state" name="A_redefinedVertex_vertex">
<memberEnd xmi:idref="State-redefinedState"/>
<memberEnd xmi:idref="A_redefinedState_state-state"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedState_state-state" name="vertex" type="Vertex" association="A_redefinedState_state">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedState_state-state-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedState_state-state-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_deferrableTrigger_state" name="A_deferrableTrigger_state">
<memberEnd xmi:idref="State-deferrableTrigger"/>
<memberEnd xmi:idref="A_deferrableTrigger_state-state"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_deferrableTrigger_state-state" name="state" type="State" association="A_deferrableTrigger_state">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_deferrableTrigger_state-state-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_connection_state" name="A_connection_state">
<memberEnd xmi:idref="State-connection"/>
<memberEnd xmi:idref="ConnectionPointReference-state"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_entry_state" name="A_entry_state">
<memberEnd xmi:idref="State-entry"/>
<memberEnd xmi:idref="A_entry_state-state"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_entry_state-state" name="state" type="State" association="A_entry_state">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_entry_state-state-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_connectionPoint_state" name="A_connectionPoint_state">
<memberEnd xmi:idref="State-connectionPoint"/>
<memberEnd xmi:idref="Pseudostate-state"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_doActivity_state" name="A_doActivity_state">
<memberEnd xmi:idref="State-doActivity"/>
<memberEnd xmi:idref="A_doActivity_state-state"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_doActivity_state-state" name="state" type="State" association="A_doActivity_state">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_doActivity_state-state-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_exit_state" name="A_exit_state">
<memberEnd xmi:idref="State-exit"/>
<memberEnd xmi:idref="A_exit_state-state"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_exit_state-state" name="state" type="State" association="A_exit_state">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_exit_state-state-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extendedRegion_region" name="A_extendedRegion_region">
<memberEnd xmi:idref="Region-extendedRegion"/>
<memberEnd xmi:idref="A_extendedRegion_region-region"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_extendedRegion_region-region" name="region" type="Region" association="A_extendedRegion_region">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_extendedRegion_region-region-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_extendedRegion_region-region-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subvertex_container" name="A_subvertex_container">
<memberEnd xmi:idref="Region-subvertex"/>
<memberEnd xmi:idref="Vertex-container"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinitionContext_region" name="A_redefinitionContext_region" isDerived="true">
<memberEnd xmi:idref="Region-redefinitionContext"/>
<memberEnd xmi:idref="A_redefinitionContext_region-region"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_redefinitionContext_region-_generalization.0" general="A_redefinitionContext_redefinableElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinitionContext_region-region" name="region" type="Region" association="A_redefinitionContext_region">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinitionContext_region-region-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinitionContext_region-region-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_transition_container" name="A_transition_container">
<memberEnd xmi:idref="Region-transition"/>
<memberEnd xmi:idref="Transition-container"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_referred_protocolTransition" name="A_referred_protocolTransition" isDerived="true">
<memberEnd xmi:idref="ProtocolTransition-referred"/>
<memberEnd xmi:idref="A_referred_protocolTransition-protocolTransition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_referred_protocolTransition-protocolTransition" name="protocolTransition" type="ProtocolTransition" association="A_referred_protocolTransition">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_referred_protocolTransition-protocolTransition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_referred_protocolTransition-protocolTransition-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_preCondition_protocolTransition" name="A_preCondition_protocolTransition">
<memberEnd xmi:idref="ProtocolTransition-preCondition"/>
<memberEnd xmi:idref="A_preCondition_protocolTransition-protocolTransition"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_preCondition_protocolTransition-_generalization.0" general="A_guard_transition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_preCondition_protocolTransition-protocolTransition" name="protocolTransition" type="ProtocolTransition" association="A_preCondition_protocolTransition">
<redefinedProperty xmi:idref="A_guard_transition-transition"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_preCondition_protocolTransition-protocolTransition-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_postCondition_owningTransition" name="A_postCondition_owningTransition">
<memberEnd xmi:idref="ProtocolTransition-postCondition"/>
<memberEnd xmi:idref="A_postCondition_owningTransition-owningTransition"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_postCondition_owningTransition-owningTransition" name="owningTransition" type="ProtocolTransition" association="A_postCondition_owningTransition">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_postCondition_owningTransition-owningTransition-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_conformance_specificMachine" name="A_conformance_specificMachine">
<memberEnd xmi:idref="ProtocolStateMachine-conformance"/>
<memberEnd xmi:idref="ProtocolConformance-specificMachine"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_generalMachine_protocolConformance" name="A_generalMachine_protocolConformance">
<memberEnd xmi:idref="ProtocolConformance-generalMachine"/>
<memberEnd xmi:idref="A_generalMachine_protocolConformance-protocolConformance"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_generalMachine_protocolConformance-protocolConformance" name="protocolConformance" type="ProtocolConformance" association="A_generalMachine_protocolConformance">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_generalMachine_protocolConformance-protocolConformance-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_generalMachine_protocolConformance-protocolConformance-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_entry_connectionPointReference" name="A_entry_connectionPointReference">
<memberEnd xmi:idref="ConnectionPointReference-entry"/>
<memberEnd xmi:idref="A_entry_connectionPointReference-connectionPointReference"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_entry_connectionPointReference-connectionPointReference" name="connectionPointReference" type="ConnectionPointReference" association="A_entry_connectionPointReference">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_entry_connectionPointReference-connectionPointReference-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_exit_connectionPointReference" name="A_exit_connectionPointReference">
<memberEnd xmi:idref="ConnectionPointReference-exit"/>
<memberEnd xmi:idref="A_exit_connectionPointReference-connectionPointReference"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_exit_connectionPointReference-connectionPointReference" name="connectionPointReference" type="ConnectionPointReference" association="A_exit_connectionPointReference">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_exit_connectionPointReference-connectionPointReference-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="SimpleClassifiers" name="SimpleClassifiers">
<packageImport xmi:type="uml:PackageImport" xmi:id="SimpleClassifiers-_packageImport.0" importedPackage="Classification"/>
<packagedElement xmi:type="uml:Class" xmi:id="BehavioredClassifier" name="BehavioredClassifier" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioredClassifier-_ownedComment.0" body="A BehavioredClassifier may have InterfaceRealizations, and owns a set of Behaviors one of which may specify the behavior of the BehavioredClassifier itself.">
<annotatedElement xmi:idref="BehavioredClassifier"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BehavioredClassifier-class_behavior" name="class_behavior">
<constrainedElement xmi:idref="BehavioredClassifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioredClassifier-class_behavior-_ownedComment.0" body="If a behavior is classifier behavior, it does not have a specification.">
<annotatedElement xmi:idref="BehavioredClassifier-class_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BehavioredClassifier-class_behavior-_specification">
<body>classifierBehavior->notEmpty() implies classifierBehavior.specification->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="BehavioredClassifier-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioredClassifier-classifierBehavior" name="classifierBehavior" type="Behavior" association="A_classifierBehavior_behavioredClassifier">
<subsettedProperty xmi:idref="BehavioredClassifier-ownedBehavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioredClassifier-classifierBehavior-_ownedComment.0" body="A Behavior that specifies the behavior of the BehavioredClassifier itself.">
<annotatedElement xmi:idref="BehavioredClassifier-classifierBehavior"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioredClassifier-classifierBehavior-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioredClassifier-interfaceRealization" name="interfaceRealization" aggregation="composite" type="InterfaceRealization" association="A_interfaceRealization_implementingClassifier">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="NamedElement-clientDependency"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioredClassifier-interfaceRealization-_ownedComment.0" body="The set of InterfaceRealizations owned by the BehavioredClassifier. Interface realizations reference the Interfaces of which the BehavioredClassifier is an implementation.">
<annotatedElement xmi:idref="BehavioredClassifier-interfaceRealization"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioredClassifier-interfaceRealization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioredClassifier-interfaceRealization-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioredClassifier-ownedBehavior" name="ownedBehavior" aggregation="composite" type="Behavior" association="A_ownedBehavior_behavioredClassifier">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioredClassifier-ownedBehavior-_ownedComment.0" body="Behaviors owned by a BehavioredClassifier.">
<annotatedElement xmi:idref="BehavioredClassifier-ownedBehavior"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioredClassifier-ownedBehavior-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioredClassifier-ownedBehavior-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DataType" name="DataType">
<ownedComment xmi:type="uml:Comment" xmi:id="DataType-_ownedComment.0" body="A DataType is a type whose instances are identified only by their value.">
<annotatedElement xmi:idref="DataType"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DataType-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DataType-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_datatype">
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DataType-ownedAttribute-_ownedComment.0" body="The attributes owned by the DataType.">
<annotatedElement xmi:idref="DataType-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DataType-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DataType-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DataType-ownedOperation" name="ownedOperation" isOrdered="true" aggregation="composite" type="Operation" association="A_ownedOperation_datatype">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DataType-ownedOperation-_ownedComment.0" body="The Operations owned by the DataType.">
<annotatedElement xmi:idref="DataType-ownedOperation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DataType-ownedOperation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DataType-ownedOperation-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Enumeration" name="Enumeration">
<ownedComment xmi:type="uml:Comment" xmi:id="Enumeration-_ownedComment.0" body="An Enumeration is a DataType whose values are enumerated in the model as EnumerationLiterals.">
<annotatedElement xmi:idref="Enumeration"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Enumeration-immutable" name="immutable">
<constrainedElement xmi:idref="Enumeration"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Enumeration-immutable-_specification">
<body>ownedAttribute->forAll(isReadOnly)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Enumeration-_generalization.0" general="DataType"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Enumeration-ownedLiteral" name="ownedLiteral" isOrdered="true" aggregation="composite" type="EnumerationLiteral" association="A_ownedLiteral_enumeration">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Enumeration-ownedLiteral-_ownedComment.0" body="The ordered set of literals owned by this Enumeration.">
<annotatedElement xmi:idref="Enumeration-ownedLiteral"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Enumeration-ownedLiteral-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Enumeration-ownedLiteral-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="EnumerationLiteral" name="EnumerationLiteral">
<ownedComment xmi:type="uml:Comment" xmi:id="EnumerationLiteral-_ownedComment.0" body="An EnumerationLiteral is a user-defined data value for an Enumeration.">
<annotatedElement xmi:idref="EnumerationLiteral"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="EnumerationLiteral-_generalization.0" general="InstanceSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="EnumerationLiteral-classifier" name="classifier" isReadOnly="true" isDerived="true" type="Enumeration" association="A_classifier_enumerationLiteral">
<redefinedProperty xmi:idref="InstanceSpecification-classifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="EnumerationLiteral-classifier-_ownedComment.0" body="The classifier of this EnumerationLiteral derived to be equal to its Enumeration.">
<annotatedElement xmi:idref="EnumerationLiteral-classifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="EnumerationLiteral-enumeration" name="enumeration" type="Enumeration" association="A_ownedLiteral_enumeration">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="EnumerationLiteral-enumeration-_ownedComment.0" body="The Enumeration that this EnumerationLiteral is a member of.">
<annotatedElement xmi:idref="EnumerationLiteral-enumeration"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="EnumerationLiteral-classifier.1" name="classifier" isQuery="true" bodyCondition="EnumerationLiteral-classifier.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="EnumerationLiteral-classifier.1-_ownedComment.0" body="Derivation of Enumeration::/classifier">
<annotatedElement xmi:idref="EnumerationLiteral-classifier.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="EnumerationLiteral-classifier.1-spec" name="spec">
<constrainedElement xmi:idref="EnumerationLiteral-classifier.1"/>
<constrainedElement xmi:idref="EnumerationLiteral-classifier"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="EnumerationLiteral-classifier.1-spec-_specification">
<body>result = (enumeration)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="EnumerationLiteral-classifier.1-result" name="result" direction="return" type="Enumeration"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Interface" name="Interface">
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-_ownedComment.0" body="Interfaces declare coherent services that are implemented by BehavioredClassifiers that implement the Interfaces via InterfaceRealizations.">
<annotatedElement xmi:idref="Interface"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Interface-visibility" name="visibility">
<constrainedElement xmi:idref="Interface"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-visibility-_ownedComment.0" body="The visibility of all Features owned by an Interface must be public.">
<annotatedElement xmi:idref="Interface-visibility"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Interface-visibility-_specification">
<body>feature->forAll(visibility = VisibilityKind::public)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Interface-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-nestedClassifier" name="nestedClassifier" isOrdered="true" aggregation="composite" type="Classifier" association="A_nestedClassifier_interface">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-nestedClassifier-_ownedComment.0" body="References all the Classifiers that are defined (nested) within the Interface.">
<annotatedElement xmi:idref="Interface-nestedClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-nestedClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interface-nestedClassifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_interface">
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-ownedAttribute-_ownedComment.0" body="The attributes (i.e., the Properties) owned by the Interface.">
<annotatedElement xmi:idref="Interface-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interface-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-ownedOperation" name="ownedOperation" isOrdered="true" aggregation="composite" type="Operation" association="A_ownedOperation_interface">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-ownedOperation-_ownedComment.0" body="The Operations owned by the Interface.">
<annotatedElement xmi:idref="Interface-ownedOperation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-ownedOperation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interface-ownedOperation-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-ownedReception" name="ownedReception" aggregation="composite" type="Reception" association="A_ownedReception_interface">
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-ownedReception-_ownedComment.0" body="Receptions that objects providing this Interface are willing to accept.">
<annotatedElement xmi:idref="Interface-ownedReception"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-ownedReception-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interface-ownedReception-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-protocol" name="protocol" aggregation="composite" type="ProtocolStateMachine" association="A_protocol_interface">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-protocol-_ownedComment.0" body="References a ProtocolStateMachine specifying the legal sequences of the invocation of the BehavioralFeatures described in the Interface.">
<annotatedElement xmi:idref="Interface-protocol"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-protocol-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interface-redefinedInterface" name="redefinedInterface" type="Interface" association="A_redefinedInterface_interface">
<subsettedProperty xmi:idref="Classifier-redefinedClassifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interface-redefinedInterface-_ownedComment.0" body="References all the Interfaces redefined by this Interface.">
<annotatedElement xmi:idref="Interface-redefinedInterface"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interface-redefinedInterface-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interface-redefinedInterface-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InterfaceRealization" name="InterfaceRealization">
<ownedComment xmi:type="uml:Comment" xmi:id="InterfaceRealization-_ownedComment.0" body="An InterfaceRealization is a specialized realization relationship between a BehavioredClassifier and an Interface. This relationship signifies that the realizing BehavioredClassifier conforms to the contract specified by the Interface.">
<annotatedElement xmi:idref="InterfaceRealization"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="InterfaceRealization-_generalization.0" general="Realization"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InterfaceRealization-contract" name="contract" type="Interface" association="A_contract_interfaceRealization">
<subsettedProperty xmi:idref="Dependency-supplier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InterfaceRealization-contract-_ownedComment.0" body="References the Interface specifying the conformance contract.">
<annotatedElement xmi:idref="InterfaceRealization-contract"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InterfaceRealization-implementingClassifier" name="implementingClassifier" type="BehavioredClassifier" association="A_interfaceRealization_implementingClassifier">
<subsettedProperty xmi:idref="Dependency-client"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InterfaceRealization-implementingClassifier-_ownedComment.0" body="References the BehavioredClassifier that owns this InterfaceRealization, i.e., the BehavioredClassifier that realizes the Interface to which it refers.">
<annotatedElement xmi:idref="InterfaceRealization-implementingClassifier"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="PrimitiveType" name="PrimitiveType">
<ownedComment xmi:type="uml:Comment" xmi:id="PrimitiveType-_ownedComment.0" body="A PrimitiveType defines a predefined DataType, without any substructure. A PrimitiveType may have an algebra and operations defined outside of UML, for example, mathematically.">
<annotatedElement xmi:idref="PrimitiveType"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="PrimitiveType-_generalization.0" general="DataType"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Reception" name="Reception">
<ownedComment xmi:type="uml:Comment" xmi:id="Reception-_ownedComment.0" body="A Reception is a declaration stating that a Classifier is prepared to react to the receipt of a Signal.">
<annotatedElement xmi:idref="Reception"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Reception-same_name_as_signal" name="same_name_as_signal">
<constrainedElement xmi:idref="Reception"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Reception-same_name_as_signal-_ownedComment.0" body="A Reception has the same name as its signal">
<annotatedElement xmi:idref="Reception-same_name_as_signal"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Reception-same_name_as_signal-_specification">
<body>name = signal.name</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Reception-same_structure_as_signal" name="same_structure_as_signal">
<constrainedElement xmi:idref="Reception"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Reception-same_structure_as_signal-_ownedComment.0" body="A Reception's parameters match the ownedAttributes of its signal by name, type, and multiplicity">
<annotatedElement xmi:idref="Reception-same_structure_as_signal"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Reception-same_structure_as_signal-_specification">
<body>signal.ownedAttribute->size() = ownedParameter->size() and Sequence{1..signal.ownedAttribute->size()}->forAll( i | ownedParameter->at(i).direction = ParameterDirectionKind::_'in' and ownedParameter->at(i).name = signal.ownedAttribute->at(i).name and ownedParameter->at(i).type = signal.ownedAttribute->at(i).type and ownedParameter->at(i).lowerBound() = signal.ownedAttribute->at(i).lowerBound() and ownedParameter->at(i).upperBound() = signal.ownedAttribute->at(i).upperBound() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Reception-_generalization.0" general="BehavioralFeature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Reception-signal" name="signal" type="Signal" association="A_signal_reception">
<ownedComment xmi:type="uml:Comment" xmi:id="Reception-signal-_ownedComment.0" body="The Signal that this Reception handles.">
<annotatedElement xmi:idref="Reception-signal"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Signal" name="Signal">
<ownedComment xmi:type="uml:Comment" xmi:id="Signal-_ownedComment.0" body="A Signal is a specification of a kind of communication between objects in which a reaction is asynchronously triggered in the receiver without a reply.">
<annotatedElement xmi:idref="Signal"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Signal-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Signal-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_owningSignal">
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Signal-ownedAttribute-_ownedComment.0" body="The attributes owned by the Signal.">
<annotatedElement xmi:idref="Signal-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Signal-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Signal-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_owningSignal" name="A_ownedAttribute_owningSignal">
<memberEnd xmi:idref="Signal-ownedAttribute"/>
<memberEnd xmi:idref="A_ownedAttribute_owningSignal-owningSignal"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedAttribute_owningSignal-owningSignal" name="owningSignal" type="Signal" association="A_ownedAttribute_owningSignal">
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedAttribute_owningSignal-owningSignal-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signal_reception" name="A_signal_reception">
<memberEnd xmi:idref="Reception-signal"/>
<memberEnd xmi:idref="A_signal_reception-reception"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signal_reception-reception" name="reception" type="Reception" association="A_signal_reception">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signal_reception-reception-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signal_reception-reception-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_contract_interfaceRealization" name="A_contract_interfaceRealization">
<memberEnd xmi:idref="InterfaceRealization-contract"/>
<memberEnd xmi:idref="A_contract_interfaceRealization-interfaceRealization"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_contract_interfaceRealization-interfaceRealization" name="interfaceRealization" type="InterfaceRealization" association="A_contract_interfaceRealization">
<subsettedProperty xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_contract_interfaceRealization-interfaceRealization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_contract_interfaceRealization-interfaceRealization-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_protocol_interface" name="A_protocol_interface">
<memberEnd xmi:idref="Interface-protocol"/>
<memberEnd xmi:idref="A_protocol_interface-interface"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_protocol_interface-interface" name="interface" type="Interface" association="A_protocol_interface">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_protocol_interface-interface-_ownedComment.0" body="Specifies the namespace in which the protocol state machine is defined.">
<annotatedElement xmi:idref="A_protocol_interface-interface"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_protocol_interface-interface-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedReception_interface" name="A_ownedReception_interface">
<memberEnd xmi:idref="Interface-ownedReception"/>
<memberEnd xmi:idref="A_ownedReception_interface-interface"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedReception_interface-interface" name="interface" type="Interface" association="A_ownedReception_interface">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedReception_interface-interface-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedInterface_interface" name="A_redefinedInterface_interface">
<memberEnd xmi:idref="Interface-redefinedInterface"/>
<memberEnd xmi:idref="A_redefinedInterface_interface-interface"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedInterface_interface-interface" name="interface" type="Interface" association="A_redefinedInterface_interface">
<subsettedProperty xmi:idref="A_redefinedClassifier_classifier-classifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedInterface_interface-interface-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedInterface_interface-interface-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nestedClassifier_interface" name="A_nestedClassifier_interface">
<memberEnd xmi:idref="Interface-nestedClassifier"/>
<memberEnd xmi:idref="A_nestedClassifier_interface-interface"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_nestedClassifier_interface-interface" name="interface" type="Interface" association="A_nestedClassifier_interface">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_nestedClassifier_interface-interface-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedOperation_interface" name="A_ownedOperation_interface">
<memberEnd xmi:idref="Interface-ownedOperation"/>
<memberEnd xmi:idref="Operation-interface"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_interface" name="A_ownedAttribute_interface">
<memberEnd xmi:idref="Interface-ownedAttribute"/>
<memberEnd xmi:idref="Property-interface"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_enumerationLiteral" name="A_classifier_enumerationLiteral" isDerived="true">
<memberEnd xmi:idref="EnumerationLiteral-classifier"/>
<memberEnd xmi:idref="A_classifier_enumerationLiteral-enumerationLiteral"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_classifier_enumerationLiteral-_generalization.0" general="A_classifier_instanceSpecification"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifier_enumerationLiteral-enumerationLiteral" name="enumerationLiteral" type="EnumerationLiteral" association="A_classifier_enumerationLiteral">
<redefinedProperty xmi:idref="A_classifier_instanceSpecification-instanceSpecification"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifier_enumerationLiteral-enumerationLiteral-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_classifier_enumerationLiteral-enumerationLiteral-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedLiteral_enumeration" name="A_ownedLiteral_enumeration">
<memberEnd xmi:idref="Enumeration-ownedLiteral"/>
<memberEnd xmi:idref="EnumerationLiteral-enumeration"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_datatype" name="A_ownedAttribute_datatype">
<memberEnd xmi:idref="DataType-ownedAttribute"/>
<memberEnd xmi:idref="Property-datatype"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedOperation_datatype" name="A_ownedOperation_datatype">
<memberEnd xmi:idref="DataType-ownedOperation"/>
<memberEnd xmi:idref="Operation-datatype"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedBehavior_behavioredClassifier" name="A_ownedBehavior_behavioredClassifier">
<memberEnd xmi:idref="BehavioredClassifier-ownedBehavior"/>
<memberEnd xmi:idref="A_ownedBehavior_behavioredClassifier-behavioredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedBehavior_behavioredClassifier-behavioredClassifier" name="behavioredClassifier" type="BehavioredClassifier" association="A_ownedBehavior_behavioredClassifier">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedBehavior_behavioredClassifier-behavioredClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifierBehavior_behavioredClassifier" name="A_classifierBehavior_behavioredClassifier">
<memberEnd xmi:idref="BehavioredClassifier-classifierBehavior"/>
<memberEnd xmi:idref="A_classifierBehavior_behavioredClassifier-behavioredClassifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_classifierBehavior_behavioredClassifier-_generalization.0" general="A_ownedBehavior_behavioredClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifierBehavior_behavioredClassifier-behavioredClassifier" name="behavioredClassifier" type="BehavioredClassifier" association="A_classifierBehavior_behavioredClassifier">
<redefinedProperty xmi:idref="A_ownedBehavior_behavioredClassifier-behavioredClassifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifierBehavior_behavioredClassifier-behavioredClassifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_interfaceRealization_implementingClassifier" name="A_interfaceRealization_implementingClassifier">
<memberEnd xmi:idref="BehavioredClassifier-interfaceRealization"/>
<memberEnd xmi:idref="InterfaceRealization-implementingClassifier"/>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Packages" name="Packages">
<packageImport xmi:type="uml:PackageImport" xmi:id="Packages-_packageImport.0" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Packages-_packageImport.1" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Packages-_packageImport.2" importedPackage="CommonStructure"/>
<packagedElement xmi:type="uml:Class" xmi:id="Extension" name="Extension">
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-_ownedComment.0" body="An extension is used to indicate that the properties of a metaclass are extended through a stereotype, and gives the ability to flexibly add (and later remove) stereotypes to classes.">
<annotatedElement xmi:idref="Extension"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extension-non_owned_end" name="non_owned_end">
<constrainedElement xmi:idref="Extension"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-non_owned_end-_ownedComment.0" body="The non-owned end of an Extension is typed by a Class.">
<annotatedElement xmi:idref="Extension-non_owned_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extension-non_owned_end-_specification">
<body>metaclassEnd()->notEmpty() and metaclassEnd().type.oclIsKindOf(Class)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extension-is_binary" name="is_binary">
<constrainedElement xmi:idref="Extension"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-is_binary-_ownedComment.0" body="An Extension is binary, i.e., it has only two memberEnds.">
<annotatedElement xmi:idref="Extension-is_binary"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extension-is_binary-_specification">
<body>memberEnd->size() = 2</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Extension-_generalization.0" general="Association"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extension-isRequired" name="isRequired" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-isRequired-_ownedComment.0" body="Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the value of the lower property of the ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 means that isRequired is true, but otherwise it is false. Since the default value of ExtensionEnd::lower is 0, the default value of isRequired is false.">
<annotatedElement xmi:idref="Extension-isRequired"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extension-metaclass" name="metaclass" isReadOnly="true" isDerived="true" type="Class" association="A_extension_metaclass">
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-metaclass-_ownedComment.0" body="References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd.">
<annotatedElement xmi:idref="Extension-metaclass"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Extension-ownedEnd" name="ownedEnd" aggregation="composite" type="ExtensionEnd" association="A_ownedEnd_extension">
<redefinedProperty xmi:idref="Association-ownedEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-ownedEnd-_ownedComment.0" body="References the end of the extension that is typed by a Stereotype.">
<annotatedElement xmi:idref="Extension-ownedEnd"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Extension-isRequired.1" name="isRequired" isQuery="true" bodyCondition="Extension-isRequired.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-isRequired.1-_ownedComment.0" body="The query isRequired() is true if the owned end has a multiplicity with the lower bound of 1.">
<annotatedElement xmi:idref="Extension-isRequired.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extension-isRequired.1-spec" name="spec">
<constrainedElement xmi:idref="Extension-isRequired.1"/>
<constrainedElement xmi:idref="Extension-isRequired"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extension-isRequired.1-spec-_specification">
<body>result = (ownedEnd.lowerBound() = 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Extension-isRequired.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Extension-metaclass.1" name="metaclass" isQuery="true" bodyCondition="Extension-metaclass.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-metaclass.1-_ownedComment.0" body="The query metaclass() returns the metaclass that is being extended (as opposed to the extending stereotype).">
<annotatedElement xmi:idref="Extension-metaclass.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extension-metaclass.1-spec" name="spec">
<constrainedElement xmi:idref="Extension-metaclass.1"/>
<constrainedElement xmi:idref="Extension-metaclass"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extension-metaclass.1-spec-_specification">
<body>result = (metaclassEnd().type.oclAsType(Class))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Extension-metaclass.1-result" name="result" direction="return" type="Class"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Extension-metaclassEnd" name="metaclassEnd" isQuery="true" bodyCondition="Extension-metaclassEnd-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Extension-metaclassEnd-_ownedComment.0" body="The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype).">
<annotatedElement xmi:idref="Extension-metaclassEnd"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Extension-metaclassEnd-spec" name="spec">
<constrainedElement xmi:idref="Extension-metaclassEnd"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Extension-metaclassEnd-spec-_specification">
<body>result = (memberEnd->reject(p | ownedEnd->includes(p.oclAsType(ExtensionEnd)))->any(true))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Extension-metaclassEnd-result" name="result" direction="return" type="Property"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExtensionEnd" name="ExtensionEnd">
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-_ownedComment.0" body="An extension end is used to tie an extension to a stereotype when extending a metaclass. The default multiplicity of an extension end is 0..1.">
<annotatedElement xmi:idref="ExtensionEnd"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExtensionEnd-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ExtensionEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-multiplicity-_ownedComment.0" body="The multiplicity of ExtensionEnd is 0..1 or 1.">
<annotatedElement xmi:idref="ExtensionEnd-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExtensionEnd-multiplicity-_specification">
<body>(lowerBound() = 0 or lowerBound() = 1) and upperBound() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExtensionEnd-aggregation" name="aggregation">
<constrainedElement xmi:idref="ExtensionEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-aggregation-_ownedComment.0" body="The aggregation of an ExtensionEnd is composite.">
<annotatedElement xmi:idref="ExtensionEnd-aggregation"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExtensionEnd-aggregation-_specification">
<body>self.aggregation = AggregationKind::composite</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ExtensionEnd-_generalization.0" general="Property"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExtensionEnd-lower" name="lower" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<redefinedProperty xmi:idref="MultiplicityElement-lower"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-lower-_ownedComment.0" body="This redefinition changes the default multiplicity of association ends, since model elements are usually extended by 0 or 1 instance of the extension stereotype.">
<annotatedElement xmi:idref="ExtensionEnd-lower"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExtensionEnd-lower-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExtensionEnd-type" name="type" type="Stereotype" association="A_type_extensionEnd">
<redefinedProperty xmi:idref="TypedElement-type"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-type-_ownedComment.0" body="References the type of the ExtensionEnd. Note that this association restricts the possible types of an ExtensionEnd to only be Stereotypes.">
<annotatedElement xmi:idref="ExtensionEnd-type"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ExtensionEnd-lowerBound" name="lowerBound" isQuery="true" bodyCondition="ExtensionEnd-lowerBound-spec">
<redefinedOperation xmi:idref="MultiplicityElement-lowerBound"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExtensionEnd-lowerBound-_ownedComment.0" body="The query lowerBound() returns the lower bound of the multiplicity as an Integer. This is a redefinition of the default lower bound, which normally, for MultiplicityElements, evaluates to 1 if empty.">
<annotatedElement xmi:idref="ExtensionEnd-lowerBound"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExtensionEnd-lowerBound-spec" name="spec">
<constrainedElement xmi:idref="ExtensionEnd-lowerBound"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExtensionEnd-lowerBound-spec-_specification">
<body>result = (if lowerValue=null then 0 else lowerValue.integerValue() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ExtensionEnd-lowerBound-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExtensionEnd-lowerBound-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Image" name="Image">
<ownedComment xmi:type="uml:Comment" xmi:id="Image-_ownedComment.0" body="Physical definition of a graphical image.">
<annotatedElement xmi:idref="Image"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Image-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Image-content" name="content">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Image-content-_ownedComment.0" body="This contains the serialization of the image according to the format. The value could represent a bitmap, image such as a GIF file, or drawing 'instructions' using a standard such as Scalable Vector Graphic (SVG) (which is XML based).">
<annotatedElement xmi:idref="Image-content"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Image-content-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Image-format" name="format">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Image-format-_ownedComment.0" body="This indicates the format of the content, which is how the string content should be interpreted. The following values are reserved: SVG, GIF, PNG, JPG, WMF, EMF, BMP. In addition the prefix 'MIME: ' is also reserved. This option can be used as an alternative to express the reserved values above, for example "SVG" could instead be expressed as "MIME: image/svg+xml".">
<annotatedElement xmi:idref="Image-format"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Image-format-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Image-location" name="location">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Image-location-_ownedComment.0" body="This contains a location that can be used by a tool to locate the image as an alternative to embedding it in the stereotype.">
<annotatedElement xmi:idref="Image-location"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Image-location-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Model" name="Model">
<ownedComment xmi:type="uml:Comment" xmi:id="Model-_ownedComment.0" body="A model captures a view of a physical system. It is an abstraction of the physical system, with a certain purpose. This purpose determines what is to be included in the model and what is irrelevant. Thus the model completely describes those aspects of the physical system that are relevant to the purpose of the model, at the appropriate level of detail.">
<annotatedElement xmi:idref="Model"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Model-_generalization.0" general="Package"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Model-viewpoint" name="viewpoint">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Model-viewpoint-_ownedComment.0" body="The name of the viewpoint that is expressed by a model (this name may refer to a profile definition).">
<annotatedElement xmi:idref="Model-viewpoint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Model-viewpoint-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Package" name="Package">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-_ownedComment.0" body="A package can have one or more profile applications to indicate which profiles have been applied. Because a profile is a package, it is possible to apply a profile not only to packages, but also to profiles. Package specializes TemplateableElement and PackageableElement specializes ParameterableElement to specify that a package can be used as a template and a PackageableElement as a template parameter. A package is used to group elements, and provides a namespace for the grouped elements.">
<annotatedElement xmi:idref="Package"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-elements_public_or_private" name="elements_public_or_private">
<constrainedElement xmi:idref="Package"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-elements_public_or_private-_ownedComment.0" body="If an element that is owned by a package has visibility, it is public or private.">
<annotatedElement xmi:idref="Package-elements_public_or_private"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-elements_public_or_private-_specification">
<body>packagedElement->forAll(e | e.visibility<> null implies e.visibility = VisibilityKind::public or e.visibility = VisibilityKind::private)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Package-_generalization.2" general="PackageableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Package-_generalization.0" general="TemplateableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Package-_generalization.1" general="Namespace"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-URI" name="URI">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-URI-_ownedComment.0" body="Provides an identifier for the package that can be used for many purposes. A URI is the universally unique identification of the package following the IETF URI specification, RFC 2396 http://www.ietf.org/rfc/rfc2396.txt and it must comply with those syntax rules.">
<annotatedElement xmi:idref="Package-URI"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-URI-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-nestedPackage" name="nestedPackage" aggregation="composite" isDerived="true" type="Package" association="A_nestedPackage_nestingPackage">
<subsettedProperty xmi:idref="Package-packagedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-nestedPackage-_ownedComment.0" body="References the packaged elements that are Packages.">
<annotatedElement xmi:idref="Package-nestedPackage"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-nestedPackage-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-nestedPackage-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-nestingPackage" name="nestingPackage" type="Package" association="A_nestedPackage_nestingPackage">
<subsettedProperty xmi:idref="A_packagedElement_owningPackage-owningPackage"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-nestingPackage-_ownedComment.0" body="References the Package that owns this Package.">
<annotatedElement xmi:idref="Package-nestingPackage"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-nestingPackage-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-ownedStereotype" name="ownedStereotype" isReadOnly="true" aggregation="composite" isDerived="true" type="Stereotype" association="A_ownedStereotype_owningPackage">
<subsettedProperty xmi:idref="Package-packagedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-ownedStereotype-_ownedComment.0" body="References the Stereotypes that are owned by the Package.">
<annotatedElement xmi:idref="Package-ownedStereotype"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-ownedStereotype-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-ownedStereotype-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-ownedType" name="ownedType" aggregation="composite" isDerived="true" type="Type" association="A_ownedType_package">
<subsettedProperty xmi:idref="Package-packagedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-ownedType-_ownedComment.0" body="References the packaged elements that are Types.">
<annotatedElement xmi:idref="Package-ownedType"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-ownedType-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-ownedType-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-packageMerge" name="packageMerge" aggregation="composite" type="PackageMerge" association="A_packageMerge_receivingPackage">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-packageMerge-_ownedComment.0" body="References the PackageMerges that are owned by this Package.">
<annotatedElement xmi:idref="Package-packageMerge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-packageMerge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-packageMerge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-packagedElement" name="packagedElement" aggregation="composite" type="PackageableElement" association="A_packagedElement_owningPackage">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-packagedElement-_ownedComment.0" body="Specifies the packageable elements that are owned by this Package.">
<annotatedElement xmi:idref="Package-packagedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-packagedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-packagedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Package-profileApplication" name="profileApplication" aggregation="composite" type="ProfileApplication" association="A_profileApplication_applyingPackage">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-profileApplication-_ownedComment.0" body="References the ProfileApplications that indicate which profiles have been applied to the Package.">
<annotatedElement xmi:idref="Package-profileApplication"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-profileApplication-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-profileApplication-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-allApplicableStereotypes" name="allApplicableStereotypes" isQuery="true" bodyCondition="Package-allApplicableStereotypes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-allApplicableStereotypes-_ownedComment.0" body="The query allApplicableStereotypes() returns all the directly or indirectly owned stereotypes, including stereotypes contained in sub-profiles.">
<annotatedElement xmi:idref="Package-allApplicableStereotypes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-allApplicableStereotypes-spec" name="spec">
<constrainedElement xmi:idref="Package-allApplicableStereotypes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-allApplicableStereotypes-spec-_specification">
<body>result = (let ownedPackages : Bag(Package) = ownedMember->select(oclIsKindOf(Package))->collect(oclAsType(Package)) in ownedStereotype->union(ownedPackages.allApplicableStereotypes())->flatten()->asSet() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-allApplicableStereotypes-result" name="result" direction="return" type="Stereotype">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-allApplicableStereotypes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-allApplicableStereotypes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-containingProfile" name="containingProfile" isQuery="true" bodyCondition="Package-containingProfile-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-containingProfile-_ownedComment.0" body="The query containingProfile() returns the closest profile directly or indirectly containing this package (or this package itself, if it is a profile).">
<annotatedElement xmi:idref="Package-containingProfile"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-containingProfile-spec" name="spec">
<constrainedElement xmi:idref="Package-containingProfile"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-containingProfile-spec-_specification">
<body>result = (if self.oclIsKindOf(Profile) then self.oclAsType(Profile) else self.namespace.oclAsType(Package).containingProfile() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-containingProfile-result" name="result" direction="return" type="Profile">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-containingProfile-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-makesVisible" name="makesVisible" isQuery="true" bodyCondition="Package-makesVisible-spec">
<precondition xmi:idref="Package-makesVisible-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-makesVisible-_ownedComment.0" body="The query makesVisible() defines whether a Package makes an element visible outside itself. Elements with no visibility and elements with public visibility are made visible.">
<annotatedElement xmi:idref="Package-makesVisible"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-makesVisible-pre" name="pre">
<constrainedElement xmi:idref="Package-makesVisible"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-makesVisible-pre-_specification">
<body>member->includes(el)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-makesVisible-spec" name="spec">
<constrainedElement xmi:idref="Package-makesVisible"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-makesVisible-spec-_specification">
<body>result = (ownedMember->includes(el) or (elementImport->select(ei|ei.importedElement = VisibilityKind::public)->collect(importedElement.oclAsType(NamedElement))->includes(el)) or (packageImport->select(visibility = VisibilityKind::public)->collect(importedPackage.member->includes(el))->notEmpty()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-makesVisible-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-makesVisible-el" name="el" type="NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-mustBeOwned" name="mustBeOwned" isQuery="true" bodyCondition="Package-mustBeOwned-spec">
<redefinedOperation xmi:idref="Element-mustBeOwned"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Package-mustBeOwned-_ownedComment.0" body="The query mustBeOwned() indicates whether elements of this type must have an owner.">
<annotatedElement xmi:idref="Package-mustBeOwned"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-mustBeOwned-spec" name="spec">
<constrainedElement xmi:idref="Package-mustBeOwned"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-mustBeOwned-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-mustBeOwned-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-nestedPackage.1" name="nestedPackage" isQuery="true" bodyCondition="Package-nestedPackage.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-nestedPackage.1-_ownedComment.0" body="Derivation for Package::/nestedPackage ">
<annotatedElement xmi:idref="Package-nestedPackage.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-nestedPackage.1-spec" name="spec">
<constrainedElement xmi:idref="Package-nestedPackage.1"/>
<constrainedElement xmi:idref="Package-nestedPackage"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-nestedPackage.1-spec-_specification">
<body>result = (packagedElement->select(oclIsKindOf(Package))->collect(oclAsType(Package))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-nestedPackage.1-result" name="result" direction="return" type="Package">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-nestedPackage.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-nestedPackage.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-ownedStereotype.1" name="ownedStereotype" isQuery="true" bodyCondition="Package-ownedStereotype.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-ownedStereotype.1-_ownedComment.0" body="Derivation for Package::/ownedStereotype ">
<annotatedElement xmi:idref="Package-ownedStereotype.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-ownedStereotype.1-spec" name="spec">
<constrainedElement xmi:idref="Package-ownedStereotype.1"/>
<constrainedElement xmi:idref="Package-ownedStereotype"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-ownedStereotype.1-spec-_specification">
<body>result = (packagedElement->select(oclIsKindOf(Stereotype))->collect(oclAsType(Stereotype))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-ownedStereotype.1-result" name="result" direction="return" type="Stereotype">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-ownedStereotype.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-ownedStereotype.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-ownedType.1" name="ownedType" isQuery="true" bodyCondition="Package-ownedType.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-ownedType.1-_ownedComment.0" body="Derivation for Package::/ownedType">
<annotatedElement xmi:idref="Package-ownedType.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-ownedType.1-spec" name="spec">
<constrainedElement xmi:idref="Package-ownedType.1"/>
<constrainedElement xmi:idref="Package-ownedType"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-ownedType.1-spec-_specification">
<body>result = (packagedElement->select(oclIsKindOf(Type))->collect(oclAsType(Type))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-ownedType.1-result" name="result" direction="return" type="Type">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-ownedType.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-ownedType.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Package-visibleMembers" name="visibleMembers" isQuery="true" bodyCondition="Package-visibleMembers-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Package-visibleMembers-_ownedComment.0" body="The query visibleMembers() defines which members of a Package can be accessed outside it.">
<annotatedElement xmi:idref="Package-visibleMembers"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Package-visibleMembers-spec" name="spec">
<constrainedElement xmi:idref="Package-visibleMembers"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Package-visibleMembers-spec-_specification">
<body>result = (member->select( m | m.oclIsKindOf(PackageableElement) and self.makesVisible(m))->collect(oclAsType(PackageableElement))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Package-visibleMembers-result" name="result" direction="return" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Package-visibleMembers-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Package-visibleMembers-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="PackageMerge" name="PackageMerge">
<ownedComment xmi:type="uml:Comment" xmi:id="PackageMerge-_ownedComment.0" body="A package merge defines how the contents of one package are extended by the contents of another package.">
<annotatedElement xmi:idref="PackageMerge"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="PackageMerge-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageMerge-mergedPackage" name="mergedPackage" type="Package" association="A_mergedPackage_packageMerge">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageMerge-mergedPackage-_ownedComment.0" body="References the Package that is to be merged with the receiving package of the PackageMerge.">
<annotatedElement xmi:idref="PackageMerge-mergedPackage"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageMerge-receivingPackage" name="receivingPackage" type="Package" association="A_packageMerge_receivingPackage">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageMerge-receivingPackage-_ownedComment.0" body="References the Package that is being extended with the contents of the merged package of the PackageMerge.">
<annotatedElement xmi:idref="PackageMerge-receivingPackage"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Profile" name="Profile">
<ownedComment xmi:type="uml:Comment" xmi:id="Profile-_ownedComment.0" body="A profile defines limited extensions to a reference metamodel with the purpose of adapting the metamodel to a specific platform or domain.">
<annotatedElement xmi:idref="Profile"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Profile-metaclass_reference_not_specialized" name="metaclass_reference_not_specialized">
<constrainedElement xmi:idref="Profile"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Profile-metaclass_reference_not_specialized-_ownedComment.0" body="An element imported as a metaclassReference is not specialized or generalized in a Profile.">
<annotatedElement xmi:idref="Profile-metaclass_reference_not_specialized"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Profile-metaclass_reference_not_specialized-_specification">
<body>metaclassReference.importedElement-> select(c | c.oclIsKindOf(Classifier) and (c.oclAsType(Classifier).allParents()->collect(namespace)->includes(self)))->isEmpty() and packagedElement-> select(oclIsKindOf(Classifier))->collect(oclAsType(Classifier).allParents())-> intersection(metaclassReference.importedElement->select(oclIsKindOf(Classifier))->collect(oclAsType(Classifier)))->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Profile-references_same_metamodel" name="references_same_metamodel">
<constrainedElement xmi:idref="Profile"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Profile-references_same_metamodel-_ownedComment.0" body="All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel.">
<annotatedElement xmi:idref="Profile-references_same_metamodel"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Profile-references_same_metamodel-_specification">
<body>metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages()-> union(metaclassReference.importedElement.allOwningPackages() )->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Profile-_generalization.0" general="Package"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Profile-metaclassReference" name="metaclassReference" aggregation="composite" type="ElementImport" association="A_metaclassReference_profile">
<subsettedProperty xmi:idref="Namespace-elementImport"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Profile-metaclassReference-_ownedComment.0" body="References a metaclass that may be extended.">
<annotatedElement xmi:idref="Profile-metaclassReference"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Profile-metaclassReference-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Profile-metaclassReference-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Profile-metamodelReference" name="metamodelReference" aggregation="composite" type="PackageImport" association="A_metamodelReference_profile">
<subsettedProperty xmi:idref="Namespace-packageImport"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Profile-metamodelReference-_ownedComment.0" body="References a package containing (directly or indirectly) metaclasses that may be extended.">
<annotatedElement xmi:idref="Profile-metamodelReference"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Profile-metamodelReference-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Profile-metamodelReference-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ProfileApplication" name="ProfileApplication">
<ownedComment xmi:type="uml:Comment" xmi:id="ProfileApplication-_ownedComment.0" body="A profile application is used to show which profiles have been applied to a package.">
<annotatedElement xmi:idref="ProfileApplication"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ProfileApplication-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProfileApplication-appliedProfile" name="appliedProfile" type="Profile" association="A_appliedProfile_profileApplication">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProfileApplication-appliedProfile-_ownedComment.0" body="References the Profiles that are applied to a Package through this ProfileApplication.">
<annotatedElement xmi:idref="ProfileApplication-appliedProfile"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProfileApplication-applyingPackage" name="applyingPackage" type="Package" association="A_profileApplication_applyingPackage">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProfileApplication-applyingPackage-_ownedComment.0" body="The package that owns the profile application.">
<annotatedElement xmi:idref="ProfileApplication-applyingPackage"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ProfileApplication-isStrict" name="isStrict">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ProfileApplication-isStrict-_ownedComment.0" body="Specifies that the Profile filtering rules for the metaclasses of the referenced metamodel shall be strictly applied.">
<annotatedElement xmi:idref="ProfileApplication-isStrict"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ProfileApplication-isStrict-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Stereotype" name="Stereotype">
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-_ownedComment.0" body="A stereotype defines how an existing metaclass may be extended, and enables the use of platform or domain specific terminology or notation in place of, or in addition to, the ones used for the extended metaclass.">
<annotatedElement xmi:idref="Stereotype"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-binaryAssociationsOnly" name="binaryAssociationsOnly">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-binaryAssociationsOnly-_ownedComment.0" body="Stereotypes may only participate in binary associations.">
<annotatedElement xmi:idref="Stereotype-binaryAssociationsOnly"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-binaryAssociationsOnly-_specification">
<body>ownedAttribute.association->forAll(memberEnd->size()=2)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-generalize" name="generalize">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-generalize-_ownedComment.0" body="A Stereotype may only generalize or specialize another Stereotype.">
<annotatedElement xmi:idref="Stereotype-generalize"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-generalize-_specification">
<body>allParents()->forAll(oclIsKindOf(Stereotype)) and Classifier.allInstances()->forAll(c | c.allParents()->exists(oclIsKindOf(Stereotype)) implies c.oclIsKindOf(Stereotype)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-name_not_clash" name="name_not_clash">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-name_not_clash-_ownedComment.0" body="Stereotype names should not clash with keyword names for the extended model element.">
<annotatedElement xmi:idref="Stereotype-name_not_clash"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-name_not_clash-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-associationEndOwnership" name="associationEndOwnership">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-associationEndOwnership-_ownedComment.0" body="Where a stereotype’s property is an association end for an association other than a kind of extension, and the other end is not a stereotype, the other end must be owned by the association itself.">
<annotatedElement xmi:idref="Stereotype-associationEndOwnership"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-associationEndOwnership-_specification">
<body>ownedAttribute ->select(association->notEmpty() and not association.oclIsKindOf(Extension) and not type.oclIsKindOf(Stereotype)) ->forAll(opposite.owner = association)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-base_property_upper_bound" name="base_property_upper_bound">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-base_property_upper_bound-_ownedComment.0" body="The upper bound of base-properties is exactly 1.">
<annotatedElement xmi:idref="Stereotype-base_property_upper_bound"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-base_property_upper_bound-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-base_property_multiplicity_single_extension" name="base_property_multiplicity_single_extension">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-base_property_multiplicity_single_extension-_ownedComment.0" body="If a Stereotype extends only one metaclass, the multiplicity of the corresponding base-property shall be 1..1.">
<annotatedElement xmi:idref="Stereotype-base_property_multiplicity_single_extension"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-base_property_multiplicity_single_extension-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-base_property_multiplicity_multiple_extension" name="base_property_multiplicity_multiple_extension">
<constrainedElement xmi:idref="Stereotype"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-base_property_multiplicity_multiple_extension-_ownedComment.0" body="If a Stereotype extends more than one metaclass, the multiplicity of the corresponding base-properties shall be [0..1]. At any point in time, only one of these base-properties can contain a metaclass instance during runtime.">
<annotatedElement xmi:idref="Stereotype-base_property_multiplicity_multiple_extension"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-base_property_multiplicity_multiple_extension-_specification"/>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Stereotype-_generalization.0" general="Class"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Stereotype-icon" name="icon" aggregation="composite" type="Image" association="A_icon_stereotype">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-icon-_ownedComment.0" body="Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements.">
<annotatedElement xmi:idref="Stereotype-icon"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Stereotype-icon-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Stereotype-icon-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Stereotype-profile" name="profile" isReadOnly="true" isDerived="true" type="Profile" association="A_profile_stereotype">
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-profile-_ownedComment.0" body="The profile that directly or indirectly contains this stereotype.">
<annotatedElement xmi:idref="Stereotype-profile"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Stereotype-containingProfile" name="containingProfile" isQuery="true" bodyCondition="Stereotype-containingProfile-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-containingProfile-_ownedComment.0" body="The query containingProfile returns the closest profile directly or indirectly containing this stereotype.">
<annotatedElement xmi:idref="Stereotype-containingProfile"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-containingProfile-spec" name="spec">
<constrainedElement xmi:idref="Stereotype-containingProfile"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-containingProfile-spec-_specification">
<body>result = (self.namespace.oclAsType(Package).containingProfile())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Stereotype-containingProfile-result" name="result" direction="return" type="Profile"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Stereotype-profile.1" name="profile" isQuery="true" bodyCondition="Stereotype-profile.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Stereotype-profile.1-_ownedComment.0" body="A stereotype must be contained, directly or indirectly, in a profile.">
<annotatedElement xmi:idref="Stereotype-profile.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Stereotype-profile.1-spec" name="spec">
<constrainedElement xmi:idref="Stereotype-profile.1"/>
<constrainedElement xmi:idref="Stereotype-profile"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Stereotype-profile.1-spec-_specification">
<body>result = (self.containingProfile())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Stereotype-profile.1-result" name="result" direction="return" type="Profile"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_profile_stereotype" name="A_profile_stereotype" isDerived="true">
<memberEnd xmi:idref="Stereotype-profile"/>
<memberEnd xmi:idref="A_profile_stereotype-stereotype"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_profile_stereotype-stereotype" name="stereotype" type="Stereotype" association="A_profile_stereotype">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_profile_stereotype-stereotype-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_profile_stereotype-stereotype-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_icon_stereotype" name="A_icon_stereotype">
<memberEnd xmi:idref="Stereotype-icon"/>
<memberEnd xmi:idref="A_icon_stereotype-stereotype"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_icon_stereotype-stereotype" name="stereotype" type="Stereotype" association="A_icon_stereotype">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_icon_stereotype-stereotype-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_appliedProfile_profileApplication" name="A_appliedProfile_profileApplication">
<memberEnd xmi:idref="ProfileApplication-appliedProfile"/>
<memberEnd xmi:idref="A_appliedProfile_profileApplication-profileApplication"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_appliedProfile_profileApplication-profileApplication" name="profileApplication" type="ProfileApplication" association="A_appliedProfile_profileApplication">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_appliedProfile_profileApplication-profileApplication-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_appliedProfile_profileApplication-profileApplication-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_metaclassReference_profile" name="A_metaclassReference_profile">
<memberEnd xmi:idref="Profile-metaclassReference"/>
<memberEnd xmi:idref="A_metaclassReference_profile-profile"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_metaclassReference_profile-profile" name="profile" type="Profile" association="A_metaclassReference_profile">
<subsettedProperty xmi:idref="ElementImport-importingNamespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_metaclassReference_profile-profile-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_metamodelReference_profile" name="A_metamodelReference_profile">
<memberEnd xmi:idref="Profile-metamodelReference"/>
<memberEnd xmi:idref="A_metamodelReference_profile-profile"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_metamodelReference_profile-profile" name="profile" type="Profile" association="A_metamodelReference_profile">
<subsettedProperty xmi:idref="PackageImport-importingNamespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_metamodelReference_profile-profile-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_mergedPackage_packageMerge" name="A_mergedPackage_packageMerge">
<memberEnd xmi:idref="PackageMerge-mergedPackage"/>
<memberEnd xmi:idref="A_mergedPackage_packageMerge-packageMerge"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_mergedPackage_packageMerge-packageMerge" name="packageMerge" type="PackageMerge" association="A_mergedPackage_packageMerge">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_mergedPackage_packageMerge-packageMerge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_mergedPackage_packageMerge-packageMerge-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_packagedElement_owningPackage" name="A_packagedElement_owningPackage">
<memberEnd xmi:idref="Package-packagedElement"/>
<memberEnd xmi:idref="A_packagedElement_owningPackage-owningPackage"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_packagedElement_owningPackage-owningPackage" name="owningPackage" type="Package" association="A_packagedElement_owningPackage">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_packagedElement_owningPackage-owningPackage-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_packageMerge_receivingPackage" name="A_packageMerge_receivingPackage">
<memberEnd xmi:idref="Package-packageMerge"/>
<memberEnd xmi:idref="PackageMerge-receivingPackage"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nestedPackage_nestingPackage" name="A_nestedPackage_nestingPackage">
<memberEnd xmi:idref="Package-nestedPackage"/>
<memberEnd xmi:idref="Package-nestingPackage"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_profileApplication_applyingPackage" name="A_profileApplication_applyingPackage">
<memberEnd xmi:idref="Package-profileApplication"/>
<memberEnd xmi:idref="ProfileApplication-applyingPackage"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedType_package" name="A_ownedType_package">
<memberEnd xmi:idref="Package-ownedType"/>
<memberEnd xmi:idref="Type-package"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedStereotype_owningPackage" name="A_ownedStereotype_owningPackage" isDerived="true">
<memberEnd xmi:idref="Package-ownedStereotype"/>
<memberEnd xmi:idref="A_ownedStereotype_owningPackage-owningPackage"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_ownedStereotype_owningPackage-_generalization.0" general="A_packagedElement_owningPackage"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedStereotype_owningPackage-owningPackage" name="owningPackage" type="Package" association="A_ownedStereotype_owningPackage">
<redefinedProperty xmi:idref="A_packagedElement_owningPackage-owningPackage"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_type_extensionEnd" name="A_type_extensionEnd">
<memberEnd xmi:idref="ExtensionEnd-type"/>
<memberEnd xmi:idref="A_type_extensionEnd-extensionEnd"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_type_extensionEnd-extensionEnd" name="extensionEnd" type="ExtensionEnd" association="A_type_extensionEnd">
<subsettedProperty xmi:idref="A_type_typedElement-typedElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_type_extensionEnd-extensionEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_type_extensionEnd-extensionEnd-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedEnd_extension" name="A_ownedEnd_extension">
<memberEnd xmi:idref="Extension-ownedEnd"/>
<memberEnd xmi:idref="A_ownedEnd_extension-extension"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedEnd_extension-extension" name="extension" type="Extension" association="A_ownedEnd_extension">
<subsettedProperty xmi:idref="Property-owningAssociation"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Interactions" name="Interactions">
<packageImport xmi:type="uml:PackageImport" xmi:id="Interactions-_packageImport.0" importedPackage="CommonStructure"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Interactions-_packageImport.1" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Interactions-_packageImport.2" importedPackage="SimpleClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Interactions-_packageImport.3" importedPackage="Values"/>
<packagedElement xmi:type="uml:Class" xmi:id="ActionExecutionSpecification" name="ActionExecutionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ActionExecutionSpecification-_ownedComment.0" body="An ActionExecutionSpecification is a kind of ExecutionSpecification representing the execution of an Action.">
<annotatedElement xmi:idref="ActionExecutionSpecification"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActionExecutionSpecification-action_referenced" name="action_referenced">
<constrainedElement xmi:idref="ActionExecutionSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActionExecutionSpecification-action_referenced-_ownedComment.0" body="The Action referenced by the ActionExecutionSpecification must be owned by the Interaction owning that ActionExecutionSpecification.">
<annotatedElement xmi:idref="ActionExecutionSpecification-action_referenced"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActionExecutionSpecification-action_referenced-_specification">
<body>(enclosingInteraction->notEmpty() or enclosingOperand.combinedFragment->notEmpty()) and let parentInteraction : Set(Interaction) = enclosingInteraction.oclAsType(Interaction)->asSet()->union( enclosingOperand.combinedFragment->closure(enclosingOperand.combinedFragment)-> collect(enclosingInteraction).oclAsType(Interaction)->asSet()) in (parentInteraction->size() = 1) and self.action.interaction->asSet() = parentInteraction</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActionExecutionSpecification-_generalization.0" general="ExecutionSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActionExecutionSpecification-action" name="action" type="Action" association="A_action_actionExecutionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ActionExecutionSpecification-action-_ownedComment.0" body="Action whose execution is occurring.">
<annotatedElement xmi:idref="ActionExecutionSpecification-action"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="BehaviorExecutionSpecification" name="BehaviorExecutionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="BehaviorExecutionSpecification-_ownedComment.0" body="A BehaviorExecutionSpecification is a kind of ExecutionSpecification representing the execution of a Behavior.">
<annotatedElement xmi:idref="BehaviorExecutionSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="BehaviorExecutionSpecification-_generalization.0" general="ExecutionSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehaviorExecutionSpecification-behavior" name="behavior" type="Behavior" association="A_behavior_behaviorExecutionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="BehaviorExecutionSpecification-behavior-_ownedComment.0" body="Behavior whose execution is occurring.">
<annotatedElement xmi:idref="BehaviorExecutionSpecification-behavior"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehaviorExecutionSpecification-behavior-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CombinedFragment" name="CombinedFragment">
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-_ownedComment.0" body="A CombinedFragment defines an expression of InteractionFragments. A CombinedFragment is defined by an interaction operator and corresponding InteractionOperands. Through the use of CombinedFragments the user will be able to describe a number of traces in a compact and concise manner.">
<annotatedElement xmi:idref="CombinedFragment"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CombinedFragment-break" name="break">
<constrainedElement xmi:idref="CombinedFragment"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-break-_ownedComment.0" body="If the interactionOperator is break, the corresponding InteractionOperand must cover all Lifelines covered by the enclosing InteractionFragment.">
<annotatedElement xmi:idref="CombinedFragment-break"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CombinedFragment-break-_specification">
<body>interactionOperator=InteractionOperatorKind::break implies enclosingInteraction.oclAsType(InteractionFragment)->asSet()->union( enclosingOperand.oclAsType(InteractionFragment)->asSet()).covered->asSet() = self.covered->asSet()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CombinedFragment-consider_and_ignore" name="consider_and_ignore">
<constrainedElement xmi:idref="CombinedFragment"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-consider_and_ignore-_ownedComment.0" body="The interaction operators 'consider' and 'ignore' can only be used for the ConsiderIgnoreFragment subtype of CombinedFragment">
<annotatedElement xmi:idref="CombinedFragment-consider_and_ignore"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CombinedFragment-consider_and_ignore-_specification">
<body>((interactionOperator = InteractionOperatorKind::consider) or (interactionOperator = InteractionOperatorKind::ignore)) implies oclIsKindOf(ConsiderIgnoreFragment)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CombinedFragment-opt_loop_break_neg" name="opt_loop_break_neg">
<constrainedElement xmi:idref="CombinedFragment"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-opt_loop_break_neg-_ownedComment.0" body="If the interactionOperator is opt, loop, break, assert or neg, there must be exactly one operand.">
<annotatedElement xmi:idref="CombinedFragment-opt_loop_break_neg"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CombinedFragment-opt_loop_break_neg-_specification">
<body>(interactionOperator = InteractionOperatorKind::opt or interactionOperator = InteractionOperatorKind::loop or interactionOperator = InteractionOperatorKind::break or interactionOperator = InteractionOperatorKind::assert or interactionOperator = InteractionOperatorKind::neg) implies operand->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CombinedFragment-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CombinedFragment-cfragmentGate" name="cfragmentGate" aggregation="composite" type="Gate" association="A_cfragmentGate_combinedFragment">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-cfragmentGate-_ownedComment.0" body="Specifies the gates that form the interface between this CombinedFragment and its surroundings">
<annotatedElement xmi:idref="CombinedFragment-cfragmentGate"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CombinedFragment-cfragmentGate-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CombinedFragment-cfragmentGate-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CombinedFragment-interactionOperator" name="interactionOperator" type="InteractionOperatorKind">
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-interactionOperator-_ownedComment.0" body="Specifies the operation which defines the semantics of this combination of InteractionFragments.">
<annotatedElement xmi:idref="CombinedFragment-interactionOperator"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="CombinedFragment-interactionOperator-_defaultValue" type="InteractionOperatorKind" instance="InteractionOperatorKind-seq"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CombinedFragment-operand" name="operand" isOrdered="true" aggregation="composite" type="InteractionOperand" association="A_operand_combinedFragment">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CombinedFragment-operand-_ownedComment.0" body="The set of operands of the combined fragment.">
<annotatedElement xmi:idref="CombinedFragment-operand"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CombinedFragment-operand-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ConsiderIgnoreFragment" name="ConsiderIgnoreFragment">
<ownedComment xmi:type="uml:Comment" xmi:id="ConsiderIgnoreFragment-_ownedComment.0" body="A ConsiderIgnoreFragment is a kind of CombinedFragment that is used for the consider and ignore cases, which require lists of pertinent Messages to be specified.">
<annotatedElement xmi:idref="ConsiderIgnoreFragment"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConsiderIgnoreFragment-consider_or_ignore" name="consider_or_ignore">
<constrainedElement xmi:idref="ConsiderIgnoreFragment"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConsiderIgnoreFragment-consider_or_ignore-_ownedComment.0" body="The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'.">
<annotatedElement xmi:idref="ConsiderIgnoreFragment-consider_or_ignore"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConsiderIgnoreFragment-consider_or_ignore-_specification">
<body>(interactionOperator = InteractionOperatorKind::consider) or (interactionOperator = InteractionOperatorKind::ignore)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConsiderIgnoreFragment-type" name="type">
<constrainedElement xmi:idref="ConsiderIgnoreFragment"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConsiderIgnoreFragment-type-_ownedComment.0" body="The NamedElements must be of a type of element that can be a signature for a message (i.e.., an Operation, or a Signal).">
<annotatedElement xmi:idref="ConsiderIgnoreFragment-type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConsiderIgnoreFragment-type-_specification">
<body>message->forAll(m | m.oclIsKindOf(Operation) or m.oclIsKindOf(Signal))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ConsiderIgnoreFragment-_generalization.0" general="CombinedFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConsiderIgnoreFragment-message" name="message" type="NamedElement" association="A_message_considerIgnoreFragment">
<ownedComment xmi:type="uml:Comment" xmi:id="ConsiderIgnoreFragment-message-_ownedComment.0" body="The set of messages that apply to this fragment.">
<annotatedElement xmi:idref="ConsiderIgnoreFragment-message"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConsiderIgnoreFragment-message-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConsiderIgnoreFragment-message-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Continuation" name="Continuation">
<ownedComment xmi:type="uml:Comment" xmi:id="Continuation-_ownedComment.0" body="A Continuation is a syntactic way to define continuations of different branches of an alternative CombinedFragment. Continuations are intuitively similar to labels representing intermediate points in a flow of control.">
<annotatedElement xmi:idref="Continuation"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Continuation-first_or_last_interaction_fragment" name="first_or_last_interaction_fragment">
<constrainedElement xmi:idref="Continuation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Continuation-first_or_last_interaction_fragment-_ownedComment.0" body="Continuations always occur as the very first InteractionFragment or the very last InteractionFragment of the enclosing InteractionOperand.">
<annotatedElement xmi:idref="Continuation-first_or_last_interaction_fragment"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Continuation-first_or_last_interaction_fragment-_specification">
<body> enclosingOperand->notEmpty() and let peerFragments : OrderedSet(InteractionFragment) = enclosingOperand.fragment in ( peerFragments->notEmpty() and ((peerFragments->first() = self) or (peerFragments->last() = self)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Continuation-same_name" name="same_name">
<constrainedElement xmi:idref="Continuation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Continuation-same_name-_ownedComment.0" body="Across all Interaction instances having the same context value, every Lifeline instance covered by a Continuation (self) must be common with one covered Lifeline instance of all other Continuation instances with the same name as self, and every Lifeline instance covered by a Continuation instance with the same name as self must be common with one covered Lifeline instance of self. Lifeline instances are common if they have the same selector and represents associationEnd values.">
<annotatedElement xmi:idref="Continuation-same_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Continuation-same_name-_specification">
<body>enclosingOperand.combinedFragment->notEmpty() and let parentInteraction : Set(Interaction) = enclosingOperand.combinedFragment->closure(enclosingOperand.combinedFragment)-> collect(enclosingInteraction).oclAsType(Interaction)->asSet() in (parentInteraction->size() = 1) and let peerInteractions : Set(Interaction) = (parentInteraction->union(parentInteraction->collect(_'context')->collect(behavior)-> select(oclIsKindOf(Interaction)).oclAsType(Interaction)->asSet())->asSet()) in (peerInteractions->notEmpty()) and let combinedFragments1 : Set(CombinedFragment) = peerInteractions.fragment-> select(oclIsKindOf(CombinedFragment)).oclAsType(CombinedFragment)->asSet() in combinedFragments1->notEmpty() and combinedFragments1->closure(operand.fragment-> select(oclIsKindOf(CombinedFragment)).oclAsType(CombinedFragment))->asSet().operand.fragment-> select(oclIsKindOf(Continuation)).oclAsType(Continuation)->asSet()-> forAll(c : Continuation | (c.name = self.name) implies (c.covered->asSet()->forAll(cl : Lifeline | -- cl must be common to one lifeline covered by self self.covered->asSet()-> select(represents = cl.represents and selector = cl.selector)->asSet()->size()=1)) and (self.covered->asSet()->forAll(cl : Lifeline | -- cl must be common to one lifeline covered by c c.covered->asSet()-> select(represents = cl.represents and selector = cl.selector)->asSet()->size()=1)) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Continuation-global" name="global">
<constrainedElement xmi:idref="Continuation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Continuation-global-_ownedComment.0" body="Continuations are always global in the enclosing InteractionFragment e.g., it always covers all Lifelines covered by the enclosing InteractionOperator.">
<annotatedElement xmi:idref="Continuation-global"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Continuation-global-_specification">
<body>enclosingOperand->notEmpty() and let operandLifelines : Set(Lifeline) = enclosingOperand.covered in (operandLifelines->notEmpty() and operandLifelines->forAll(ol :Lifeline |self.covered->includes(ol)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Continuation-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Continuation-setting" name="setting">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Continuation-setting-_ownedComment.0" body="True: when the Continuation is at the end of the enclosing InteractionFragment and False when it is in the beginning.">
<annotatedElement xmi:idref="Continuation-setting"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Continuation-setting-_defaultValue" value="true"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DestructionOccurrenceSpecification" name="DestructionOccurrenceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="DestructionOccurrenceSpecification-_ownedComment.0" body="A DestructionOccurenceSpecification models the destruction of an object.">
<annotatedElement xmi:idref="DestructionOccurrenceSpecification"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DestructionOccurrenceSpecification-no_occurrence_specifications_below" name="no_occurrence_specifications_below">
<constrainedElement xmi:idref="DestructionOccurrenceSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestructionOccurrenceSpecification-no_occurrence_specifications_below-_ownedComment.0" body="No other OccurrenceSpecifications on a given Lifeline in an InteractionOperand may appear below a DestructionOccurrenceSpecification.">
<annotatedElement xmi:idref="DestructionOccurrenceSpecification-no_occurrence_specifications_below"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DestructionOccurrenceSpecification-no_occurrence_specifications_below-_specification">
<body>let o : InteractionOperand = enclosingOperand in o->notEmpty() and let peerEvents : OrderedSet(OccurrenceSpecification) = covered.events->select(enclosingOperand = o) in peerEvents->last() = self</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DestructionOccurrenceSpecification-_generalization.0" general="MessageOccurrenceSpecification"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExecutionOccurrenceSpecification" name="ExecutionOccurrenceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionOccurrenceSpecification-_ownedComment.0" body="An ExecutionOccurrenceSpecification represents moments in time at which Actions or Behaviors start or finish.">
<annotatedElement xmi:idref="ExecutionOccurrenceSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ExecutionOccurrenceSpecification-_generalization.0" general="OccurrenceSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExecutionOccurrenceSpecification-execution" name="execution" type="ExecutionSpecification" association="A_execution_executionOccurrenceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionOccurrenceSpecification-execution-_ownedComment.0" body="References the execution specification describing the execution that is started or finished at this execution event.">
<annotatedElement xmi:idref="ExecutionOccurrenceSpecification-execution"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExecutionSpecification" name="ExecutionSpecification" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionSpecification-_ownedComment.0" body="An ExecutionSpecification is a specification of the execution of a unit of Behavior or Action within the Lifeline. The duration of an ExecutionSpecification is represented by two OccurrenceSpecifications, the start OccurrenceSpecification and the finish OccurrenceSpecification.">
<annotatedElement xmi:idref="ExecutionSpecification"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExecutionSpecification-same_lifeline" name="same_lifeline">
<constrainedElement xmi:idref="ExecutionSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionSpecification-same_lifeline-_ownedComment.0" body="The startEvent and the finishEvent must be on the same Lifeline.">
<annotatedElement xmi:idref="ExecutionSpecification-same_lifeline"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExecutionSpecification-same_lifeline-_specification">
<body>start.covered = finish.covered</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ExecutionSpecification-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExecutionSpecification-finish" name="finish" type="OccurrenceSpecification" association="A_finish_executionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionSpecification-finish-_ownedComment.0" body="References the OccurrenceSpecification that designates the finish of the Action or Behavior.">
<annotatedElement xmi:idref="ExecutionSpecification-finish"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExecutionSpecification-start" name="start" type="OccurrenceSpecification" association="A_start_executionSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionSpecification-start-_ownedComment.0" body="References the OccurrenceSpecification that designates the start of the Action or Behavior.">
<annotatedElement xmi:idref="ExecutionSpecification-start"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Gate" name="Gate">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-_ownedComment.0" body="A Gate is a MessageEnd which serves as a connection point for relating a Message which has a MessageEnd (sendEvent / receiveEvent) outside an InteractionFragment with another Message which has a MessageEnd (receiveEvent / sendEvent) inside that InteractionFragment.">
<annotatedElement xmi:idref="Gate"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-actual_gate_matched" name="actual_gate_matched">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-actual_gate_matched-_ownedComment.0" body="If this Gate is an actualGate, it must have exactly one matching formalGate within the referred Interaction.">
<annotatedElement xmi:idref="Gate-actual_gate_matched"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-actual_gate_matched-_specification">
<body>interactionUse->notEmpty() implies interactionUse.refersTo.formalGate->select(matches(self))->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-inside_cf_matched" name="inside_cf_matched">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-inside_cf_matched-_ownedComment.0" body="If this Gate is inside a CombinedFragment, it must have exactly one matching Gate which is outside of that CombinedFragment.">
<annotatedElement xmi:idref="Gate-inside_cf_matched"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-inside_cf_matched-_specification">
<body>isInsideCF() implies combinedFragment.cfragmentGate->select(isOutsideCF() and matches(self))->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-outside_cf_matched" name="outside_cf_matched">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-outside_cf_matched-_ownedComment.0" body="If this Gate is outside an 'alt' CombinedFragment, for every InteractionOperator inside that CombinedFragment there must be exactly one matching Gate inside the CombindedFragment with its opposing end enclosed by that InteractionOperator. If this Gate is outside CombinedFragment with operator other than 'alt', there must be exactly one matching Gate inside that CombinedFragment.">
<annotatedElement xmi:idref="Gate-outside_cf_matched"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-outside_cf_matched-_specification">
<body>isOutsideCF() implies if self.combinedFragment.interactionOperator->asOrderedSet()->first() = InteractionOperatorKind::alt then self.combinedFragment.operand->forAll(op : InteractionOperand | self.combinedFragment.cfragmentGate->select(isInsideCF() and oppositeEnd().enclosingFragment()->includes(self.combinedFragment) and matches(self))->size()=1) else self.combinedFragment.cfragmentGate->select(isInsideCF() and matches(self))->size()=1 endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-formal_gate_distinguishable" name="formal_gate_distinguishable">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-formal_gate_distinguishable-_ownedComment.0" body="isFormal() implies that no other formalGate of the parent Interaction returns the same getName() as returned for self">
<annotatedElement xmi:idref="Gate-formal_gate_distinguishable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-formal_gate_distinguishable-_specification">
<body>isFormal() implies interaction.formalGate->select(getName() = self.getName())->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-actual_gate_distinguishable" name="actual_gate_distinguishable">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-actual_gate_distinguishable-_ownedComment.0" body="isActual() implies that no other actualGate of the parent InteractionUse returns the same getName() as returned for self">
<annotatedElement xmi:idref="Gate-actual_gate_distinguishable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-actual_gate_distinguishable-_specification">
<body>isActual() implies interactionUse.actualGate->select(getName() = self.getName())->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-outside_cf_gate_distinguishable" name="outside_cf_gate_distinguishable">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-outside_cf_gate_distinguishable-_ownedComment.0" body="isOutsideCF() implies that no other outside cfragmentGate of the parent CombinedFragment returns the same getName() as returned for self">
<annotatedElement xmi:idref="Gate-outside_cf_gate_distinguishable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-outside_cf_gate_distinguishable-_specification">
<body>isOutsideCF() implies combinedFragment.cfragmentGate->select(getName() = self.getName())->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-inside_cf_gate_distinguishable" name="inside_cf_gate_distinguishable">
<constrainedElement xmi:idref="Gate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-inside_cf_gate_distinguishable-_ownedComment.0" body="isInsideCF() implies that no other inside cfragmentGate attached to a message with its other end in the same InteractionOperator as self, returns the same getName() as returned for self">
<annotatedElement xmi:idref="Gate-inside_cf_gate_distinguishable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-inside_cf_gate_distinguishable-_specification">
<body>isInsideCF() implies let selfOperand : InteractionOperand = self.getOperand() in combinedFragment.cfragmentGate->select(isInsideCF() and getName() = self.getName())->select(getOperand() = selfOperand)->size()=1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Gate-_generalization.0" general="MessageEnd"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-isOutsideCF" name="isOutsideCF" isQuery="true" bodyCondition="Gate-isOutsideCF-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isOutsideCF-_ownedComment.0" body="This query returns true if this Gate is attached to the boundary of a CombinedFragment, and its other end (if present) is outside of the same CombinedFragment.">
<annotatedElement xmi:idref="Gate-isOutsideCF"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-isOutsideCF-spec" name="spec">
<constrainedElement xmi:idref="Gate-isOutsideCF"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-isOutsideCF-spec-_specification">
<body>result = (self.oppositeEnd()-> notEmpty() and combinedFragment->notEmpty() implies let oppEnd : MessageEnd = self.oppositeEnd()->asOrderedSet()->first() in if oppEnd.oclIsKindOf(MessageOccurrenceSpecification) then let oppMOS : MessageOccurrenceSpecification = oppEnd.oclAsType(MessageOccurrenceSpecification) in self.combinedFragment.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(self.combinedFragment.enclosingOperand.oclAsType(InteractionFragment)->asSet()) = oppMOS.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(oppMOS.enclosingOperand.oclAsType(InteractionFragment)->asSet()) else let oppGate : Gate = oppEnd.oclAsType(Gate) in self.combinedFragment.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(self.combinedFragment.enclosingOperand.oclAsType(InteractionFragment)->asSet()) = oppGate.combinedFragment.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(oppGate.combinedFragment.enclosingOperand.oclAsType(InteractionFragment)->asSet()) endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isOutsideCF-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-isInsideCF" name="isInsideCF" isQuery="true" bodyCondition="Gate-isInsideCF-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isInsideCF-_ownedComment.0" body="This query returns true if this Gate is attached to the boundary of a CombinedFragment, and its other end (if present) is inside of an InteractionOperator of the same CombinedFragment.">
<annotatedElement xmi:idref="Gate-isInsideCF"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-isInsideCF-spec" name="spec">
<constrainedElement xmi:idref="Gate-isInsideCF"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-isInsideCF-spec-_specification">
<body>result = (self.oppositeEnd()-> notEmpty() and combinedFragment->notEmpty() implies let oppEnd : MessageEnd = self.oppositeEnd()->asOrderedSet()->first() in if oppEnd.oclIsKindOf(MessageOccurrenceSpecification) then let oppMOS : MessageOccurrenceSpecification = oppEnd.oclAsType(MessageOccurrenceSpecification) in combinedFragment = oppMOS.enclosingOperand.combinedFragment else let oppGate : Gate = oppEnd.oclAsType(Gate) in combinedFragment = oppGate.combinedFragment.enclosingOperand.combinedFragment endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isInsideCF-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-isActual" name="isActual" isQuery="true" bodyCondition="Gate-isActual-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isActual-_ownedComment.0" body="This query returns true value if this Gate is an actualGate of an InteractionUse.">
<annotatedElement xmi:idref="Gate-isActual"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-isActual-spec" name="spec">
<constrainedElement xmi:idref="Gate-isActual"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-isActual-spec-_specification">
<body>result = (interactionUse->notEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isActual-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-isFormal" name="isFormal" isQuery="true" bodyCondition="Gate-isFormal-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isFormal-_ownedComment.0" body="This query returns true if this Gate is a formalGate of an Interaction.">
<annotatedElement xmi:idref="Gate-isFormal"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-isFormal-spec" name="spec">
<constrainedElement xmi:idref="Gate-isFormal"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isFormal-spec-_ownedComment.0" body="<p>interaction->notEmpty()</p>">
<annotatedElement xmi:idref="Gate-isFormal-spec"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-isFormal-spec-_specification">
<body>result = (interaction->notEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isFormal-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-getName" name="getName" isQuery="true" bodyCondition="Gate-getName-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-getName-_ownedComment.0" body="This query returns the name of the gate, either the explicit name (.name) or the constructed name ('out_" or 'in_' concatenated in front of .message.name) if the explicit name is not present.">
<annotatedElement xmi:idref="Gate-getName"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-getName-spec" name="spec">
<constrainedElement xmi:idref="Gate-getName"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-getName-spec-_specification">
<body>result = (if name->notEmpty() then name->asOrderedSet()->first() else if isActual() or isOutsideCF() then if isSend() then 'out_'.concat(self.message.name->asOrderedSet()->first()) else 'in_'.concat(self.message.name->asOrderedSet()->first()) endif else if isSend() then 'in_'.concat(self.message.name->asOrderedSet()->first()) else 'out_'.concat(self.message.name->asOrderedSet()->first()) endif endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-getName-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-matches" name="matches" isQuery="true" bodyCondition="Gate-matches-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-matches-_ownedComment.0" body="This query returns true if the name of this Gate matches the name of the in parameter Gate, and the messages for the two Gates correspond. The Message for one Gate (say A) corresponds to the Message for another Gate (say B) if (A and B have the same name value) and (if A is a sendEvent then B is a receiveEvent) and (if A is a receiveEvent then B is a sendEvent) and (A and B have the same messageSort value) and (A and B have the same signature value).">
<annotatedElement xmi:idref="Gate-matches"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-matches-spec" name="spec">
<constrainedElement xmi:idref="Gate-matches"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-matches-spec-_specification">
<body>result = (self.getName() = gateToMatch.getName() and self.message.messageSort = gateToMatch.message.messageSort and self.message.name = gateToMatch.message.name and self.message.sendEvent->includes(self) implies gateToMatch.message.receiveEvent->includes(gateToMatch) and self.message.receiveEvent->includes(self) implies gateToMatch.message.sendEvent->includes(gateToMatch) and self.message.signature = gateToMatch.message.signature)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-matches-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-matches-gateToMatch" name="gateToMatch" type="Gate"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-isDistinguishableFrom" name="isDistinguishableFrom" isQuery="true" bodyCondition="Gate-isDistinguishableFrom-spec">
<redefinedOperation xmi:idref="NamedElement-isDistinguishableFrom"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-isDistinguishableFrom-_ownedComment.0" body="The query isDistinguishableFrom() specifies that two Gates may coexist in the same Namespace, without an explicit name property. The association end formalGate subsets ownedElement, and since the Gate name attribute is optional, it is allowed to have two formal gates without an explicit name, but having derived names which are distinct.">
<annotatedElement xmi:idref="Gate-isDistinguishableFrom"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-isDistinguishableFrom-spec" name="spec">
<constrainedElement xmi:idref="Gate-isDistinguishableFrom"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-isDistinguishableFrom-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isDistinguishableFrom-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isDistinguishableFrom-n" name="n" type="NamedElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-isDistinguishableFrom-ns" name="ns" type="Namespace"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Gate-getOperand" name="getOperand" isQuery="true" bodyCondition="Gate-getOperand-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Gate-getOperand-_ownedComment.0" body="If the Gate is an inside Combined Fragment Gate, this operation returns the InteractionOperand that the opposite end of this Gate is included within.">
<annotatedElement xmi:idref="Gate-getOperand"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Gate-getOperand-spec" name="spec">
<constrainedElement xmi:idref="Gate-getOperand"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Gate-getOperand-spec-_specification">
<body>result = (if isInsideCF() then let oppEnd : MessageEnd = self.oppositeEnd()->asOrderedSet()->first() in if oppEnd.oclIsKindOf(MessageOccurrenceSpecification) then let oppMOS : MessageOccurrenceSpecification = oppEnd.oclAsType(MessageOccurrenceSpecification) in oppMOS.enclosingOperand->asOrderedSet()->first() else let oppGate : Gate = oppEnd.oclAsType(Gate) in oppGate.combinedFragment.enclosingOperand->asOrderedSet()->first() endif else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Gate-getOperand-result" name="result" direction="return" type="InteractionOperand"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="GeneralOrdering" name="GeneralOrdering">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralOrdering-_ownedComment.0" body="A GeneralOrdering represents a binary relation between two OccurrenceSpecifications, to describe that one OccurrenceSpecification must occur before the other in a valid trace. This mechanism provides the ability to define partial orders of OccurrenceSpecifications that may otherwise not have a specified order.">
<annotatedElement xmi:idref="GeneralOrdering"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="GeneralOrdering-irreflexive_transitive_closure" name="irreflexive_transitive_closure">
<constrainedElement xmi:idref="GeneralOrdering"/>
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralOrdering-irreflexive_transitive_closure-_ownedComment.0" body="An occurrence specification must not be ordered relative to itself through a series of general orderings. (In other words, the transitive closure of the general orderings is irreflexive.)">
<annotatedElement xmi:idref="GeneralOrdering-irreflexive_transitive_closure"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="GeneralOrdering-irreflexive_transitive_closure-_specification">
<body>after->closure(toAfter.after)->excludes(before)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="GeneralOrdering-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralOrdering-after" name="after" type="OccurrenceSpecification" association="A_toBefore_after">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralOrdering-after-_ownedComment.0" body="The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before.">
<annotatedElement xmi:idref="GeneralOrdering-after"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralOrdering-before" name="before" type="OccurrenceSpecification" association="A_before_toAfter">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralOrdering-before-_ownedComment.0" body="The OccurrenceSpecification referenced comes before the OccurrenceSpecification referenced by after.">
<annotatedElement xmi:idref="GeneralOrdering-before"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Interaction" name="Interaction">
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-_ownedComment.0" body="An Interaction is a unit of Behavior that focuses on the observable exchange of information between connectable elements.">
<annotatedElement xmi:idref="Interaction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Interaction-not_contained" name="not_contained">
<constrainedElement xmi:idref="Interaction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-not_contained-_ownedComment.0" body="An Interaction instance must not be contained within another Interaction instance.">
<annotatedElement xmi:idref="Interaction-not_contained"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Interaction-not_contained-_specification">
<body>enclosingInteraction->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Interaction-_generalization.0" general="InteractionFragment"/>
<generalization xmi:type="uml:Generalization" xmi:id="Interaction-_generalization.1" general="Behavior"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interaction-action" name="action" aggregation="composite" type="Action" association="A_action_interaction">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-action-_ownedComment.0" body="Actions owned by the Interaction.">
<annotatedElement xmi:idref="Interaction-action"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interaction-action-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interaction-action-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interaction-formalGate" name="formalGate" aggregation="composite" type="Gate" association="A_formalGate_interaction">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-formalGate-_ownedComment.0" body="Specifies the gates that form the message interface between this Interaction and any InteractionUses which reference it.">
<annotatedElement xmi:idref="Interaction-formalGate"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interaction-formalGate-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interaction-formalGate-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interaction-fragment" name="fragment" isOrdered="true" aggregation="composite" type="InteractionFragment" association="A_fragment_enclosingInteraction">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-fragment-_ownedComment.0" body="The ordered set of fragments in the Interaction.">
<annotatedElement xmi:idref="Interaction-fragment"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interaction-fragment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interaction-fragment-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interaction-lifeline" name="lifeline" aggregation="composite" type="Lifeline" association="A_lifeline_interaction">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-lifeline-_ownedComment.0" body="Specifies the participants in this Interaction.">
<annotatedElement xmi:idref="Interaction-lifeline"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interaction-lifeline-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interaction-lifeline-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Interaction-message" name="message" aggregation="composite" type="Message" association="A_message_interaction">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Interaction-message-_ownedComment.0" body="The Messages contained in this Interaction.">
<annotatedElement xmi:idref="Interaction-message"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Interaction-message-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Interaction-message-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InteractionConstraint" name="InteractionConstraint">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-_ownedComment.0" body="An InteractionConstraint is a Boolean expression that guards an operand in a CombinedFragment.">
<annotatedElement xmi:idref="InteractionConstraint"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-minint_maxint" name="minint_maxint">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-minint_maxint-_ownedComment.0" body="Minint/maxint can only be present if the InteractionConstraint is associated with the operand of a loop CombinedFragment.">
<annotatedElement xmi:idref="InteractionConstraint-minint_maxint"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-minint_maxint-_specification">
<body>maxint->notEmpty() or minint->notEmpty() implies interactionOperand.combinedFragment.interactionOperator = InteractionOperatorKind::loop</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-minint_non_negative" name="minint_non_negative">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-minint_non_negative-_ownedComment.0" body="If minint is specified, then the expression must evaluate to a non-negative integer.">
<annotatedElement xmi:idref="InteractionConstraint-minint_non_negative"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-minint_non_negative-_specification">
<body>minint->notEmpty() implies minint->asSequence()->first().integerValue() >= 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-maxint_positive" name="maxint_positive">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-maxint_positive-_ownedComment.0" body="If maxint is specified, then the expression must evaluate to a positive integer.">
<annotatedElement xmi:idref="InteractionConstraint-maxint_positive"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-maxint_positive-_specification">
<body>maxint->notEmpty() implies maxint->asSequence()->first().integerValue() > 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-dynamic_variables" name="dynamic_variables">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-dynamic_variables-_ownedComment.0" body="The dynamic variables that take part in the constraint must be owned by the ConnectableElement corresponding to the covered Lifeline.">
<annotatedElement xmi:idref="InteractionConstraint-dynamic_variables"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-dynamic_variables-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-global_data" name="global_data">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-global_data-_ownedComment.0" body="The constraint may contain references to global data or write-once data.">
<annotatedElement xmi:idref="InteractionConstraint-global_data"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-global_data-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionConstraint-maxint_greater_equal_minint" name="maxint_greater_equal_minint">
<constrainedElement xmi:idref="InteractionConstraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-maxint_greater_equal_minint-_ownedComment.0" body="If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint.">
<annotatedElement xmi:idref="InteractionConstraint-maxint_greater_equal_minint"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionConstraint-maxint_greater_equal_minint-_specification">
<body>maxint->notEmpty() implies (minint->notEmpty() and maxint->asSequence()->first().integerValue() >= minint->asSequence()->first().integerValue() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InteractionConstraint-_generalization.0" general="Constraint"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionConstraint-maxint" name="maxint" aggregation="composite" type="ValueSpecification" association="A_maxint_interactionConstraint">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-maxint-_ownedComment.0" body="The maximum number of iterations of a loop">
<annotatedElement xmi:idref="InteractionConstraint-maxint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionConstraint-maxint-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionConstraint-minint" name="minint" aggregation="composite" type="ValueSpecification" association="A_minint_interactionConstraint">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionConstraint-minint-_ownedComment.0" body="The minimum number of iterations of a loop">
<annotatedElement xmi:idref="InteractionConstraint-minint"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionConstraint-minint-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InteractionFragment" name="InteractionFragment" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionFragment-_ownedComment.0" body="InteractionFragment is an abstract notion of the most general interaction unit. An InteractionFragment is a piece of an Interaction. Each InteractionFragment is conceptually like an Interaction by itself.">
<annotatedElement xmi:idref="InteractionFragment"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="InteractionFragment-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionFragment-covered" name="covered" type="Lifeline" association="A_covered_coveredBy">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionFragment-covered-_ownedComment.0" body="References the Lifelines that the InteractionFragment involves.">
<annotatedElement xmi:idref="InteractionFragment-covered"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionFragment-covered-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InteractionFragment-covered-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionFragment-enclosingInteraction" name="enclosingInteraction" type="Interaction" association="A_fragment_enclosingInteraction">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionFragment-enclosingInteraction-_ownedComment.0" body="The Interaction enclosing this InteractionFragment.">
<annotatedElement xmi:idref="InteractionFragment-enclosingInteraction"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionFragment-enclosingInteraction-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionFragment-enclosingOperand" name="enclosingOperand" type="InteractionOperand" association="A_fragment_enclosingOperand">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionFragment-enclosingOperand-_ownedComment.0" body="The operand enclosing this InteractionFragment (they may nest recursively).">
<annotatedElement xmi:idref="InteractionFragment-enclosingOperand"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionFragment-enclosingOperand-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionFragment-generalOrdering" name="generalOrdering" aggregation="composite" type="GeneralOrdering" association="A_generalOrdering_interactionFragment">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionFragment-generalOrdering-_ownedComment.0" body="The general ordering relationships contained in this fragment.">
<annotatedElement xmi:idref="InteractionFragment-generalOrdering"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionFragment-generalOrdering-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InteractionFragment-generalOrdering-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InteractionOperand" name="InteractionOperand">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperand-_ownedComment.0" body="An InteractionOperand is contained in a CombinedFragment. An InteractionOperand represents one operand of the expression given by the enclosing CombinedFragment.">
<annotatedElement xmi:idref="InteractionOperand"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionOperand-guard_contain_references" name="guard_contain_references">
<constrainedElement xmi:idref="InteractionOperand"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperand-guard_contain_references-_ownedComment.0" body="The guard must contain only references to values local to the Lifeline on which it resides, or values global to the whole Interaction.">
<annotatedElement xmi:idref="InteractionOperand-guard_contain_references"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionOperand-guard_contain_references-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionOperand-guard_directly_prior" name="guard_directly_prior">
<constrainedElement xmi:idref="InteractionOperand"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperand-guard_directly_prior-_ownedComment.0" body="The guard must be placed directly prior to (above) the OccurrenceSpecification that will become the first OccurrenceSpecification within this InteractionOperand.">
<annotatedElement xmi:idref="InteractionOperand-guard_directly_prior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionOperand-guard_directly_prior-_specification"/>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InteractionOperand-_generalization.0" general="InteractionFragment"/>
<generalization xmi:type="uml:Generalization" xmi:id="InteractionOperand-_generalization.1" general="Namespace"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionOperand-fragment" name="fragment" isOrdered="true" aggregation="composite" type="InteractionFragment" association="A_fragment_enclosingOperand">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperand-fragment-_ownedComment.0" body="The fragments of the operand.">
<annotatedElement xmi:idref="InteractionOperand-fragment"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionOperand-fragment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InteractionOperand-fragment-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionOperand-guard" name="guard" aggregation="composite" type="InteractionConstraint" association="A_guard_interactionOperand">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperand-guard-_ownedComment.0" body="Constraint of the operand.">
<annotatedElement xmi:idref="InteractionOperand-guard"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionOperand-guard-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InteractionUse" name="InteractionUse">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-_ownedComment.0" body="An InteractionUse refers to an Interaction. The InteractionUse is a shorthand for copying the contents of the referenced Interaction where the InteractionUse is. To be accurate the copying must take into account substituting parameters with arguments and connect the formal Gates with the actual ones.">
<annotatedElement xmi:idref="InteractionUse"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-gates_match" name="gates_match">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-gates_match-_ownedComment.0" body="Actual Gates of the InteractionUse must match Formal Gates of the referred Interaction. Gates match when their names are equal and their messages correspond.">
<annotatedElement xmi:idref="InteractionUse-gates_match"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-gates_match-_specification">
<body>actualGate->notEmpty() implies refersTo.formalGate->forAll( fg : Gate | self.actualGate->select(matches(fg))->size()=1) and self.actualGate->forAll(ag : Gate | refersTo.formalGate->select(matches(ag))->size()=1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-arguments_are_constants" name="arguments_are_constants">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-arguments_are_constants-_ownedComment.0" body="The arguments must only be constants, parameters of the enclosing Interaction or attributes of the classifier owning the enclosing Interaction.">
<annotatedElement xmi:idref="InteractionUse-arguments_are_constants"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-arguments_are_constants-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-returnValueRecipient_coverage" name="returnValueRecipient_coverage">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-returnValueRecipient_coverage-_ownedComment.0" body="The returnValueRecipient must be a Property of a ConnectableElement that is represented by a Lifeline covered by this InteractionUse.">
<annotatedElement xmi:idref="InteractionUse-returnValueRecipient_coverage"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-returnValueRecipient_coverage-_specification">
<body>returnValueRecipient->asSet()->notEmpty() implies let covCE : Set(ConnectableElement) = covered.represents->asSet() in covCE->notEmpty() and let classes:Set(Classifier) = covCE.type.oclIsKindOf(Classifier).oclAsType(Classifier)->asSet() in let allProps : Set(Property) = classes.attribute->union(classes.allParents().attribute)->asSet() in allProps->includes(returnValueRecipient)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-arguments_correspond_to_parameters" name="arguments_correspond_to_parameters">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-arguments_correspond_to_parameters-_ownedComment.0" body="The arguments of the InteractionUse must correspond to parameters of the referred Interaction.">
<annotatedElement xmi:idref="InteractionUse-arguments_correspond_to_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-arguments_correspond_to_parameters-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-returnValue_type_recipient_correspondence" name="returnValue_type_recipient_correspondence">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-returnValue_type_recipient_correspondence-_ownedComment.0" body="The type of the returnValue must correspond to the type of the returnValueRecipient.">
<annotatedElement xmi:idref="InteractionUse-returnValue_type_recipient_correspondence"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-returnValue_type_recipient_correspondence-_specification">
<body>returnValue.type->asSequence()->notEmpty() implies returnValue.type->asSequence()->first() = returnValueRecipient.type->asSequence()->first() </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InteractionUse-all_lifelines" name="all_lifelines">
<constrainedElement xmi:idref="InteractionUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-all_lifelines-_ownedComment.0" body="The InteractionUse must cover all Lifelines of the enclosing Interaction that are common with the lifelines covered by the referred Interaction. Lifelines are common if they have the same selector and represents associationEnd values.">
<annotatedElement xmi:idref="InteractionUse-all_lifelines"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InteractionUse-all_lifelines-_specification">
<body>let parentInteraction : Set(Interaction) = enclosingInteraction->asSet()-> union(enclosingOperand.combinedFragment->closure(enclosingOperand.combinedFragment)-> collect(enclosingInteraction).oclAsType(Interaction)->asSet()) in parentInteraction->size()=1 and let refInteraction : Interaction = refersTo in parentInteraction.covered-> forAll(intLifeline : Lifeline | refInteraction.covered-> forAll( refLifeline : Lifeline | refLifeline.represents = intLifeline.represents and ( ( refLifeline.selector.oclIsKindOf(LiteralString) implies intLifeline.selector.oclIsKindOf(LiteralString) and refLifeline.selector.oclAsType(LiteralString).value = intLifeline.selector.oclAsType(LiteralString).value ) and ( refLifeline.selector.oclIsKindOf(LiteralInteger) implies intLifeline.selector.oclIsKindOf(LiteralInteger) and refLifeline.selector.oclAsType(LiteralInteger).value = intLifeline.selector.oclAsType(LiteralInteger).value ) ) implies self.covered->asSet()->includes(intLifeline)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InteractionUse-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionUse-actualGate" name="actualGate" aggregation="composite" type="Gate" association="A_actualGate_interactionUse">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-actualGate-_ownedComment.0" body="The actual gates of the InteractionUse.">
<annotatedElement xmi:idref="InteractionUse-actualGate"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionUse-actualGate-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InteractionUse-actualGate-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionUse-argument" name="argument" isOrdered="true" aggregation="composite" type="ValueSpecification" association="A_argument_interactionUse">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-argument-_ownedComment.0" body="The actual arguments of the Interaction.">
<annotatedElement xmi:idref="InteractionUse-argument"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionUse-argument-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InteractionUse-argument-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionUse-refersTo" name="refersTo" type="Interaction" association="A_refersTo_interactionUse">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-refersTo-_ownedComment.0" body="Refers to the Interaction that defines its meaning.">
<annotatedElement xmi:idref="InteractionUse-refersTo"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionUse-returnValue" name="returnValue" aggregation="composite" type="ValueSpecification" association="A_returnValue_interactionUse">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-returnValue-_ownedComment.0" body="The value of the executed Interaction.">
<annotatedElement xmi:idref="InteractionUse-returnValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionUse-returnValue-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InteractionUse-returnValueRecipient" name="returnValueRecipient" type="Property" association="A_returnValueRecipient_interactionUse">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionUse-returnValueRecipient-_ownedComment.0" body="The recipient of the return value.">
<annotatedElement xmi:idref="InteractionUse-returnValueRecipient"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InteractionUse-returnValueRecipient-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Lifeline" name="Lifeline">
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-_ownedComment.0" body="A Lifeline represents an individual participant in the Interaction. While parts and structural features may have multiplicity greater than 1, Lifelines represent only one interacting entity.">
<annotatedElement xmi:idref="Lifeline"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Lifeline-selector_specified" name="selector_specified">
<constrainedElement xmi:idref="Lifeline"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-selector_specified-_ownedComment.0" body="The selector for a Lifeline must only be specified if the referenced Part is multivalued.">
<annotatedElement xmi:idref="Lifeline-selector_specified"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Lifeline-selector_specified-_specification">
<body> self.selector->notEmpty() = (self.represents.oclIsKindOf(MultiplicityElement) and self.represents.oclAsType(MultiplicityElement).isMultivalued())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Lifeline-interaction_uses_share_lifeline" name="interaction_uses_share_lifeline">
<constrainedElement xmi:idref="Lifeline"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-interaction_uses_share_lifeline-_ownedComment.0" body="If a lifeline is in an Interaction referred to by an InteractionUse in an enclosing Interaction, and that lifeline is common with another lifeline in an Interaction referred to by another InteractonUse within that same enclosing Interaction, it must be common to a lifeline within that enclosing Interaction. By common Lifelines we mean Lifelines with the same selector and represents associations. ">
<annotatedElement xmi:idref="Lifeline-interaction_uses_share_lifeline"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Lifeline-interaction_uses_share_lifeline-_specification">
<body>let intUses : Set(InteractionUse) = interaction.interactionUse in intUses->forAll ( iuse : InteractionUse | let usingInteraction : Set(Interaction) = iuse.enclosingInteraction->asSet() ->union( iuse.enclosingOperand.combinedFragment->asSet()->closure(enclosingOperand.combinedFragment).enclosingInteraction->asSet() ) in let peerUses : Set(InteractionUse) = usingInteraction.fragment->select(oclIsKindOf(InteractionUse)).oclAsType(InteractionUse)->asSet() ->union( usingInteraction.fragment->select(oclIsKindOf(CombinedFragment)).oclAsType(CombinedFragment)->asSet() ->closure(operand.fragment->select(oclIsKindOf(CombinedFragment)).oclAsType(CombinedFragment)).operand.fragment-> select(oclIsKindOf(InteractionUse)).oclAsType(InteractionUse)->asSet() )->excluding(iuse) in peerUses->forAll( peerUse : InteractionUse | peerUse.refersTo.lifeline->forAll( l : Lifeline | (l.represents = self.represents and ( self.selector.oclIsKindOf(LiteralString) implies l.selector.oclIsKindOf(LiteralString) and self.selector.oclAsType(LiteralString).value = l.selector.oclAsType(LiteralString).value ) and ( self.selector.oclIsKindOf(LiteralInteger) implies l.selector.oclIsKindOf(LiteralInteger) and self.selector.oclAsType(LiteralInteger).value = l.selector.oclAsType(LiteralInteger).value ) ) implies usingInteraction.lifeline->select(represents = self.represents and ( self.selector.oclIsKindOf(LiteralString) implies l.selector.oclIsKindOf(LiteralString) and self.selector.oclAsType(LiteralString).value = l.selector.oclAsType(LiteralString).value ) and ( self.selector.oclIsKindOf(LiteralInteger) implies l.selector.oclIsKindOf(LiteralInteger) and self.selector.oclAsType(LiteralInteger).value = l.selector.oclAsType(LiteralInteger).value ) ) ) ) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Lifeline-same_classifier" name="same_classifier">
<constrainedElement xmi:idref="Lifeline"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-same_classifier-_ownedComment.0" body="The classifier containing the referenced ConnectableElement must be the same classifier, or an ancestor, of the classifier that contains the interaction enclosing this lifeline.">
<annotatedElement xmi:idref="Lifeline-same_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Lifeline-same_classifier-_specification">
<body>represents.namespace->closure(namespace)->includes(interaction._'context')</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Lifeline-selector_int_or_string" name="selector_int_or_string">
<constrainedElement xmi:idref="Lifeline"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-selector_int_or_string-_ownedComment.0" body="The selector value, if present, must be a LiteralString or a LiteralInteger ">
<annotatedElement xmi:idref="Lifeline-selector_int_or_string"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Lifeline-selector_int_or_string-_specification">
<body>self.selector->notEmpty() implies self.selector.oclIsKindOf(LiteralInteger) or self.selector.oclIsKindOf(LiteralString)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Lifeline-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Lifeline-coveredBy" name="coveredBy" type="InteractionFragment" association="A_covered_coveredBy">
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-coveredBy-_ownedComment.0" body="References the InteractionFragments in which this Lifeline takes part.">
<annotatedElement xmi:idref="Lifeline-coveredBy"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Lifeline-coveredBy-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Lifeline-coveredBy-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Lifeline-decomposedAs" name="decomposedAs" type="PartDecomposition" association="A_decomposedAs_lifeline">
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-decomposedAs-_ownedComment.0" body="References the Interaction that represents the decomposition.">
<annotatedElement xmi:idref="Lifeline-decomposedAs"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Lifeline-decomposedAs-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Lifeline-interaction" name="interaction" type="Interaction" association="A_lifeline_interaction">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-interaction-_ownedComment.0" body="References the Interaction enclosing this Lifeline.">
<annotatedElement xmi:idref="Lifeline-interaction"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Lifeline-represents" name="represents" type="ConnectableElement" association="A_represents_lifeline">
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-represents-_ownedComment.0" body="References the ConnectableElement within the classifier that contains the enclosing interaction.">
<annotatedElement xmi:idref="Lifeline-represents"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Lifeline-represents-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Lifeline-selector" name="selector" aggregation="composite" type="ValueSpecification" association="A_selector_lifeline">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Lifeline-selector-_ownedComment.0" body="If the referenced ConnectableElement is multivalued, then this specifies the specific individual part within that set.">
<annotatedElement xmi:idref="Lifeline-selector"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Lifeline-selector-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Message" name="Message">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-_ownedComment.0" body="A Message defines a particular communication between Lifelines of an Interaction.">
<annotatedElement xmi:idref="Message"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-sending_receiving_message_event" name="sending_receiving_message_event">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-sending_receiving_message_event-_ownedComment.0" body="If the sendEvent and the receiveEvent of the same Message are on the same Lifeline, the sendEvent must be ordered before the receiveEvent.">
<annotatedElement xmi:idref="Message-sending_receiving_message_event"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-sending_receiving_message_event-_specification">
<body>receiveEvent.oclIsKindOf(MessageOccurrenceSpecification) implies let f : Lifeline = sendEvent->select(oclIsKindOf(MessageOccurrenceSpecification)).oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first().covered in f = receiveEvent->select(oclIsKindOf(MessageOccurrenceSpecification)).oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first().covered implies f.events->indexOf(sendEvent.oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first() ) < f.events->indexOf(receiveEvent.oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-arguments" name="arguments">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-arguments-_ownedComment.0" body="Arguments of a Message must only be: i) attributes of the sending lifeline, ii) constants, iii) symbolic values (which are wildcard values representing any legal value), iv) explicit parameters of the enclosing Interaction, v) attributes of the class owning the Interaction.">
<annotatedElement xmi:idref="Message-arguments"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-arguments-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-cannot_cross_boundaries" name="cannot_cross_boundaries">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-cannot_cross_boundaries-_ownedComment.0" body="Messages cannot cross boundaries of CombinedFragments or their operands. This is true if and only if both MessageEnds are enclosed within the same InteractionFragment (i.e., an InteractionOperand or an Interaction).">
<annotatedElement xmi:idref="Message-cannot_cross_boundaries"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-cannot_cross_boundaries-_specification">
<body>sendEvent->notEmpty() and receiveEvent->notEmpty() implies let sendEnclosingFrag : Set(InteractionFragment) = sendEvent->asOrderedSet()->first().enclosingFragment() in let receiveEnclosingFrag : Set(InteractionFragment) = receiveEvent->asOrderedSet()->first().enclosingFragment() in sendEnclosingFrag = receiveEnclosingFrag</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-signature_is_signal" name="signature_is_signal">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-signature_is_signal-_ownedComment.0" body="In the case when the Message signature is a Signal, the arguments of the Message must correspond to the attributes of the Signal. A Message Argument corresponds to a Signal Attribute if the Argument is of the same Class or a specialization of that of the Attribute.">
<annotatedElement xmi:idref="Message-signature_is_signal"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-signature_is_signal-_specification">
<body>(messageSort = MessageSort::asynchSignal ) and signature.oclIsKindOf(Signal) implies let signalAttributes : OrderedSet(Property) = signature.oclAsType(Signal).inheritedMember()-> select(n:NamedElement | n.oclIsTypeOf(Property))->collect(oclAsType(Property))->asOrderedSet() in signalAttributes->size() = self.argument->size() and self.argument->forAll( o: ValueSpecification | not (o.oclIsKindOf(Expression) and o.oclAsType(Expression).symbol->size()=0 and o.oclAsType(Expression).operand->isEmpty() ) implies let p : Property = signalAttributes->at(self.argument->indexOf(o)) in o.type.oclAsType(Classifier).conformsTo(p.type.oclAsType(Classifier))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-occurrence_specifications" name="occurrence_specifications">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-occurrence_specifications-_ownedComment.0" body="If the MessageEnds are both OccurrenceSpecifications, then the connector must go between the Parts represented by the Lifelines of the two MessageEnds.">
<annotatedElement xmi:idref="Message-occurrence_specifications"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-occurrence_specifications-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-signature_refer_to" name="signature_refer_to">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-signature_refer_to-_ownedComment.0" body="The signature must either refer an Operation (in which case messageSort is either synchCall or asynchCall or reply) or a Signal (in which case messageSort is asynchSignal). The name of the NamedElement referenced by signature must be the same as that of the Message.">
<annotatedElement xmi:idref="Message-signature_refer_to"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-signature_refer_to-_specification">
<body>signature->notEmpty() implies ((signature.oclIsKindOf(Operation) and (messageSort = MessageSort::asynchCall or messageSort = MessageSort::synchCall or messageSort = MessageSort::reply) ) or (signature.oclIsKindOf(Signal) and messageSort = MessageSort::asynchSignal ) ) and name = signature.name</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-signature_is_operation_request" name="signature_is_operation_request">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-signature_is_operation_request-_ownedComment.0" body="In the case when a Message with messageSort synchCall or asynchCall has a non empty Operation signature, the arguments of the Message must correspond to the in and inout parameters of the Operation. A Parameter corresponds to an Argument if the Argument is of the same Class or a specialization of that of the Parameter.">
<annotatedElement xmi:idref="Message-signature_is_operation_request"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-signature_is_operation_request-_specification">
<body>(messageSort = MessageSort::asynchCall or messageSort = MessageSort::synchCall) and signature.oclIsKindOf(Operation) implies let requestParms : OrderedSet(Parameter) = signature.oclAsType(Operation).ownedParameter-> select(direction = ParameterDirectionKind::inout or direction = ParameterDirectionKind::_'in' ) in requestParms->size() = self.argument->size() and self.argument->forAll( o: ValueSpecification | not (o.oclIsKindOf(Expression) and o.oclAsType(Expression).symbol->size()=0 and o.oclAsType(Expression).operand->isEmpty() ) implies let p : Parameter = requestParms->at(self.argument->indexOf(o)) in o.type.oclAsType(Classifier).conformsTo(p.type.oclAsType(Classifier)) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-signature_is_operation_reply" name="signature_is_operation_reply">
<constrainedElement xmi:idref="Message"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-signature_is_operation_reply-_ownedComment.0" body="In the case when a Message with messageSort reply has a non empty Operation signature, the arguments of the Message must correspond to the out, inout, and return parameters of the Operation. A Parameter corresponds to an Argument if the Argument is of the same Class or a specialization of that of the Parameter.">
<annotatedElement xmi:idref="Message-signature_is_operation_reply"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-signature_is_operation_reply-_specification">
<body>(messageSort = MessageSort::reply) and signature.oclIsKindOf(Operation) implies let replyParms : OrderedSet(Parameter) = signature.oclAsType(Operation).ownedParameter-> select(direction = ParameterDirectionKind::inout or direction = ParameterDirectionKind::out or direction = ParameterDirectionKind::return) in replyParms->size() = self.argument->size() and self.argument->forAll( o: ValueSpecification | o.oclIsKindOf(Expression) and let e : Expression = o.oclAsType(Expression) in e.operand->notEmpty() implies let p : Parameter = replyParms->at(self.argument->indexOf(o)) in e.operand->asSequence()->first().type.oclAsType(Classifier).conformsTo(p.type.oclAsType(Classifier)) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Message-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-argument" name="argument" isOrdered="true" aggregation="composite" type="ValueSpecification" association="A_argument_message">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-argument-_ownedComment.0" body="The arguments of the Message.">
<annotatedElement xmi:idref="Message-argument"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Message-argument-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Message-argument-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-connector" name="connector" type="Connector" association="A_connector_message">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-connector-_ownedComment.0" body="The Connector on which this Message is sent.">
<annotatedElement xmi:idref="Message-connector"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Message-connector-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-interaction" name="interaction" type="Interaction" association="A_message_interaction">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-interaction-_ownedComment.0" body="The enclosing Interaction owning the Message.">
<annotatedElement xmi:idref="Message-interaction"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-messageKind" name="messageKind" isReadOnly="true" isDerived="true" type="MessageKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-messageKind-_ownedComment.0" body="The derived kind of the Message (complete, lost, found, or unknown).">
<annotatedElement xmi:idref="Message-messageKind"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-messageSort" name="messageSort" type="MessageSort">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-messageSort-_ownedComment.0" body="The sort of communication reflected by the Message.">
<annotatedElement xmi:idref="Message-messageSort"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="Message-messageSort-_defaultValue" type="MessageSort" instance="MessageSort-synchCall"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-receiveEvent" name="receiveEvent" type="MessageEnd" association="A_receiveEvent_endMessage">
<subsettedProperty xmi:idref="A_message_messageEnd-messageEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-receiveEvent-_ownedComment.0" body="References the Receiving of the Message.">
<annotatedElement xmi:idref="Message-receiveEvent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Message-receiveEvent-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-sendEvent" name="sendEvent" type="MessageEnd" association="A_sendEvent_endMessage">
<subsettedProperty xmi:idref="A_message_messageEnd-messageEnd"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-sendEvent-_ownedComment.0" body="References the Sending of the Message.">
<annotatedElement xmi:idref="Message-sendEvent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Message-sendEvent-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Message-signature" name="signature" type="NamedElement" association="A_signature_message">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-signature-_ownedComment.0" body="The signature of the Message is the specification of its content. It refers either an Operation or a Signal.">
<annotatedElement xmi:idref="Message-signature"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Message-signature-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Message-messageKind.1" name="messageKind" isQuery="true" bodyCondition="Message-messageKind.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Message-messageKind.1-_ownedComment.0" body="This query returns the MessageKind value for this Message.">
<annotatedElement xmi:idref="Message-messageKind.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-messageKind.1-spec" name="spec">
<constrainedElement xmi:idref="Message-messageKind.1"/>
<constrainedElement xmi:idref="Message-messageKind"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-messageKind.1-spec-_specification">
<body>result = (messageKind)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Message-messageKind.1-result" name="result" direction="return" type="MessageKind"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Message-isDistinguishableFrom" name="isDistinguishableFrom" isQuery="true" bodyCondition="Message-isDistinguishableFrom-spec">
<redefinedOperation xmi:idref="NamedElement-isDistinguishableFrom"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Message-isDistinguishableFrom-_ownedComment.0" body="The query isDistinguishableFrom() specifies that any two Messages may coexist in the same Namespace, regardless of their names.">
<annotatedElement xmi:idref="Message-isDistinguishableFrom"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Message-isDistinguishableFrom-spec" name="spec">
<constrainedElement xmi:idref="Message-isDistinguishableFrom"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Message-isDistinguishableFrom-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Message-isDistinguishableFrom-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Message-isDistinguishableFrom-n" name="n" type="NamedElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Message-isDistinguishableFrom-ns" name="ns" type="Namespace"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="MessageEnd" name="MessageEnd" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-_ownedComment.0" body="MessageEnd is an abstract specialization of NamedElement that represents what can occur at the end of a Message.">
<annotatedElement xmi:idref="MessageEnd"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="MessageEnd-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="MessageEnd-message" name="message" type="Message" association="A_message_messageEnd">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-message-_ownedComment.0" body="References a Message.">
<annotatedElement xmi:idref="MessageEnd-message"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MessageEnd-message-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="MessageEnd-oppositeEnd" name="oppositeEnd" isQuery="true" bodyCondition="MessageEnd-oppositeEnd-spec">
<precondition xmi:idref="MessageEnd-oppositeEnd-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-oppositeEnd-_ownedComment.0" body="This query returns a set including the MessageEnd (if exists) at the opposite end of the Message for this MessageEnd.">
<annotatedElement xmi:idref="MessageEnd-oppositeEnd"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-oppositeEnd-spec" name="spec">
<constrainedElement xmi:idref="MessageEnd-oppositeEnd"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-oppositeEnd-spec-_specification">
<body>result = (message->asSet().messageEnd->asSet()->excluding(self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-oppositeEnd-pre" name="pre">
<constrainedElement xmi:idref="MessageEnd-oppositeEnd"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-oppositeEnd-pre-_specification">
<body>message->notEmpty() </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MessageEnd-oppositeEnd-result" name="result" direction="return" type="MessageEnd">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MessageEnd-oppositeEnd-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="MessageEnd-oppositeEnd-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MessageEnd-isSend" name="isSend" isQuery="true" bodyCondition="MessageEnd-isSend-spec">
<precondition xmi:idref="MessageEnd-isSend-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-isSend-_ownedComment.0" body="This query returns value true if this MessageEnd is a sendEvent.">
<annotatedElement xmi:idref="MessageEnd-isSend"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-isSend-pre" name="pre">
<constrainedElement xmi:idref="MessageEnd-isSend"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-isSend-pre-_specification">
<body>message->notEmpty() </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-isSend-spec" name="spec">
<constrainedElement xmi:idref="MessageEnd-isSend"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-isSend-spec-_specification">
<body>result = (message.sendEvent->asSet()->includes(self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MessageEnd-isSend-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MessageEnd-isReceive" name="isReceive" isQuery="true" bodyCondition="MessageEnd-isReceive-spec">
<precondition xmi:idref="MessageEnd-isReceive-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-isReceive-_ownedComment.0" body="This query returns value true if this MessageEnd is a receiveEvent.">
<annotatedElement xmi:idref="MessageEnd-isReceive"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-isReceive-pre" name="pre">
<constrainedElement xmi:idref="MessageEnd-isReceive"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-isReceive-pre-_ownedComment.0" body="<p>message->notEmpty()</p>">
<annotatedElement xmi:idref="MessageEnd-isReceive-pre"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-isReceive-pre-_specification">
<body>message->notEmpty() </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-isReceive-spec" name="spec">
<constrainedElement xmi:idref="MessageEnd-isReceive"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-isReceive-spec-_specification">
<body>result = (message.receiveEvent->asSet()->includes(self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MessageEnd-isReceive-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MessageEnd-enclosingFragment" name="enclosingFragment" isQuery="true" bodyCondition="MessageEnd-enclosingFragment-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEnd-enclosingFragment-_ownedComment.0" body="This query returns a set including the enclosing InteractionFragment this MessageEnd is enclosed within.">
<annotatedElement xmi:idref="MessageEnd-enclosingFragment"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MessageEnd-enclosingFragment-spec" name="spec">
<constrainedElement xmi:idref="MessageEnd-enclosingFragment"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MessageEnd-enclosingFragment-spec-_specification">
<body>result = (if self->select(oclIsKindOf(Gate))->notEmpty() then -- it is a Gate let endGate : Gate = self->select(oclIsKindOf(Gate)).oclAsType(Gate)->asOrderedSet()->first() in if endGate.isOutsideCF() then endGate.combinedFragment.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(endGate.combinedFragment.enclosingOperand.oclAsType(InteractionFragment)->asSet()) else if endGate.isInsideCF() then endGate.combinedFragment.oclAsType(InteractionFragment)->asSet() else if endGate.isFormal() then endGate.interaction.oclAsType(InteractionFragment)->asSet() else if endGate.isActual() then endGate.interactionUse.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(endGate.interactionUse.enclosingOperand.oclAsType(InteractionFragment)->asSet()) else null endif endif endif endif else -- it is a MessageOccurrenceSpecification let endMOS : MessageOccurrenceSpecification = self->select(oclIsKindOf(MessageOccurrenceSpecification)).oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first() in if endMOS.enclosingInteraction->notEmpty() then endMOS.enclosingInteraction.oclAsType(InteractionFragment)->asSet() else endMOS.enclosingOperand.oclAsType(InteractionFragment)->asSet() endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MessageEnd-enclosingFragment-result" name="result" direction="return" type="InteractionFragment">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MessageEnd-enclosingFragment-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="MessageEnd-enclosingFragment-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="MessageOccurrenceSpecification" name="MessageOccurrenceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageOccurrenceSpecification-_ownedComment.0" body="A MessageOccurrenceSpecification specifies the occurrence of Message events, such as sending and receiving of Signals or invoking or receiving of Operation calls. A MessageOccurrenceSpecification is a kind of MessageEnd. Messages are generated either by synchronous Operation calls or asynchronous Signal sends. They are received by the execution of corresponding AcceptEventActions.">
<annotatedElement xmi:idref="MessageOccurrenceSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="MessageOccurrenceSpecification-_generalization.0" general="MessageEnd"/>
<generalization xmi:type="uml:Generalization" xmi:id="MessageOccurrenceSpecification-_generalization.1" general="OccurrenceSpecification"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OccurrenceSpecification" name="OccurrenceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="OccurrenceSpecification-_ownedComment.0" body="An OccurrenceSpecification is the basic semantic unit of Interactions. The sequences of occurrences specified by them are the meanings of Interactions.">
<annotatedElement xmi:idref="OccurrenceSpecification"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="OccurrenceSpecification-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="OccurrenceSpecification-covered" name="covered" type="Lifeline" association="A_covered_events">
<redefinedProperty xmi:idref="InteractionFragment-covered"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OccurrenceSpecification-covered-_ownedComment.0" body="References the Lifeline on which the OccurrenceSpecification appears.">
<annotatedElement xmi:idref="OccurrenceSpecification-covered"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OccurrenceSpecification-toAfter" name="toAfter" type="GeneralOrdering" association="A_before_toAfter">
<ownedComment xmi:type="uml:Comment" xmi:id="OccurrenceSpecification-toAfter-_ownedComment.0" body="References the GeneralOrderings that specify EventOcurrences that must occur after this OccurrenceSpecification.">
<annotatedElement xmi:idref="OccurrenceSpecification-toAfter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OccurrenceSpecification-toAfter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OccurrenceSpecification-toAfter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OccurrenceSpecification-toBefore" name="toBefore" type="GeneralOrdering" association="A_toBefore_after">
<ownedComment xmi:type="uml:Comment" xmi:id="OccurrenceSpecification-toBefore-_ownedComment.0" body="References the GeneralOrderings that specify EventOcurrences that must occur before this OccurrenceSpecification.">
<annotatedElement xmi:idref="OccurrenceSpecification-toBefore"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OccurrenceSpecification-toBefore-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OccurrenceSpecification-toBefore-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="PartDecomposition" name="PartDecomposition">
<ownedComment xmi:type="uml:Comment" xmi:id="PartDecomposition-_ownedComment.0" body="A PartDecomposition is a description of the internal Interactions of one Lifeline relative to an Interaction.">
<annotatedElement xmi:idref="PartDecomposition"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="PartDecomposition-commutativity_of_decomposition" name="commutativity_of_decomposition">
<constrainedElement xmi:idref="PartDecomposition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PartDecomposition-commutativity_of_decomposition-_ownedComment.0" body="Assume that within Interaction X, Lifeline L is of class C and decomposed to D. Assume also that there is within X an InteractionUse (say) U that covers L. According to the constraint above U will have a counterpart CU within D. Within the Interaction referenced by U, L should also be decomposed, and the decomposition should reference CU. (This rule is called commutativity of decomposition.)">
<annotatedElement xmi:idref="PartDecomposition-commutativity_of_decomposition"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="PartDecomposition-commutativity_of_decomposition-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="PartDecomposition-assume" name="assume">
<constrainedElement xmi:idref="PartDecomposition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PartDecomposition-assume-_ownedComment.0" body="Assume that within Interaction X, Lifeline L is of class C and decomposed to D. Within X there is a sequence of constructs along L (such constructs are CombinedFragments, InteractionUse and (plain) OccurrenceSpecifications). Then a corresponding sequence of constructs must appear within D, matched one-to-one in the same order. i) CombinedFragment covering L are matched with an extra-global CombinedFragment in D. ii) An InteractionUse covering L is matched with a global (i.e., covering all Lifelines) InteractionUse in D. iii) A plain OccurrenceSpecification on L is considered an actualGate that must be matched by a formalGate of D.">
<annotatedElement xmi:idref="PartDecomposition-assume"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="PartDecomposition-assume-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="PartDecomposition-parts_of_internal_structures" name="parts_of_internal_structures">
<constrainedElement xmi:idref="PartDecomposition"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PartDecomposition-parts_of_internal_structures-_ownedComment.0" body="PartDecompositions apply only to Parts that are Parts of Internal Structures not to Parts of Collaborations.">
<annotatedElement xmi:idref="PartDecomposition-parts_of_internal_structures"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="PartDecomposition-parts_of_internal_structures-_specification"/>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="PartDecomposition-_generalization.0" general="InteractionUse"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StateInvariant" name="StateInvariant">
<ownedComment xmi:type="uml:Comment" xmi:id="StateInvariant-_ownedComment.0" body="A StateInvariant is a runtime constraint on the participants of the Interaction. It may be used to specify a variety of different kinds of Constraints, such as values of Attributes or Variables, internal or external States, and so on. A StateInvariant is an InteractionFragment and it is placed on a Lifeline.">
<annotatedElement xmi:idref="StateInvariant"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="StateInvariant-_generalization.0" general="InteractionFragment"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateInvariant-covered" name="covered" type="Lifeline" association="A_covered_stateInvariant">
<redefinedProperty xmi:idref="InteractionFragment-covered"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateInvariant-covered-_ownedComment.0" body="References the Lifeline on which the StateInvariant appears.">
<annotatedElement xmi:idref="StateInvariant-covered"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StateInvariant-invariant" name="invariant" aggregation="composite" type="Constraint" association="A_invariant_stateInvariant">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StateInvariant-invariant-_ownedComment.0" body="A Constraint that should hold at runtime for this StateInvariant.">
<annotatedElement xmi:idref="StateInvariant-invariant"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="InteractionOperatorKind" name="InteractionOperatorKind">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-_ownedComment.0" body="InteractionOperatorKind is an enumeration designating the different kinds of operators of CombinedFragments. The InteractionOperand defines the type of operator of a CombinedFragment.">
<annotatedElement xmi:idref="InteractionOperatorKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-seq" name="seq">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-seq-_ownedComment.0" body="The InteractionOperatorKind seq designates that the CombinedFragment represents a weak sequencing between the behaviors of the operands.">
<annotatedElement xmi:idref="InteractionOperatorKind-seq"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-alt" name="alt">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-alt-_ownedComment.0" body="The InteractionOperatorKind alt designates that the CombinedFragment represents a choice of behavior. At most one of the operands will be chosen. The chosen operand must have an explicit or implicit guard expression that evaluates to true at this point in the interaction. An implicit true guard is implied if the operand has no guard.">
<annotatedElement xmi:idref="InteractionOperatorKind-alt"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-opt" name="opt">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-opt-_ownedComment.0" body="The InteractionOperatorKind opt designates that the CombinedFragment represents a choice of behavior where either the (sole) operand happens or nothing happens. An option is semantically equivalent to an alternative CombinedFragment where there is one operand with non-empty content and the second operand is empty.">
<annotatedElement xmi:idref="InteractionOperatorKind-opt"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-break" name="break">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-break-_ownedComment.0" body="The InteractionOperatorKind break designates that the CombinedFragment represents a breaking scenario in the sense that the operand is a scenario that is performed instead of the remainder of the enclosing InteractionFragment. A break operator with a guard is chosen when the guard is true and the rest of the enclosing Interaction Fragment is ignored. When the guard of the break operand is false, the break operand is ignored and the rest of the enclosing InteractionFragment is chosen. The choice between a break operand without a guard and the rest of the enclosing InteractionFragment is done non-deterministically.">
<annotatedElement xmi:idref="InteractionOperatorKind-break"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-par" name="par">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-par-_ownedComment.0" body="The InteractionOperatorKind par designates that the CombinedFragment represents a parallel merge between the behaviors of the operands. The OccurrenceSpecifications of the different operands can be interleaved in any way as long as the ordering imposed by each operand as such is preserved.">
<annotatedElement xmi:idref="InteractionOperatorKind-par"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-strict" name="strict">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-strict-_ownedComment.0" body="The InteractionOperatorKind strict designates that the CombinedFragment represents a strict sequencing between the behaviors of the operands. The semantics of strict sequencing defines a strict ordering of the operands on the first level within the CombinedFragment with interactionOperator strict. Therefore OccurrenceSpecifications within contained CombinedFragment will not directly be compared with other OccurrenceSpecifications of the enclosing CombinedFragment.">
<annotatedElement xmi:idref="InteractionOperatorKind-strict"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-loop" name="loop">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-loop-_ownedComment.0" body="The InteractionOperatorKind loop designates that the CombinedFragment represents a loop. The loop operand will be repeated a number of times.">
<annotatedElement xmi:idref="InteractionOperatorKind-loop"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-critical" name="critical">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-critical-_ownedComment.0" body="The InteractionOperatorKind critical designates that the CombinedFragment represents a critical region. A critical region means that the traces of the region cannot be interleaved by other OccurrenceSpecifications (on those Lifelines covered by the region). This means that the region is treated atomically by the enclosing fragment when determining the set of valid traces. Even though enclosing CombinedFragments may imply that some OccurrenceSpecifications may interleave into the region, such as with par-operator, this is prevented by defining a region.">
<annotatedElement xmi:idref="InteractionOperatorKind-critical"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-neg" name="neg">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-neg-_ownedComment.0" body="The InteractionOperatorKind neg designates that the CombinedFragment represents traces that are defined to be invalid.">
<annotatedElement xmi:idref="InteractionOperatorKind-neg"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-assert" name="assert">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-assert-_ownedComment.0" body="The InteractionOperatorKind assert designates that the CombinedFragment represents an assertion. The sequences of the operand of the assertion are the only valid continuations. All other continuations result in an invalid trace.">
<annotatedElement xmi:idref="InteractionOperatorKind-assert"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-ignore" name="ignore">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-ignore-_ownedComment.0" body="The InteractionOperatorKind ignore designates that there are some message types that are not shown within this combined fragment. These message types can be considered insignificant and are implicitly ignored if they appear in a corresponding execution. Alternatively, one can understand ignore to mean that the message types that are ignored can appear anywhere in the traces.">
<annotatedElement xmi:idref="InteractionOperatorKind-ignore"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="InteractionOperatorKind-consider" name="consider">
<ownedComment xmi:type="uml:Comment" xmi:id="InteractionOperatorKind-consider-_ownedComment.0" body="The InteractionOperatorKind consider designates which messages should be considered within this combined fragment. This is equivalent to defining every other message to be ignored.">
<annotatedElement xmi:idref="InteractionOperatorKind-consider"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="MessageKind" name="MessageKind">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageKind-_ownedComment.0" body="This is an enumerated type that identifies the type of Message.">
<annotatedElement xmi:idref="MessageKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageKind-complete" name="complete">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageKind-complete-_ownedComment.0" body="sendEvent and receiveEvent are present">
<annotatedElement xmi:idref="MessageKind-complete"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageKind-lost" name="lost">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageKind-lost-_ownedComment.0" body="sendEvent present and receiveEvent absent">
<annotatedElement xmi:idref="MessageKind-lost"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageKind-found" name="found">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageKind-found-_ownedComment.0" body="sendEvent absent and receiveEvent present">
<annotatedElement xmi:idref="MessageKind-found"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageKind-unknown" name="unknown">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageKind-unknown-_ownedComment.0" body="sendEvent and receiveEvent absent (should not appear)">
<annotatedElement xmi:idref="MessageKind-unknown"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="MessageSort" name="MessageSort">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-_ownedComment.0" body="This is an enumerated type that identifies the type of communication action that was used to generate the Message.">
<annotatedElement xmi:idref="MessageSort"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-synchCall" name="synchCall">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-synchCall-_ownedComment.0" body="The message was generated by a synchronous call to an operation.">
<annotatedElement xmi:idref="MessageSort-synchCall"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-asynchCall" name="asynchCall">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-asynchCall-_ownedComment.0" body="The message was generated by an asynchronous call to an operation; i.e., a CallAction with isSynchronous = false.">
<annotatedElement xmi:idref="MessageSort-asynchCall"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-asynchSignal" name="asynchSignal">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-asynchSignal-_ownedComment.0" body="The message was generated by an asynchronous send action.">
<annotatedElement xmi:idref="MessageSort-asynchSignal"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-createMessage" name="createMessage">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-createMessage-_ownedComment.0" body="The message designating the creation of another lifeline object.">
<annotatedElement xmi:idref="MessageSort-createMessage"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-deleteMessage" name="deleteMessage">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-deleteMessage-_ownedComment.0" body="The message designating the termination of another lifeline.">
<annotatedElement xmi:idref="MessageSort-deleteMessage"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="MessageSort-reply" name="reply">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageSort-reply-_ownedComment.0" body="The message is a reply message to an operation call.">
<annotatedElement xmi:idref="MessageSort-reply"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_invariant_stateInvariant" name="A_invariant_stateInvariant">
<memberEnd xmi:idref="StateInvariant-invariant"/>
<memberEnd xmi:idref="A_invariant_stateInvariant-stateInvariant"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_invariant_stateInvariant-stateInvariant" name="stateInvariant" type="StateInvariant" association="A_invariant_stateInvariant">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_invariant_stateInvariant-stateInvariant-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_covered_stateInvariant" name="A_covered_stateInvariant">
<memberEnd xmi:idref="StateInvariant-covered"/>
<memberEnd xmi:idref="A_covered_stateInvariant-stateInvariant"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_covered_stateInvariant-stateInvariant" name="stateInvariant" type="StateInvariant" association="A_covered_stateInvariant">
<subsettedProperty xmi:idref="Lifeline-coveredBy"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_covered_stateInvariant-stateInvariant-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_covered_stateInvariant-stateInvariant-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_covered_events" name="A_covered_events">
<memberEnd xmi:idref="OccurrenceSpecification-covered"/>
<memberEnd xmi:idref="A_covered_events-events"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_covered_events-events" name="events" isOrdered="true" type="OccurrenceSpecification" association="A_covered_events">
<subsettedProperty xmi:idref="Lifeline-coveredBy"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_covered_events-events-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_covered_events-events-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_toBefore_after" name="A_toBefore_after">
<memberEnd xmi:idref="OccurrenceSpecification-toBefore"/>
<memberEnd xmi:idref="GeneralOrdering-after"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_message_messageEnd" name="A_message_messageEnd">
<memberEnd xmi:idref="MessageEnd-message"/>
<memberEnd xmi:idref="A_message_messageEnd-messageEnd"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_message_messageEnd-messageEnd" name="messageEnd" type="MessageEnd" association="A_message_messageEnd">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_message_messageEnd-messageEnd-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_message_messageEnd-messageEnd-_upperValue" value="2"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signature_message" name="A_signature_message">
<memberEnd xmi:idref="Message-signature"/>
<memberEnd xmi:idref="A_signature_message-message"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signature_message-message" name="message" type="Message" association="A_signature_message">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signature_message-message-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signature_message-message-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_connector_message" name="A_connector_message">
<memberEnd xmi:idref="Message-connector"/>
<memberEnd xmi:idref="A_connector_message-message"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_connector_message-message" name="message" type="Message" association="A_connector_message">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_connector_message-message-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_connector_message-message-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_receiveEvent_endMessage" name="A_receiveEvent_endMessage">
<memberEnd xmi:idref="Message-receiveEvent"/>
<memberEnd xmi:idref="A_receiveEvent_endMessage-endMessage"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_receiveEvent_endMessage-endMessage" name="endMessage" type="Message" association="A_receiveEvent_endMessage">
<subsettedProperty xmi:idref="MessageEnd-message"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_receiveEvent_endMessage-endMessage-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_sendEvent_endMessage" name="A_sendEvent_endMessage">
<memberEnd xmi:idref="Message-sendEvent"/>
<memberEnd xmi:idref="A_sendEvent_endMessage-endMessage"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_sendEvent_endMessage-endMessage" name="endMessage" type="Message" association="A_sendEvent_endMessage">
<subsettedProperty xmi:idref="MessageEnd-message"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_sendEvent_endMessage-endMessage-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_argument_message" name="A_argument_message">
<memberEnd xmi:idref="Message-argument"/>
<memberEnd xmi:idref="A_argument_message-message"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_argument_message-message" name="message" type="Message" association="A_argument_message">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_argument_message-message-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_selector_lifeline" name="A_selector_lifeline">
<memberEnd xmi:idref="Lifeline-selector"/>
<memberEnd xmi:idref="A_selector_lifeline-lifeline"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_selector_lifeline-lifeline" name="lifeline" type="Lifeline" association="A_selector_lifeline">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_selector_lifeline-lifeline-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_decomposedAs_lifeline" name="A_decomposedAs_lifeline">
<memberEnd xmi:idref="Lifeline-decomposedAs"/>
<memberEnd xmi:idref="A_decomposedAs_lifeline-lifeline"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_decomposedAs_lifeline-lifeline" name="lifeline" type="Lifeline" association="A_decomposedAs_lifeline"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_represents_lifeline" name="A_represents_lifeline">
<memberEnd xmi:idref="Lifeline-represents"/>
<memberEnd xmi:idref="A_represents_lifeline-lifeline"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_represents_lifeline-_ownedComment.0" body="If a Part has multiplicity, multiple lifelines might be used to show it.">
<annotatedElement xmi:idref="A_represents_lifeline"/>
</ownedComment>
<ownedEnd xmi:type="uml:Property" xmi:id="A_represents_lifeline-lifeline" name="lifeline" type="Lifeline" association="A_represents_lifeline">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_represents_lifeline-lifeline-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_represents_lifeline-lifeline-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_returnValueRecipient_interactionUse" name="A_returnValueRecipient_interactionUse">
<memberEnd xmi:idref="InteractionUse-returnValueRecipient"/>
<memberEnd xmi:idref="A_returnValueRecipient_interactionUse-interactionUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_returnValueRecipient_interactionUse-interactionUse" name="interactionUse" type="InteractionUse" association="A_returnValueRecipient_interactionUse">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_returnValueRecipient_interactionUse-interactionUse-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_returnValueRecipient_interactionUse-interactionUse-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_refersTo_interactionUse" name="A_refersTo_interactionUse">
<memberEnd xmi:idref="InteractionUse-refersTo"/>
<memberEnd xmi:idref="A_refersTo_interactionUse-interactionUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_refersTo_interactionUse-interactionUse" name="interactionUse" type="InteractionUse" association="A_refersTo_interactionUse">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_refersTo_interactionUse-interactionUse-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_refersTo_interactionUse-interactionUse-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_returnValue_interactionUse" name="A_returnValue_interactionUse">
<memberEnd xmi:idref="InteractionUse-returnValue"/>
<memberEnd xmi:idref="A_returnValue_interactionUse-interactionUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_returnValue_interactionUse-interactionUse" name="interactionUse" type="InteractionUse" association="A_returnValue_interactionUse">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_returnValue_interactionUse-interactionUse-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_argument_interactionUse" name="A_argument_interactionUse">
<memberEnd xmi:idref="InteractionUse-argument"/>
<memberEnd xmi:idref="A_argument_interactionUse-interactionUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_argument_interactionUse-interactionUse" name="interactionUse" type="InteractionUse" association="A_argument_interactionUse">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_argument_interactionUse-interactionUse-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_actualGate_interactionUse" name="A_actualGate_interactionUse">
<memberEnd xmi:idref="InteractionUse-actualGate"/>
<memberEnd xmi:idref="A_actualGate_interactionUse-interactionUse"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_actualGate_interactionUse-interactionUse" name="interactionUse" type="InteractionUse" association="A_actualGate_interactionUse">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_actualGate_interactionUse-interactionUse-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_fragment_enclosingOperand" name="A_fragment_enclosingOperand">
<memberEnd xmi:idref="InteractionOperand-fragment"/>
<memberEnd xmi:idref="InteractionFragment-enclosingOperand"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_guard_interactionOperand" name="A_guard_interactionOperand">
<memberEnd xmi:idref="InteractionOperand-guard"/>
<memberEnd xmi:idref="A_guard_interactionOperand-interactionOperand"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_guard_interactionOperand-interactionOperand" name="interactionOperand" type="InteractionOperand" association="A_guard_interactionOperand">
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_generalOrdering_interactionFragment" name="A_generalOrdering_interactionFragment">
<memberEnd xmi:idref="InteractionFragment-generalOrdering"/>
<memberEnd xmi:idref="A_generalOrdering_interactionFragment-interactionFragment"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_generalOrdering_interactionFragment-interactionFragment" name="interactionFragment" type="InteractionFragment" association="A_generalOrdering_interactionFragment">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_generalOrdering_interactionFragment-interactionFragment-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_covered_coveredBy" name="A_covered_coveredBy">
<memberEnd xmi:idref="InteractionFragment-covered"/>
<memberEnd xmi:idref="Lifeline-coveredBy"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_covered_coveredBy-_ownedComment.0" body="This association shows the lifelines that make up an interaction. A lifeline may be part of more than one interaction use.">
<annotatedElement xmi:idref="A_covered_coveredBy"/>
</ownedComment>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_minint_interactionConstraint" name="A_minint_interactionConstraint">
<memberEnd xmi:idref="InteractionConstraint-minint"/>
<memberEnd xmi:idref="A_minint_interactionConstraint-interactionConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_minint_interactionConstraint-interactionConstraint" name="interactionConstraint" type="InteractionConstraint" association="A_minint_interactionConstraint">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_minint_interactionConstraint-interactionConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_maxint_interactionConstraint" name="A_maxint_interactionConstraint">
<memberEnd xmi:idref="InteractionConstraint-maxint"/>
<memberEnd xmi:idref="A_maxint_interactionConstraint-interactionConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_maxint_interactionConstraint-interactionConstraint" name="interactionConstraint" type="InteractionConstraint" association="A_maxint_interactionConstraint">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_maxint_interactionConstraint-interactionConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_action_interaction" name="A_action_interaction">
<memberEnd xmi:idref="Interaction-action"/>
<memberEnd xmi:idref="A_action_interaction-interaction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_action_interaction-interaction" name="interaction" type="Interaction" association="A_action_interaction">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_action_interaction-interaction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_formalGate_interaction" name="A_formalGate_interaction">
<memberEnd xmi:idref="Interaction-formalGate"/>
<memberEnd xmi:idref="A_formalGate_interaction-interaction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_formalGate_interaction-interaction" name="interaction" type="Interaction" association="A_formalGate_interaction">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_formalGate_interaction-interaction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_lifeline_interaction" name="A_lifeline_interaction">
<memberEnd xmi:idref="Interaction-lifeline"/>
<memberEnd xmi:idref="Lifeline-interaction"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_fragment_enclosingInteraction" name="A_fragment_enclosingInteraction">
<memberEnd xmi:idref="Interaction-fragment"/>
<memberEnd xmi:idref="InteractionFragment-enclosingInteraction"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_message_interaction" name="A_message_interaction">
<memberEnd xmi:idref="Interaction-message"/>
<memberEnd xmi:idref="Message-interaction"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_before_toAfter" name="A_before_toAfter">
<memberEnd xmi:idref="GeneralOrdering-before"/>
<memberEnd xmi:idref="OccurrenceSpecification-toAfter"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_finish_executionSpecification" name="A_finish_executionSpecification">
<memberEnd xmi:idref="ExecutionSpecification-finish"/>
<memberEnd xmi:idref="A_finish_executionSpecification-executionSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_finish_executionSpecification-_ownedComment.0" body="The event shows the time point at which the action completes execution.">
<annotatedElement xmi:idref="A_finish_executionSpecification"/>
</ownedComment>
<ownedEnd xmi:type="uml:Property" xmi:id="A_finish_executionSpecification-executionSpecification" name="executionSpecification" type="ExecutionSpecification" association="A_finish_executionSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_finish_executionSpecification-executionSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_finish_executionSpecification-executionSpecification-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_start_executionSpecification" name="A_start_executionSpecification">
<memberEnd xmi:idref="ExecutionSpecification-start"/>
<memberEnd xmi:idref="A_start_executionSpecification-executionSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_start_executionSpecification-_ownedComment.0" body="The event shows the time point at which the action begins execution.">
<annotatedElement xmi:idref="A_start_executionSpecification"/>
</ownedComment>
<ownedEnd xmi:type="uml:Property" xmi:id="A_start_executionSpecification-executionSpecification" name="executionSpecification" type="ExecutionSpecification" association="A_start_executionSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_start_executionSpecification-executionSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_start_executionSpecification-executionSpecification-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_execution_executionOccurrenceSpecification" name="A_execution_executionOccurrenceSpecification">
<memberEnd xmi:idref="ExecutionOccurrenceSpecification-execution"/>
<memberEnd xmi:idref="A_execution_executionOccurrenceSpecification-executionOccurrenceSpecification"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_execution_executionOccurrenceSpecification-executionOccurrenceSpecification" name="executionOccurrenceSpecification" type="ExecutionOccurrenceSpecification" association="A_execution_executionOccurrenceSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_execution_executionOccurrenceSpecification-executionOccurrenceSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_execution_executionOccurrenceSpecification-executionOccurrenceSpecification-_upperValue" value="2"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_message_considerIgnoreFragment" name="A_message_considerIgnoreFragment">
<memberEnd xmi:idref="ConsiderIgnoreFragment-message"/>
<memberEnd xmi:idref="A_message_considerIgnoreFragment-considerIgnoreFragment"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_message_considerIgnoreFragment-considerIgnoreFragment" name="considerIgnoreFragment" type="ConsiderIgnoreFragment" association="A_message_considerIgnoreFragment">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_message_considerIgnoreFragment-considerIgnoreFragment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_message_considerIgnoreFragment-considerIgnoreFragment-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_cfragmentGate_combinedFragment" name="A_cfragmentGate_combinedFragment">
<memberEnd xmi:idref="CombinedFragment-cfragmentGate"/>
<memberEnd xmi:idref="A_cfragmentGate_combinedFragment-combinedFragment"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_cfragmentGate_combinedFragment-combinedFragment" name="combinedFragment" type="CombinedFragment" association="A_cfragmentGate_combinedFragment">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_cfragmentGate_combinedFragment-combinedFragment-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_operand_combinedFragment" name="A_operand_combinedFragment">
<memberEnd xmi:idref="CombinedFragment-operand"/>
<memberEnd xmi:idref="A_operand_combinedFragment-combinedFragment"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_operand_combinedFragment-combinedFragment" name="combinedFragment" type="CombinedFragment" association="A_operand_combinedFragment">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_operand_combinedFragment-combinedFragment-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_behavior_behaviorExecutionSpecification" name="A_behavior_behaviorExecutionSpecification">
<memberEnd xmi:idref="BehaviorExecutionSpecification-behavior"/>
<memberEnd xmi:idref="A_behavior_behaviorExecutionSpecification-behaviorExecutionSpecification"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_behavior_behaviorExecutionSpecification-behaviorExecutionSpecification" name="behaviorExecutionSpecification" type="BehaviorExecutionSpecification" association="A_behavior_behaviorExecutionSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_behavior_behaviorExecutionSpecification-behaviorExecutionSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_behavior_behaviorExecutionSpecification-behaviorExecutionSpecification-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_action_actionExecutionSpecification" name="A_action_actionExecutionSpecification">
<memberEnd xmi:idref="ActionExecutionSpecification-action"/>
<memberEnd xmi:idref="A_action_actionExecutionSpecification-actionExecutionSpecification"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_action_actionExecutionSpecification-actionExecutionSpecification" name="actionExecutionSpecification" type="ActionExecutionSpecification" association="A_action_actionExecutionSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_action_actionExecutionSpecification-actionExecutionSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_action_actionExecutionSpecification-actionExecutionSpecification-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="InformationFlows" name="InformationFlows">
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.0" importedPackage="UseCases"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.1" importedPackage="Deployments"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.2" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.3" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.4" importedPackage="SimpleClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.5" importedPackage="Packages"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="InformationFlows-_packageImport.6" importedPackage="Activities"/>
<packagedElement xmi:type="uml:Class" xmi:id="InformationFlow" name="InformationFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-_ownedComment.0" body="InformationFlows describe circulation of information through a system in a general manner. They do not specify the nature of the information, mechanisms by which it is conveyed, sequences of exchange or any control conditions. During more detailed modeling, representation and realization links may be added to specify which model elements implement an InformationFlow and to show how information is conveyed. InformationFlows require some kind of “information channel” for unidirectional transmission of information items from sources to targets. They specify the information channel’s realizations, if any, and identify the information that flows along them. Information moving along the information channel may be represented by abstract InformationItems and by concrete Classifiers.">
<annotatedElement xmi:idref="InformationFlow"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationFlow-must_conform" name="must_conform">
<constrainedElement xmi:idref="InformationFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-must_conform-_ownedComment.0" body="The sources and targets of the information flow must conform to the sources and targets or conversely the targets and sources of the realization relationships.">
<annotatedElement xmi:idref="InformationFlow-must_conform"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationFlow-must_conform-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationFlow-sources_and_targets_kind" name="sources_and_targets_kind">
<constrainedElement xmi:idref="InformationFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-sources_and_targets_kind-_ownedComment.0" body="The sources and targets of the information flow can only be one of the following kind: Actor, Node, UseCase, Artifact, Class, Component, Port, Property, Interface, Package, ActivityNode, ActivityPartition, Behavior and InstanceSpecification except when its classifier is a relationship (i.e. it represents a link).">
<annotatedElement xmi:idref="InformationFlow-sources_and_targets_kind"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationFlow-sources_and_targets_kind-_specification">
<body>(self.informationSource->forAll( sis | oclIsKindOf(Actor) or oclIsKindOf(Node) or oclIsKindOf(UseCase) or oclIsKindOf(Artifact) or oclIsKindOf(Class) or oclIsKindOf(Component) or oclIsKindOf(Port) or oclIsKindOf(Property) or oclIsKindOf(Interface) or oclIsKindOf(Package) or oclIsKindOf(ActivityNode) or oclIsKindOf(ActivityPartition) or (oclIsKindOf(InstanceSpecification) and not sis.oclAsType(InstanceSpecification).classifier->exists(oclIsKindOf(Relationship))))) and (self.informationTarget->forAll( sit | oclIsKindOf(Actor) or oclIsKindOf(Node) or oclIsKindOf(UseCase) or oclIsKindOf(Artifact) or oclIsKindOf(Class) or oclIsKindOf(Component) or oclIsKindOf(Port) or oclIsKindOf(Property) or oclIsKindOf(Interface) or oclIsKindOf(Package) or oclIsKindOf(ActivityNode) or oclIsKindOf(ActivityPartition) or (oclIsKindOf(InstanceSpecification) and not sit.oclAsType(InstanceSpecification).classifier->exists(oclIsKindOf(Relationship)))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationFlow-convey_classifiers" name="convey_classifiers">
<constrainedElement xmi:idref="InformationFlow"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-convey_classifiers-_ownedComment.0" body="An information flow can only convey classifiers that are allowed to represent an information item.">
<annotatedElement xmi:idref="InformationFlow-convey_classifiers"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationFlow-convey_classifiers-_specification">
<body>self.conveyed->forAll(oclIsKindOf(Class) or oclIsKindOf(Interface) or oclIsKindOf(InformationItem) or oclIsKindOf(Signal) or oclIsKindOf(Component))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InformationFlow-_generalization.0" general="DirectedRelationship"/>
<generalization xmi:type="uml:Generalization" xmi:id="InformationFlow-_generalization.1" general="PackageableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-conveyed" name="conveyed" type="Classifier" association="A_conveyed_conveyingFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-conveyed-_ownedComment.0" body="Specifies the information items that may circulate on this information flow.">
<annotatedElement xmi:idref="InformationFlow-conveyed"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-conveyed-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-informationSource" name="informationSource" type="NamedElement" association="A_informationSource_informationFlow">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-informationSource-_ownedComment.0" body="Defines from which source the conveyed InformationItems are initiated.">
<annotatedElement xmi:idref="InformationFlow-informationSource"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-informationSource-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-informationTarget" name="informationTarget" type="NamedElement" association="A_informationTarget_informationFlow">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-informationTarget-_ownedComment.0" body="Defines to which target the conveyed InformationItems are directed.">
<annotatedElement xmi:idref="InformationFlow-informationTarget"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-informationTarget-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-realization" name="realization" type="Relationship" association="A_realization_abstraction_flow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-realization-_ownedComment.0" body="Determines which Relationship will realize the specified flow.">
<annotatedElement xmi:idref="InformationFlow-realization"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InformationFlow-realization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-realization-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-realizingActivityEdge" name="realizingActivityEdge" type="ActivityEdge" association="A_realizingActivityEdge_informationFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-realizingActivityEdge-_ownedComment.0" body="Determines which ActivityEdges will realize the specified flow.">
<annotatedElement xmi:idref="InformationFlow-realizingActivityEdge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InformationFlow-realizingActivityEdge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-realizingActivityEdge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-realizingConnector" name="realizingConnector" type="Connector" association="A_realizingConnector_informationFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-realizingConnector-_ownedComment.0" body="Determines which Connectors will realize the specified flow.">
<annotatedElement xmi:idref="InformationFlow-realizingConnector"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InformationFlow-realizingConnector-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-realizingConnector-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationFlow-realizingMessage" name="realizingMessage" type="Message" association="A_realizingMessage_informationFlow">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationFlow-realizingMessage-_ownedComment.0" body="Determines which Messages will realize the specified flow.">
<annotatedElement xmi:idref="InformationFlow-realizingMessage"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InformationFlow-realizingMessage-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationFlow-realizingMessage-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InformationItem" name="InformationItem">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationItem-_ownedComment.0" body="InformationItems represent many kinds of information that can flow from sources to targets in very abstract ways. They represent the kinds of information that may move within a system, but do not elaborate details of the transferred information. Details of transferred information are the province of other Classifiers that may ultimately define InformationItems. Consequently, InformationItems cannot be instantiated and do not themselves have features, generalizations, or associations. An important use of InformationItems is to represent information during early design stages, possibly before the detailed modeling decisions that will ultimately define them have been made. Another purpose of InformationItems is to abstract portions of complex models in less precise, but perhaps more general and communicable, ways. ">
<annotatedElement xmi:idref="InformationItem"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationItem-sources_and_targets" name="sources_and_targets">
<constrainedElement xmi:idref="InformationItem"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationItem-sources_and_targets-_ownedComment.0" body="The sources and targets of an information item (its related information flows) must designate subsets of the sources and targets of the representation information item, if any. The Classifiers that can realize an information item can only be of the following kind: Class, Interface, InformationItem, Signal, Component.">
<annotatedElement xmi:idref="InformationItem-sources_and_targets"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationItem-sources_and_targets-_specification">
<body>(self.represented->select(oclIsKindOf(InformationItem))->forAll(p | p.conveyingFlow.source->forAll(q | self.conveyingFlow.source->includes(q)) and p.conveyingFlow.target->forAll(q | self.conveyingFlow.target->includes(q)))) and (self.represented->forAll(oclIsKindOf(Class) or oclIsKindOf(Interface) or oclIsKindOf(InformationItem) or oclIsKindOf(Signal) or oclIsKindOf(Component)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationItem-has_no" name="has_no">
<constrainedElement xmi:idref="InformationItem"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationItem-has_no-_ownedComment.0" body="An informationItem has no feature, no generalization, and no associations.">
<annotatedElement xmi:idref="InformationItem-has_no"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationItem-has_no-_specification">
<body>self.generalization->isEmpty() and self.feature->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InformationItem-not_instantiable" name="not_instantiable">
<constrainedElement xmi:idref="InformationItem"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InformationItem-not_instantiable-_ownedComment.0" body="It is not instantiable.">
<annotatedElement xmi:idref="InformationItem-not_instantiable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InformationItem-not_instantiable-_specification">
<body>isAbstract</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InformationItem-_generalization.0" general="Classifier"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InformationItem-represented" name="represented" type="Classifier" association="A_represented_representation">
<ownedComment xmi:type="uml:Comment" xmi:id="InformationItem-represented-_ownedComment.0" body="Determines the classifiers that will specify the structure and nature of the information. An information item represents all its represented classifiers.">
<annotatedElement xmi:idref="InformationItem-represented"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InformationItem-represented-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InformationItem-represented-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_represented_representation" name="A_represented_representation">
<memberEnd xmi:idref="InformationItem-represented"/>
<memberEnd xmi:idref="A_represented_representation-representation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_represented_representation-representation" name="representation" type="InformationItem" association="A_represented_representation">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_represented_representation-representation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_represented_representation-representation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_conveyed_conveyingFlow" name="A_conveyed_conveyingFlow">
<memberEnd xmi:idref="InformationFlow-conveyed"/>
<memberEnd xmi:idref="A_conveyed_conveyingFlow-conveyingFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_conveyed_conveyingFlow-conveyingFlow" name="conveyingFlow" type="InformationFlow" association="A_conveyed_conveyingFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_conveyed_conveyingFlow-conveyingFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_conveyed_conveyingFlow-conveyingFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realizingActivityEdge_informationFlow" name="A_realizingActivityEdge_informationFlow">
<memberEnd xmi:idref="InformationFlow-realizingActivityEdge"/>
<memberEnd xmi:idref="A_realizingActivityEdge_informationFlow-informationFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_realizingActivityEdge_informationFlow-informationFlow" name="informationFlow" type="InformationFlow" association="A_realizingActivityEdge_informationFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_realizingActivityEdge_informationFlow-informationFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_realizingActivityEdge_informationFlow-informationFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realizingMessage_informationFlow" name="A_realizingMessage_informationFlow">
<memberEnd xmi:idref="InformationFlow-realizingMessage"/>
<memberEnd xmi:idref="A_realizingMessage_informationFlow-informationFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_realizingMessage_informationFlow-informationFlow" name="informationFlow" type="InformationFlow" association="A_realizingMessage_informationFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_realizingMessage_informationFlow-informationFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_realizingMessage_informationFlow-informationFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_informationSource_informationFlow" name="A_informationSource_informationFlow">
<memberEnd xmi:idref="InformationFlow-informationSource"/>
<memberEnd xmi:idref="A_informationSource_informationFlow-informationFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_informationSource_informationFlow-informationFlow" name="informationFlow" type="InformationFlow" association="A_informationSource_informationFlow">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_informationSource_informationFlow-informationFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_informationSource_informationFlow-informationFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realization_abstraction_flow" name="A_realization_abstraction_flow">
<memberEnd xmi:idref="InformationFlow-realization"/>
<memberEnd xmi:idref="A_realization_abstraction_flow-abstraction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_realization_abstraction_flow-abstraction" name="abstraction" type="InformationFlow" association="A_realization_abstraction_flow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_realization_abstraction_flow-abstraction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_realization_abstraction_flow-abstraction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_realizingConnector_informationFlow" name="A_realizingConnector_informationFlow">
<memberEnd xmi:idref="InformationFlow-realizingConnector"/>
<memberEnd xmi:idref="A_realizingConnector_informationFlow-informationFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_realizingConnector_informationFlow-informationFlow" name="informationFlow" type="InformationFlow" association="A_realizingConnector_informationFlow">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_realizingConnector_informationFlow-informationFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_realizingConnector_informationFlow-informationFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_informationTarget_informationFlow" name="A_informationTarget_informationFlow">
<memberEnd xmi:idref="InformationFlow-informationTarget"/>
<memberEnd xmi:idref="A_informationTarget_informationFlow-informationFlow"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_informationTarget_informationFlow-informationFlow" name="informationFlow" type="InformationFlow" association="A_informationTarget_informationFlow">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_informationTarget_informationFlow-informationFlow-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_informationTarget_informationFlow-informationFlow-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Deployments" name="Deployments">
<packageImport xmi:type="uml:PackageImport" xmi:id="Deployments-_packageImport.0" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Deployments-_packageImport.1" importedPackage="CommonStructure"/>
<packagedElement xmi:type="uml:Class" xmi:id="Artifact" name="Artifact">
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-_ownedComment.0" body="An artifact is the specification of a physical piece of information that is used or produced by a software development process, or by deployment and operation of a system. Examples of artifacts include model files, source files, scripts, and binary executable files, a table in a database system, a development deliverable, or a word-processing document, a mail message. An artifact is the source of a deployment to a node.">
<annotatedElement xmi:idref="Artifact"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Artifact-_generalization.0" general="Classifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="Artifact-_generalization.1" general="DeployedArtifact"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Artifact-fileName" name="fileName">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-fileName-_ownedComment.0" body="A concrete name that is used to refer to the Artifact in a physical context. Example: file system name, universal resource locator.">
<annotatedElement xmi:idref="Artifact-fileName"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Artifact-fileName-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Artifact-manifestation" name="manifestation" aggregation="composite" type="Manifestation" association="A_manifestation_artifact">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="NamedElement-clientDependency"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-manifestation-_ownedComment.0" body="The set of model elements that are manifested in the Artifact. That is, these model elements are utilized in the construction (or generation) of the artifact.">
<annotatedElement xmi:idref="Artifact-manifestation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Artifact-manifestation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Artifact-manifestation-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Artifact-nestedArtifact" name="nestedArtifact" aggregation="composite" type="Artifact" association="A_nestedArtifact_artifact">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-nestedArtifact-_ownedComment.0" body="The Artifacts that are defined (nested) within the Artifact. The association is a specialization of the ownedMember association from Namespace to NamedElement.">
<annotatedElement xmi:idref="Artifact-nestedArtifact"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Artifact-nestedArtifact-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Artifact-nestedArtifact-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Artifact-ownedAttribute" name="ownedAttribute" isOrdered="true" aggregation="composite" type="Property" association="A_ownedAttribute_artifact">
<subsettedProperty xmi:idref="Classifier-attribute"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-ownedAttribute-_ownedComment.0" body="The attributes or association ends defined for the Artifact. The association is a specialization of the ownedMember association.">
<annotatedElement xmi:idref="Artifact-ownedAttribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Artifact-ownedAttribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Artifact-ownedAttribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Artifact-ownedOperation" name="ownedOperation" isOrdered="true" aggregation="composite" type="Operation" association="A_ownedOperation_artifact">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Artifact-ownedOperation-_ownedComment.0" body="The Operations defined for the Artifact. The association is a specialization of the ownedMember association.">
<annotatedElement xmi:idref="Artifact-ownedOperation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Artifact-ownedOperation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Artifact-ownedOperation-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CommunicationPath" name="CommunicationPath">
<ownedComment xmi:type="uml:Comment" xmi:id="CommunicationPath-_ownedComment.0" body="A communication path is an association between two deployment targets, through which they are able to exchange signals and messages.">
<annotatedElement xmi:idref="CommunicationPath"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CommunicationPath-association_ends" name="association_ends">
<constrainedElement xmi:idref="CommunicationPath"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CommunicationPath-association_ends-_ownedComment.0" body="The association ends of a CommunicationPath are typed by DeploymentTargets.">
<annotatedElement xmi:idref="CommunicationPath-association_ends"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CommunicationPath-association_ends-_specification">
<body>endType->forAll (oclIsKindOf(DeploymentTarget))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CommunicationPath-_generalization.0" general="Association"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DeployedArtifact" name="DeployedArtifact" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="DeployedArtifact-_ownedComment.0" body="A deployed artifact is an artifact or artifact instance that has been deployed to a deployment target.">
<annotatedElement xmi:idref="DeployedArtifact"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DeployedArtifact-_generalization.0" general="NamedElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Deployment" name="Deployment">
<ownedComment xmi:type="uml:Comment" xmi:id="Deployment-_ownedComment.0" body="A deployment is the allocation of an artifact or artifact instance to a deployment target. A component deployment is the deployment of one or more artifacts or artifact instances to a deployment target, optionally parameterized by a deployment specification. Examples are executables and configuration files.">
<annotatedElement xmi:idref="Deployment"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Deployment-_generalization.0" general="Dependency"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Deployment-configuration" name="configuration" aggregation="composite" type="DeploymentSpecification" association="A_configuration_deployment">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Deployment-configuration-_ownedComment.0" body="The specification of properties that parameterize the deployment and execution of one or more Artifacts.">
<annotatedElement xmi:idref="Deployment-configuration"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Deployment-configuration-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Deployment-configuration-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Deployment-deployedArtifact" name="deployedArtifact" type="DeployedArtifact" association="A_deployedArtifact_deploymentForArtifact">
<subsettedProperty xmi:idref="Dependency-supplier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Deployment-deployedArtifact-_ownedComment.0" body="The Artifacts that are deployed onto a Node. This association specializes the supplier association.">
<annotatedElement xmi:idref="Deployment-deployedArtifact"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Deployment-deployedArtifact-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Deployment-deployedArtifact-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Deployment-location" name="location" type="DeploymentTarget" association="A_deployment_location">
<subsettedProperty xmi:idref="Dependency-client"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Deployment-location-_ownedComment.0" body="The DeployedTarget which is the target of a Deployment.">
<annotatedElement xmi:idref="Deployment-location"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DeploymentSpecification" name="DeploymentSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-_ownedComment.0" body="A deployment specification specifies a set of properties that determine execution parameters of a component artifact that is deployed on a node. A deployment specification can be aimed at a specific type of container. An artifact that reifies or implements deployment specification properties is a deployment descriptor.">
<annotatedElement xmi:idref="DeploymentSpecification"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DeploymentSpecification-deployment_target" name="deployment_target">
<constrainedElement xmi:idref="DeploymentSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-deployment_target-_ownedComment.0" body="The DeploymentTarget of a DeploymentSpecification is a kind of ExecutionEnvironment.">
<annotatedElement xmi:idref="DeploymentSpecification-deployment_target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DeploymentSpecification-deployment_target-_specification">
<body>deployment->forAll (location.oclIsKindOf(ExecutionEnvironment))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DeploymentSpecification-deployed_elements" name="deployed_elements">
<constrainedElement xmi:idref="DeploymentSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-deployed_elements-_ownedComment.0" body="The deployedElements of a DeploymentTarget that are involved in a Deployment that has an associated Deployment-Specification is a kind of Component (i.e., the configured components).">
<annotatedElement xmi:idref="DeploymentSpecification-deployed_elements"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DeploymentSpecification-deployed_elements-_specification">
<body>deployment->forAll (location.deployedElement->forAll (oclIsKindOf(Component)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DeploymentSpecification-_generalization.0" general="Artifact"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DeploymentSpecification-deployment" name="deployment" type="Deployment" association="A_configuration_deployment">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-deployment-_ownedComment.0" body="The deployment with which the DeploymentSpecification is associated.">
<annotatedElement xmi:idref="DeploymentSpecification-deployment"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentSpecification-deployment-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DeploymentSpecification-deploymentLocation" name="deploymentLocation">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-deploymentLocation-_ownedComment.0" body="The location where an Artifact is deployed onto a Node. This is typically a 'directory' or 'memory address.'">
<annotatedElement xmi:idref="DeploymentSpecification-deploymentLocation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentSpecification-deploymentLocation-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DeploymentSpecification-executionLocation" name="executionLocation">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentSpecification-executionLocation-_ownedComment.0" body="The location where a component Artifact executes. This may be a local or remote location.">
<annotatedElement xmi:idref="DeploymentSpecification-executionLocation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentSpecification-executionLocation-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DeploymentTarget" name="DeploymentTarget" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentTarget-_ownedComment.0" body="A deployment target is the location for a deployed artifact.">
<annotatedElement xmi:idref="DeploymentTarget"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DeploymentTarget-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DeploymentTarget-deployedElement" name="deployedElement" isReadOnly="true" isDerived="true" type="PackageableElement" association="A_deployedElement_deploymentTarget">
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentTarget-deployedElement-_ownedComment.0" body="The set of elements that are manifested in an Artifact that is involved in Deployment to a DeploymentTarget.">
<annotatedElement xmi:idref="DeploymentTarget-deployedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentTarget-deployedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DeploymentTarget-deployedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DeploymentTarget-deployment" name="deployment" aggregation="composite" type="Deployment" association="A_deployment_location">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="NamedElement-clientDependency"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentTarget-deployment-_ownedComment.0" body="The set of Deployments for a DeploymentTarget.">
<annotatedElement xmi:idref="DeploymentTarget-deployment"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentTarget-deployment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DeploymentTarget-deployment-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="DeploymentTarget-deployedElement.1" name="deployedElement" isQuery="true" bodyCondition="DeploymentTarget-deployedElement.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="DeploymentTarget-deployedElement.1-_ownedComment.0" body="Derivation for DeploymentTarget::/deployedElement">
<annotatedElement xmi:idref="DeploymentTarget-deployedElement.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DeploymentTarget-deployedElement.1-spec" name="spec">
<constrainedElement xmi:idref="DeploymentTarget-deployedElement.1"/>
<constrainedElement xmi:idref="DeploymentTarget-deployedElement"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DeploymentTarget-deployedElement.1-spec-_specification">
<body>result = (deployment.deployedArtifact->select(oclIsKindOf(Artifact))->collect(oclAsType(Artifact).manifestation)->collect(utilizedElement)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="DeploymentTarget-deployedElement.1-result" name="result" direction="return" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DeploymentTarget-deployedElement.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DeploymentTarget-deployedElement.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Device" name="Device">
<ownedComment xmi:type="uml:Comment" xmi:id="Device-_ownedComment.0" body="A device is a physical computational resource with processing capability upon which artifacts may be deployed for execution. Devices may be complex (i.e., they may consist of other devices).">
<annotatedElement xmi:idref="Device"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Device-_generalization.0" general="Node"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExecutionEnvironment" name="ExecutionEnvironment">
<ownedComment xmi:type="uml:Comment" xmi:id="ExecutionEnvironment-_ownedComment.0" body="An execution environment is a node that offers an execution environment for specific types of components that are deployed on it in the form of executable artifacts.">
<annotatedElement xmi:idref="ExecutionEnvironment"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ExecutionEnvironment-_generalization.0" general="Node"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Manifestation" name="Manifestation">
<ownedComment xmi:type="uml:Comment" xmi:id="Manifestation-_ownedComment.0" body="A manifestation is the concrete physical rendering of one or more model elements by an artifact.">
<annotatedElement xmi:idref="Manifestation"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Manifestation-_generalization.0" general="Abstraction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Manifestation-utilizedElement" name="utilizedElement" type="PackageableElement" association="A_utilizedElement_manifestation">
<subsettedProperty xmi:idref="Dependency-supplier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Manifestation-utilizedElement-_ownedComment.0" body="The model element that is utilized in the manifestation in an Artifact.">
<annotatedElement xmi:idref="Manifestation-utilizedElement"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Node" name="Node">
<ownedComment xmi:type="uml:Comment" xmi:id="Node-_ownedComment.0" body="A Node is computational resource upon which artifacts may be deployed for execution. Nodes can be interconnected through communication paths to define network structures.">
<annotatedElement xmi:idref="Node"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Node-internal_structure" name="internal_structure">
<constrainedElement xmi:idref="Node"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Node-internal_structure-_ownedComment.0" body="The internal structure of a Node (if defined) consists solely of parts of type Node.">
<annotatedElement xmi:idref="Node-internal_structure"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Node-internal_structure-_specification">
<body>part->forAll(oclIsKindOf(Node))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Node-_generalization.1" general="Class"/>
<generalization xmi:type="uml:Generalization" xmi:id="Node-_generalization.0" general="DeploymentTarget"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Node-nestedNode" name="nestedNode" aggregation="composite" type="Node" association="A_nestedNode_node">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Node-nestedNode-_ownedComment.0" body="The Nodes that are defined (nested) within the Node.">
<annotatedElement xmi:idref="Node-nestedNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Node-nestedNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Node-nestedNode-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nestedNode_node" name="A_nestedNode_node">
<memberEnd xmi:idref="Node-nestedNode"/>
<memberEnd xmi:idref="A_nestedNode_node-node"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_nestedNode_node-node" name="node" type="Node" association="A_nestedNode_node">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_nestedNode_node-node-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_utilizedElement_manifestation" name="A_utilizedElement_manifestation">
<memberEnd xmi:idref="Manifestation-utilizedElement"/>
<memberEnd xmi:idref="A_utilizedElement_manifestation-manifestation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_utilizedElement_manifestation-manifestation" name="manifestation" type="Manifestation" association="A_utilizedElement_manifestation">
<subsettedProperty xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_utilizedElement_manifestation-manifestation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_utilizedElement_manifestation-manifestation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_deployedElement_deploymentTarget" name="A_deployedElement_deploymentTarget" isDerived="true">
<memberEnd xmi:idref="DeploymentTarget-deployedElement"/>
<memberEnd xmi:idref="A_deployedElement_deploymentTarget-deploymentTarget"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_deployedElement_deploymentTarget-deploymentTarget" name="deploymentTarget" type="DeploymentTarget" association="A_deployedElement_deploymentTarget">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_deployedElement_deploymentTarget-deploymentTarget-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_deployedElement_deploymentTarget-deploymentTarget-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_deployment_location" name="A_deployment_location">
<memberEnd xmi:idref="DeploymentTarget-deployment"/>
<memberEnd xmi:idref="Deployment-location"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_deployedArtifact_deploymentForArtifact" name="A_deployedArtifact_deploymentForArtifact">
<memberEnd xmi:idref="Deployment-deployedArtifact"/>
<memberEnd xmi:idref="A_deployedArtifact_deploymentForArtifact-deploymentForArtifact"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_deployedArtifact_deploymentForArtifact-deploymentForArtifact" name="deploymentForArtifact" type="Deployment" association="A_deployedArtifact_deploymentForArtifact">
<subsettedProperty xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_deployedArtifact_deploymentForArtifact-deploymentForArtifact-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_deployedArtifact_deploymentForArtifact-deploymentForArtifact-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_configuration_deployment" name="A_configuration_deployment">
<memberEnd xmi:idref="Deployment-configuration"/>
<memberEnd xmi:idref="DeploymentSpecification-deployment"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedAttribute_artifact" name="A_ownedAttribute_artifact">
<memberEnd xmi:idref="Artifact-ownedAttribute"/>
<memberEnd xmi:idref="A_ownedAttribute_artifact-artifact"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedAttribute_artifact-artifact" name="artifact" type="Artifact" association="A_ownedAttribute_artifact">
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedAttribute_artifact-artifact-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedOperation_artifact" name="A_ownedOperation_artifact">
<memberEnd xmi:idref="Artifact-ownedOperation"/>
<memberEnd xmi:idref="A_ownedOperation_artifact-artifact"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedOperation_artifact-artifact" name="artifact" type="Artifact" association="A_ownedOperation_artifact">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedOperation_artifact-artifact-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nestedArtifact_artifact" name="A_nestedArtifact_artifact">
<memberEnd xmi:idref="Artifact-nestedArtifact"/>
<memberEnd xmi:idref="A_nestedArtifact_artifact-artifact"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_nestedArtifact_artifact-artifact" name="artifact" type="Artifact" association="A_nestedArtifact_artifact">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_nestedArtifact_artifact-artifact-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_manifestation_artifact" name="A_manifestation_artifact">
<memberEnd xmi:idref="Artifact-manifestation"/>
<memberEnd xmi:idref="A_manifestation_artifact-artifact"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_manifestation_artifact-artifact" name="artifact" type="Artifact" association="A_manifestation_artifact">
<subsettedProperty xmi:idref="Dependency-client"/>
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="CommonStructure" name="CommonStructure">
<packageImport xmi:type="uml:PackageImport" xmi:id="CommonStructure-_packageImport.0" importedPackage="Packages"/>
<packagedElement xmi:type="uml:Class" xmi:id="Abstraction" name="Abstraction">
<ownedComment xmi:type="uml:Comment" xmi:id="Abstraction-_ownedComment.0" body="An Abstraction is a Relationship that relates two Elements or sets of Elements that represent the same concept at different levels of abstraction or from different viewpoints.">
<annotatedElement xmi:idref="Abstraction"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Abstraction-_generalization.0" general="Dependency"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Abstraction-mapping" name="mapping" aggregation="composite" type="OpaqueExpression" association="A_mapping_abstraction">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Abstraction-mapping-_ownedComment.0" body="An OpaqueExpression that states the abstraction relationship between the supplier(s) and the client(s). In some cases, such as derivation, it is usually formal and unidirectional; in other cases, such as trace, it is usually informal and bidirectional. The mapping expression is optional and may be omitted if the precise relationship between the Elements is not specified.">
<annotatedElement xmi:idref="Abstraction-mapping"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Abstraction-mapping-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Comment" name="Comment">
<ownedComment xmi:type="uml:Comment" xmi:id="Comment-_ownedComment.0" body="A Comment is a textual annotation that can be attached to a set of Elements.">
<annotatedElement xmi:idref="Comment"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Comment-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Comment-annotatedElement" name="annotatedElement" type="Element" association="A_annotatedElement_comment">
<ownedComment xmi:type="uml:Comment" xmi:id="Comment-annotatedElement-_ownedComment.0" body="References the Element(s) being commented.">
<annotatedElement xmi:idref="Comment-annotatedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Comment-annotatedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Comment-annotatedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Comment-body" name="body">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Comment-body-_ownedComment.0" body="Specifies a string that is the comment.">
<annotatedElement xmi:idref="Comment-body"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Comment-body-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Constraint" name="Constraint">
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-_ownedComment.0" body="A Constraint is a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of an Element or set of Elements.">
<annotatedElement xmi:idref="Constraint"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Constraint-boolean_value" name="boolean_value">
<constrainedElement xmi:idref="Constraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-boolean_value-_ownedComment.0" body="The ValueSpecification for a Constraint must evaluate to a Boolean value.">
<annotatedElement xmi:idref="Constraint-boolean_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Constraint-boolean_value-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Constraint-no_side_effects" name="no_side_effects">
<constrainedElement xmi:idref="Constraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-no_side_effects-_ownedComment.0" body="Evaluating the ValueSpecification for a Constraint must not have side effects.">
<annotatedElement xmi:idref="Constraint-no_side_effects"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Constraint-no_side_effects-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Constraint-not_apply_to_self" name="not_apply_to_self">
<constrainedElement xmi:idref="Constraint"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-not_apply_to_self-_ownedComment.0" body="A Constraint cannot be applied to itself.">
<annotatedElement xmi:idref="Constraint-not_apply_to_self"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Constraint-not_apply_to_self-_specification">
<body>not constrainedElement->includes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Constraint-_generalization.0" general="PackageableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Constraint-constrainedElement" name="constrainedElement" isOrdered="true" type="Element" association="A_constrainedElement_constraint">
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-constrainedElement-_ownedComment.0" body="The ordered set of Elements referenced by this Constraint.">
<annotatedElement xmi:idref="Constraint-constrainedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Constraint-constrainedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Constraint-constrainedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Constraint-context" name="context" type="Namespace" association="A_ownedRule_context">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-context-_ownedComment.0" body="Specifies the Namespace that owns the Constraint.">
<annotatedElement xmi:idref="Constraint-context"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Constraint-context-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Constraint-specification" name="specification" aggregation="composite" type="ValueSpecification" association="A_specification_owningConstraint">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Constraint-specification-_ownedComment.0" body="A condition that must be true when evaluated in order for the Constraint to be satisfied.">
<annotatedElement xmi:idref="Constraint-specification"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Dependency" name="Dependency">
<ownedComment xmi:type="uml:Comment" xmi:id="Dependency-_ownedComment.0" body="A Dependency is a Relationship that signifies that a single model Element or a set of model Elements requires other model Elements for their specification or implementation. This means that the complete semantics of the client Element(s) are either semantically or structurally dependent on the definition of the supplier Element(s).">
<annotatedElement xmi:idref="Dependency"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Dependency-_generalization.0" general="DirectedRelationship"/>
<generalization xmi:type="uml:Generalization" xmi:id="Dependency-_generalization.1" general="PackageableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Dependency-client" name="client" type="NamedElement" association="A_clientDependency_client">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Dependency-client-_ownedComment.0" body="The Element(s) dependent on the supplier Element(s). In some cases (such as a trace Abstraction) the assignment of direction (that is, the designation of the client Element) is at the discretion of the modeler and is a stipulation.">
<annotatedElement xmi:idref="Dependency-client"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Dependency-client-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Dependency-supplier" name="supplier" type="NamedElement" association="A_supplier_supplierDependency">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Dependency-supplier-_ownedComment.0" body="The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate a sense of Dependency direction suitable for their domain.">
<annotatedElement xmi:idref="Dependency-supplier"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Dependency-supplier-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DirectedRelationship" name="DirectedRelationship" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="DirectedRelationship-_ownedComment.0" body="A DirectedRelationship represents a relationship between a collection of source model Elements and a collection of target model Elements.">
<annotatedElement xmi:idref="DirectedRelationship"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DirectedRelationship-_generalization.0" general="Relationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DirectedRelationship-source" name="source" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Element" association="A_source_directedRelationship">
<subsettedProperty xmi:idref="Relationship-relatedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DirectedRelationship-source-_ownedComment.0" body="Specifies the source Element(s) of the DirectedRelationship.">
<annotatedElement xmi:idref="DirectedRelationship-source"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DirectedRelationship-source-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DirectedRelationship-target" name="target" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Element" association="A_target_directedRelationship">
<subsettedProperty xmi:idref="Relationship-relatedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DirectedRelationship-target-_ownedComment.0" body="Specifies the target Element(s) of the DirectedRelationship.">
<annotatedElement xmi:idref="DirectedRelationship-target"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DirectedRelationship-target-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Element" name="Element" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Element-_ownedComment.0" body="An Element is a constituent of a model. As such, it has the capability of owning other Elements.">
<annotatedElement xmi:idref="Element"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Element-has_owner" name="has_owner">
<constrainedElement xmi:idref="Element"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Element-has_owner-_ownedComment.0" body="Elements that must be owned must have an owner.">
<annotatedElement xmi:idref="Element-has_owner"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Element-has_owner-_specification">
<body>mustBeOwned() implies owner->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Element-not_own_self" name="not_own_self">
<constrainedElement xmi:idref="Element"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Element-not_own_self-_ownedComment.0" body="An element may not directly or indirectly own itself.">
<annotatedElement xmi:idref="Element-not_own_self"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Element-not_own_self-_specification">
<body>not allOwnedElements()->includes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedAttribute xmi:type="uml:Property" xmi:id="Element-ownedComment" name="ownedComment" aggregation="composite" type="Comment" association="A_ownedComment_owningElement">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Element-ownedComment-_ownedComment.0" body="The Comments owned by this Element.">
<annotatedElement xmi:idref="Element-ownedComment"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Element-ownedComment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Element-ownedComment-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Element-ownedElement" name="ownedElement" isReadOnly="true" aggregation="composite" isDerived="true" isDerivedUnion="true" type="Element" association="A_ownedElement_owner">
<ownedComment xmi:type="uml:Comment" xmi:id="Element-ownedElement-_ownedComment.0" body="The Elements owned by this Element.">
<annotatedElement xmi:idref="Element-ownedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Element-ownedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Element-ownedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Element-owner" name="owner" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Element" association="A_ownedElement_owner">
<ownedComment xmi:type="uml:Comment" xmi:id="Element-owner-_ownedComment.0" body="The Element that owns this Element.">
<annotatedElement xmi:idref="Element-owner"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Element-owner-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Element-allOwnedElements" name="allOwnedElements" isQuery="true" bodyCondition="Element-allOwnedElements-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Element-allOwnedElements-_ownedComment.0" body="The query allOwnedElements() gives all of the direct and indirect ownedElements of an Element.">
<annotatedElement xmi:idref="Element-allOwnedElements"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Element-allOwnedElements-spec" name="spec">
<constrainedElement xmi:idref="Element-allOwnedElements"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Element-allOwnedElements-spec-_specification">
<body>result = (ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Element-allOwnedElements-result" name="result" direction="return" type="Element">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Element-allOwnedElements-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Element-allOwnedElements-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Element-mustBeOwned" name="mustBeOwned" isQuery="true" bodyCondition="Element-mustBeOwned-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Element-mustBeOwned-_ownedComment.0" body="The query mustBeOwned() indicates whether Elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation.">
<annotatedElement xmi:idref="Element-mustBeOwned"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Element-mustBeOwned-spec" name="spec">
<constrainedElement xmi:idref="Element-mustBeOwned"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Element-mustBeOwned-spec-_specification">
<body>result = (true)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Element-mustBeOwned-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ElementImport" name="ElementImport">
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-_ownedComment.0" body="An ElementImport identifies a NamedElement in a Namespace other than the one that owns that NamedElement and allows the NamedElement to be referenced using an unqualified name in the Namespace owning the ElementImport.">
<annotatedElement xmi:idref="ElementImport"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ElementImport-imported_element_is_public" name="imported_element_is_public">
<constrainedElement xmi:idref="ElementImport"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-imported_element_is_public-_ownedComment.0" body="An importedElement has either public visibility or no visibility at all.">
<annotatedElement xmi:idref="ElementImport-imported_element_is_public"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ElementImport-imported_element_is_public-_specification">
<body>importedElement.visibility <> null implies importedElement.visibility = VisibilityKind::public</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ElementImport-visibility_public_or_private" name="visibility_public_or_private">
<constrainedElement xmi:idref="ElementImport"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-visibility_public_or_private-_ownedComment.0" body="The visibility of an ElementImport is either public or private.">
<annotatedElement xmi:idref="ElementImport-visibility_public_or_private"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ElementImport-visibility_public_or_private-_specification">
<body>visibility = VisibilityKind::public or visibility = VisibilityKind::private</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ElementImport-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ElementImport-alias" name="alias">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-alias-_ownedComment.0" body="Specifies the name that should be added to the importing Namespace in lieu of the name of the imported PackagableElement. The alias must not clash with any other member in the importing Namespace. By default, no alias is used.">
<annotatedElement xmi:idref="ElementImport-alias"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ElementImport-alias-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ElementImport-importedElement" name="importedElement" type="PackageableElement" association="A_importedElement_import">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-importedElement-_ownedComment.0" body="Specifies the PackageableElement whose name is to be added to a Namespace.">
<annotatedElement xmi:idref="ElementImport-importedElement"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ElementImport-importingNamespace" name="importingNamespace" type="Namespace" association="A_elementImport_importingNamespace">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-importingNamespace-_ownedComment.0" body="Specifies the Namespace that imports a PackageableElement from another Namespace.">
<annotatedElement xmi:idref="ElementImport-importingNamespace"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ElementImport-visibility" name="visibility" type="VisibilityKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-visibility-_ownedComment.0" body="Specifies the visibility of the imported PackageableElement within the importingNamespace, i.e., whether the importedElement will in turn be visible to other Namespaces. If the ElementImport is public, the importedElement will be visible outside the importingNamespace while, if the ElementImport is private, it will not.">
<annotatedElement xmi:idref="ElementImport-visibility"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="ElementImport-visibility-_defaultValue" type="VisibilityKind" instance="VisibilityKind-public"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ElementImport-getName" name="getName" isQuery="true" bodyCondition="ElementImport-getName-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ElementImport-getName-_ownedComment.0" body="The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace.">
<annotatedElement xmi:idref="ElementImport-getName"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ElementImport-getName-spec" name="spec">
<constrainedElement xmi:idref="ElementImport-getName"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ElementImport-getName-spec-_specification">
<body>result = (if alias->notEmpty() then alias else importedElement.name endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ElementImport-getName-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="MultiplicityElement" name="MultiplicityElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-_ownedComment.0" body="A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A MultiplicityElement embeds this information to specify the allowable cardinalities for an instantiation of the Element.">
<annotatedElement xmi:idref="MultiplicityElement"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-upper_ge_lower" name="upper_ge_lower">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upper_ge_lower-_ownedComment.0" body="The upper bound must be greater than or equal to the lower bound.">
<annotatedElement xmi:idref="MultiplicityElement-upper_ge_lower"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-upper_ge_lower-_specification">
<body>upperBound() >= lowerBound()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-lower_ge_0" name="lower_ge_0">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lower_ge_0-_ownedComment.0" body="The lower bound must be a non-negative integer literal.">
<annotatedElement xmi:idref="MultiplicityElement-lower_ge_0"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-lower_ge_0-_specification">
<body>lowerBound() >= 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-value_specification_no_side_effects" name="value_specification_no_side_effects">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-value_specification_no_side_effects-_ownedComment.0" body="If a non-literal ValueSpecification is used for lowerValue or upperValue, then evaluating that specification must not have side effects.">
<annotatedElement xmi:idref="MultiplicityElement-value_specification_no_side_effects"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-value_specification_no_side_effects-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-value_specification_constant" name="value_specification_constant">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-value_specification_constant-_ownedComment.0" body="If a non-literal ValueSpecification is used for lowerValue or upperValue, then that specification must be a constant expression.">
<annotatedElement xmi:idref="MultiplicityElement-value_specification_constant"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-value_specification_constant-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-lower_is_integer" name="lower_is_integer">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lower_is_integer-_ownedComment.0" body="If it is not empty, then lowerValue must have an Integer value.">
<annotatedElement xmi:idref="MultiplicityElement-lower_is_integer"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-lower_is_integer-_specification">
<body>lowerValue <> null implies lowerValue.integerValue() <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-upper_is_unlimitedNatural" name="upper_is_unlimitedNatural">
<constrainedElement xmi:idref="MultiplicityElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upper_is_unlimitedNatural-_ownedComment.0" body="If it is not empty, then upperValue must have an UnlimitedNatural value.">
<annotatedElement xmi:idref="MultiplicityElement-upper_is_unlimitedNatural"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-upper_is_unlimitedNatural-_specification">
<body>upperValue <> null implies upperValue.unlimitedValue() <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="MultiplicityElement-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-isOrdered" name="isOrdered">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-isOrdered-_ownedComment.0" body="For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this MultiplicityElement are sequentially ordered.">
<annotatedElement xmi:idref="MultiplicityElement-isOrdered"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="MultiplicityElement-isOrdered-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-isUnique" name="isUnique">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-isUnique-_ownedComment.0" body="For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this MultiplicityElement are unique.">
<annotatedElement xmi:idref="MultiplicityElement-isUnique"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="MultiplicityElement-isUnique-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-lower" name="lower" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lower-_ownedComment.0" body="The lower bound of the multiplicity interval.">
<annotatedElement xmi:idref="MultiplicityElement-lower"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-lowerValue" name="lowerValue" aggregation="composite" type="ValueSpecification" association="A_lowerValue_owningLower">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lowerValue-_ownedComment.0" body="The specification of the lower bound for this multiplicity.">
<annotatedElement xmi:idref="MultiplicityElement-lowerValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MultiplicityElement-lowerValue-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-upper" name="upper" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upper-_ownedComment.0" body="The upper bound of the multiplicity interval.">
<annotatedElement xmi:idref="MultiplicityElement-upper"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="MultiplicityElement-upperValue" name="upperValue" aggregation="composite" type="ValueSpecification" association="A_upperValue_owningUpper">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upperValue-_ownedComment.0" body="The specification of the upper bound for this multiplicity.">
<annotatedElement xmi:idref="MultiplicityElement-upperValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MultiplicityElement-upperValue-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-compatibleWith" name="compatibleWith" isQuery="true" bodyCondition="MultiplicityElement-compatibleWith-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-compatibleWith-_ownedComment.0" body="The operation compatibleWith takes another multiplicity as input. It returns true if the other multiplicity is wider than, or the same as, self.">
<annotatedElement xmi:idref="MultiplicityElement-compatibleWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-compatibleWith-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-compatibleWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-compatibleWith-spec-_specification">
<body>result = ((other.lowerBound() <= self.lowerBound()) and ((other.upperBound() = *) or (self.upperBound() <= other.upperBound())))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-compatibleWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-compatibleWith-other" name="other" type="MultiplicityElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-includesMultiplicity" name="includesMultiplicity" isQuery="true" bodyCondition="MultiplicityElement-includesMultiplicity-spec">
<precondition xmi:idref="MultiplicityElement-includesMultiplicity-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-includesMultiplicity-_ownedComment.0" body="The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity.">
<annotatedElement xmi:idref="MultiplicityElement-includesMultiplicity"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-includesMultiplicity-pre" name="pre">
<constrainedElement xmi:idref="MultiplicityElement-includesMultiplicity"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-includesMultiplicity-pre-_specification">
<body>self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-includesMultiplicity-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-includesMultiplicity"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-includesMultiplicity-spec-_specification">
<body>result = ((self.lowerBound() <= M.lowerBound()) and (self.upperBound() >= M.upperBound()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-includesMultiplicity-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-includesMultiplicity-M" name="M" type="MultiplicityElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-is" name="is" isQuery="true" bodyCondition="MultiplicityElement-is-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-is-_ownedComment.0" body="The operation is determines if the upper and lower bound of the ranges are the ones given.">
<annotatedElement xmi:idref="MultiplicityElement-is"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-is-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-is"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-is-spec-_specification">
<body>result = (lowerbound = self.lowerBound() and upperbound = self.upperBound())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-is-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-is-lowerbound" name="lowerbound">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-is-upperbound" name="upperbound">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-isMultivalued" name="isMultivalued" isQuery="true" bodyCondition="MultiplicityElement-isMultivalued-spec">
<precondition xmi:idref="MultiplicityElement-isMultivalued-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-isMultivalued-_ownedComment.0" body="The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.">
<annotatedElement xmi:idref="MultiplicityElement-isMultivalued"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-isMultivalued-pre" name="pre">
<constrainedElement xmi:idref="MultiplicityElement-isMultivalued"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-isMultivalued-pre-_specification">
<body>upperBound()->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-isMultivalued-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-isMultivalued"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-isMultivalued-spec-_specification">
<body>result = (upperBound() > 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-isMultivalued-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-lower.1" name="lower" isQuery="true" bodyCondition="MultiplicityElement-lower.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lower.1-_ownedComment.0" body="The derived lower attribute must equal the lowerBound.">
<annotatedElement xmi:idref="MultiplicityElement-lower.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-lower.1-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-lower.1"/>
<constrainedElement xmi:idref="MultiplicityElement-lower"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-lower.1-spec-_specification">
<body>result = (lowerBound())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-lower.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MultiplicityElement-lower.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-lowerBound" name="lowerBound" isQuery="true" bodyCondition="MultiplicityElement-lowerBound-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-lowerBound-_ownedComment.0" body="The query lowerBound() returns the lower bound of the multiplicity as an integer, which is the integerValue of lowerValue, if this is given, and 1 otherwise.">
<annotatedElement xmi:idref="MultiplicityElement-lowerBound"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-lowerBound-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-lowerBound"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-lowerBound-spec-_specification">
<body>result = (if (lowerValue=null or lowerValue.integerValue()=null) then 1 else lowerValue.integerValue() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-lowerBound-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-upper.1" name="upper" isQuery="true" bodyCondition="MultiplicityElement-upper.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upper.1-_ownedComment.0" body="The derived upper attribute must equal the upperBound.">
<annotatedElement xmi:idref="MultiplicityElement-upper.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-upper.1-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-upper.1"/>
<constrainedElement xmi:idref="MultiplicityElement-upper"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-upper.1-spec-_specification">
<body>result = (upperBound())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-upper.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="MultiplicityElement-upper.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="MultiplicityElement-upperBound" name="upperBound" isQuery="true" bodyCondition="MultiplicityElement-upperBound-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="MultiplicityElement-upperBound-_ownedComment.0" body="The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural, which is the unlimitedNaturalValue of upperValue, if given, and 1, otherwise.">
<annotatedElement xmi:idref="MultiplicityElement-upperBound"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="MultiplicityElement-upperBound-spec" name="spec">
<constrainedElement xmi:idref="MultiplicityElement-upperBound"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="MultiplicityElement-upperBound-spec-_specification">
<body>result = (if (upperValue=null or upperValue.unlimitedValue()=null) then 1 else upperValue.unlimitedValue() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="MultiplicityElement-upperBound-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="NamedElement" name="NamedElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-_ownedComment.0" body="A NamedElement is an Element in a model that may have a name. The name may be given directly and/or via the use of a StringExpression.">
<annotatedElement xmi:idref="NamedElement"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-visibility_needs_ownership" name="visibility_needs_ownership">
<constrainedElement xmi:idref="NamedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-visibility_needs_ownership-_ownedComment.0" body="If a NamedElement is owned by something other than a Namespace, it does not have a visibility. One that is not owned by anything (and hence must be a Package, as this is the only kind of NamedElement that overrides mustBeOwned()) may have a visibility.">
<annotatedElement xmi:idref="NamedElement-visibility_needs_ownership"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-visibility_needs_ownership-_specification">
<body>(namespace = null and owner <> null) implies visibility = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-has_qualified_name" name="has_qualified_name">
<constrainedElement xmi:idref="NamedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-has_qualified_name-_ownedComment.0" body="When there is a name, and all of the containing Namespaces have a name, the qualifiedName is constructed from the name of the NamedElement and the names of the containing Namespaces.">
<annotatedElement xmi:idref="NamedElement-has_qualified_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-has_qualified_name-_specification">
<body>(name <> null and allNamespaces()->select(ns | ns.name = null)->isEmpty()) implies qualifiedName = allNamespaces()->iterate( ns : Namespace; agg: String = name | ns.name.concat(self.separator()).concat(agg))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-has_no_qualified_name" name="has_no_qualified_name">
<constrainedElement xmi:idref="NamedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-has_no_qualified_name-_ownedComment.0" body="If there is no name, or one of the containing Namespaces has no name, there is no qualifiedName.">
<annotatedElement xmi:idref="NamedElement-has_no_qualified_name"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-has_no_qualified_name-_specification">
<body>name=null or allNamespaces()->select( ns | ns.name=null )->notEmpty() implies qualifiedName = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="NamedElement-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-clientDependency" name="clientDependency" isDerived="true" type="Dependency" association="A_clientDependency_client">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-clientDependency-_ownedComment.0" body="Indicates the Dependencies that reference this NamedElement as a client.">
<annotatedElement xmi:idref="NamedElement-clientDependency"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-clientDependency-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="NamedElement-clientDependency-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-name" name="name">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-name-_ownedComment.0" body="The name of the NamedElement.">
<annotatedElement xmi:idref="NamedElement-name"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-name-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-nameExpression" name="nameExpression" aggregation="composite" type="StringExpression" association="A_nameExpression_namedElement">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-nameExpression-_ownedComment.0" body="The StringExpression used to define the name of this NamedElement.">
<annotatedElement xmi:idref="NamedElement-nameExpression"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-nameExpression-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-namespace" name="namespace" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Namespace" association="A_ownedMember_namespace">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-namespace-_ownedComment.0" body="Specifies the Namespace that owns the NamedElement.">
<annotatedElement xmi:idref="NamedElement-namespace"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-namespace-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-qualifiedName" name="qualifiedName" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-qualifiedName-_ownedComment.0" body="A name that allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing Namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.">
<annotatedElement xmi:idref="NamedElement-qualifiedName"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-qualifiedName-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="NamedElement-visibility" name="visibility" type="VisibilityKind">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-visibility-_ownedComment.0" body="Determines whether and how the NamedElement is visible outside its owning Namespace.">
<annotatedElement xmi:idref="NamedElement-visibility"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-visibility-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-allNamespaces" name="allNamespaces" isQuery="true" bodyCondition="NamedElement-allNamespaces-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-allNamespaces-_ownedComment.0" body="The query allNamespaces() gives the sequence of Namespaces in which the NamedElement is nested, working outwards.">
<annotatedElement xmi:idref="NamedElement-allNamespaces"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-allNamespaces-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-allNamespaces"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-allNamespaces-spec-_specification">
<body>result = (if owner.oclIsKindOf(TemplateParameter) and owner.oclAsType(TemplateParameter).signature.template.oclIsKindOf(Namespace) then let enclosingNamespace : Namespace = owner.oclAsType(TemplateParameter).signature.template.oclAsType(Namespace) in enclosingNamespace.allNamespaces()->prepend(enclosingNamespace) else if namespace->isEmpty() then OrderedSet{} else namespace.allNamespaces()->prepend(namespace) endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-allNamespaces-result" isOrdered="true" name="result" direction="return" type="Namespace">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-allNamespaces-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="NamedElement-allNamespaces-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-allOwningPackages" name="allOwningPackages" isQuery="true" bodyCondition="NamedElement-allOwningPackages-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-allOwningPackages-_ownedComment.0" body="The query allOwningPackages() returns the set of all the enclosing Namespaces of this NamedElement, working outwards, that are Packages, up to but not including the first such Namespace that is not a Package.">
<annotatedElement xmi:idref="NamedElement-allOwningPackages"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-allOwningPackages-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-allOwningPackages"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-allOwningPackages-spec-_specification">
<body>result = (if namespace.oclIsKindOf(Package) then let owningPackage : Package = namespace.oclAsType(Package) in owningPackage->union(owningPackage.allOwningPackages()) else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-allOwningPackages-result" name="result" direction="return" type="Package">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-allOwningPackages-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="NamedElement-allOwningPackages-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-isDistinguishableFrom" name="isDistinguishableFrom" isQuery="true" bodyCondition="NamedElement-isDistinguishableFrom-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-isDistinguishableFrom-_ownedComment.0" body="The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have types neither of which is a kind of the other or (b) they have different names.">
<annotatedElement xmi:idref="NamedElement-isDistinguishableFrom"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-isDistinguishableFrom-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-isDistinguishableFrom"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-isDistinguishableFrom-spec-_specification">
<body>result = ((self.oclIsKindOf(n.oclType()) or n.oclIsKindOf(self.oclType())) implies ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty() )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-isDistinguishableFrom-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-isDistinguishableFrom-n" name="n" type="NamedElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-isDistinguishableFrom-ns" name="ns" type="Namespace"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-qualifiedName.1" name="qualifiedName" isQuery="true" bodyCondition="NamedElement-qualifiedName.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-qualifiedName.1-_ownedComment.0" body="When a NamedElement has a name, and all of its containing Namespaces have a name, the qualifiedName is constructed from the name of the NamedElement and the names of the containing Namespaces.">
<annotatedElement xmi:idref="NamedElement-qualifiedName.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-qualifiedName.1-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-qualifiedName.1"/>
<constrainedElement xmi:idref="NamedElement-qualifiedName"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-qualifiedName.1-spec-_specification">
<body>result = (if self.name <> null and self.allNamespaces()->select( ns | ns.name=null )->isEmpty() then self.allNamespaces()->iterate( ns : Namespace; agg: String = self.name | ns.name.concat(self.separator()).concat(agg)) else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-qualifiedName.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-separator" name="separator" isQuery="true" bodyCondition="NamedElement-separator-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="NamedElement-separator-_ownedComment.0" body="The query separator() gives the string that is used to separate names when constructing a qualifiedName.">
<annotatedElement xmi:idref="NamedElement-separator"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-separator-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-separator"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-separator-spec-_specification">
<body>result = ('::')</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-separator-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="NamedElement-clientDependency.1" name="clientDependency" isQuery="true" bodyCondition="NamedElement-clientDependency.1-spec">
<ownedRule xmi:type="uml:Constraint" xmi:id="NamedElement-clientDependency.1-spec" name="spec">
<constrainedElement xmi:idref="NamedElement-clientDependency.1"/>
<constrainedElement xmi:idref="NamedElement-clientDependency"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="NamedElement-clientDependency.1-spec-_specification">
<body>result = (Dependency.allInstances()->select(d | d.client->includes(self)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="NamedElement-clientDependency.1-result" name="result" direction="return" type="Dependency">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="NamedElement-clientDependency.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="NamedElement-clientDependency.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Namespace" name="Namespace" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-_ownedComment.0" body="A Namespace is an Element in a model that owns and/or imports a set of NamedElements that can be identified by name.">
<annotatedElement xmi:idref="Namespace"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-members_distinguishable" name="members_distinguishable">
<constrainedElement xmi:idref="Namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-members_distinguishable-_ownedComment.0" body="All the members of a Namespace are distinguishable within it.">
<annotatedElement xmi:idref="Namespace-members_distinguishable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-members_distinguishable-_specification">
<body>membersAreDistinguishable()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-cannot_import_self" name="cannot_import_self">
<constrainedElement xmi:idref="Namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-cannot_import_self-_ownedComment.0" body="A Namespace cannot have a PackageImport to itself.">
<annotatedElement xmi:idref="Namespace-cannot_import_self"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-cannot_import_self-_specification">
<body>packageImport.importedPackage.oclAsType(Namespace)->excludes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-cannot_import_ownedMembers" name="cannot_import_ownedMembers">
<constrainedElement xmi:idref="Namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-cannot_import_ownedMembers-_ownedComment.0" body="A Namespace cannot have an ElementImport to one of its ownedMembers.">
<annotatedElement xmi:idref="Namespace-cannot_import_ownedMembers"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-cannot_import_ownedMembers-_specification">
<body>elementImport.importedElement.oclAsType(Element)->excludesAll(ownedMember)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Namespace-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-elementImport" name="elementImport" aggregation="composite" type="ElementImport" association="A_elementImport_importingNamespace">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-elementImport-_ownedComment.0" body="References the ElementImports owned by the Namespace.">
<annotatedElement xmi:idref="Namespace-elementImport"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-elementImport-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-elementImport-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-importedMember" name="importedMember" isReadOnly="true" isDerived="true" type="PackageableElement" association="A_importedMember_namespace">
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-importedMember-_ownedComment.0" body="References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.">
<annotatedElement xmi:idref="Namespace-importedMember"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-importedMember-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-importedMember-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-member" name="member" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="NamedElement" association="A_member_memberNamespace">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-member-_ownedComment.0" body="A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.">
<annotatedElement xmi:idref="Namespace-member"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-member-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-member-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-ownedMember" name="ownedMember" isReadOnly="true" aggregation="composite" isDerived="true" isDerivedUnion="true" type="NamedElement" association="A_ownedMember_namespace">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-ownedMember-_ownedComment.0" body="A collection of NamedElements owned by the Namespace.">
<annotatedElement xmi:idref="Namespace-ownedMember"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-ownedMember-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-ownedMember-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-ownedRule" name="ownedRule" aggregation="composite" type="Constraint" association="A_ownedRule_context">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-ownedRule-_ownedComment.0" body="Specifies a set of Constraints owned by this Namespace.">
<annotatedElement xmi:idref="Namespace-ownedRule"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-ownedRule-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-ownedRule-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Namespace-packageImport" name="packageImport" aggregation="composite" type="PackageImport" association="A_packageImport_importingNamespace">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-packageImport-_ownedComment.0" body="References the PackageImports owned by the Namespace.">
<annotatedElement xmi:idref="Namespace-packageImport"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-packageImport-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-packageImport-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Namespace-excludeCollisions" name="excludeCollisions" isQuery="true" bodyCondition="Namespace-excludeCollisions-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-excludeCollisions-_ownedComment.0" body="The query excludeCollisions() excludes from a set of PackageableElements any that would not be distinguishable from each other in this Namespace.">
<annotatedElement xmi:idref="Namespace-excludeCollisions"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-excludeCollisions-spec" name="spec">
<constrainedElement xmi:idref="Namespace-excludeCollisions"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-excludeCollisions-spec-_specification">
<body>result = (imps->reject(imp1 | imps->exists(imp2 | not imp1.isDistinguishableFrom(imp2, self))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-excludeCollisions-result" name="result" direction="return" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-excludeCollisions-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-excludeCollisions-result-_upperValue" value="*"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-excludeCollisions-imps" name="imps" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-excludeCollisions-imps-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-excludeCollisions-imps-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Namespace-getNamesOfMember" name="getNamesOfMember" isQuery="true" bodyCondition="Namespace-getNamesOfMember-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-getNamesOfMember-_ownedComment.0" body="The query getNamesOfMember() gives a set of all of the names that a member would have in a Namespace, taking importing into account. In general a member can have multiple names in a Namespace if it is imported more than once with different aliases.">
<annotatedElement xmi:idref="Namespace-getNamesOfMember"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-getNamesOfMember-spec" name="spec">
<constrainedElement xmi:idref="Namespace-getNamesOfMember"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-getNamesOfMember-spec-_specification">
<body>result = (if self.ownedMember ->includes(element) then Set{element.name} else let elementImports : Set(ElementImport) = self.elementImport->select(ei | ei.importedElement = element) in if elementImports->notEmpty() then elementImports->collect(el | el.getName())->asSet() else self.packageImport->select(pi | pi.importedPackage.visibleMembers().oclAsType(NamedElement)->includes(element))-> collect(pi | pi.importedPackage.getNamesOfMember(element))->asSet() endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-getNamesOfMember-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-getNamesOfMember-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-getNamesOfMember-result-_upperValue" value="*"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-getNamesOfMember-element" name="element" type="NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Namespace-importMembers" name="importMembers" isQuery="true" bodyCondition="Namespace-importMembers-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-importMembers-_ownedComment.0" body="The query importMembers() defines which of a set of PackageableElements are actually imported into the Namespace. This excludes hidden ones, i.e., those which have names that conflict with names of ownedMembers, and it also excludes PackageableElements that would have the indistinguishable names when imported.">
<annotatedElement xmi:idref="Namespace-importMembers"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-importMembers-spec" name="spec">
<constrainedElement xmi:idref="Namespace-importMembers"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-importMembers-spec-_specification">
<body>result = (self.excludeCollisions(imps)->select(imp | self.ownedMember->forAll(mem | imp.isDistinguishableFrom(mem, self))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-importMembers-result" name="result" direction="return" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-importMembers-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-importMembers-result-_upperValue" value="*"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-importMembers-imps" name="imps" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-importMembers-imps-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-importMembers-imps-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Namespace-importedMember.1" name="importedMember" isQuery="true" bodyCondition="Namespace-importedMember.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-importedMember.1-_ownedComment.0" body="The importedMember property is derived as the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.">
<annotatedElement xmi:idref="Namespace-importedMember.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-importedMember.1-spec" name="spec">
<constrainedElement xmi:idref="Namespace-importedMember.1"/>
<constrainedElement xmi:idref="Namespace-importedMember"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-importedMember.1-spec-_specification">
<body>result = (self.importMembers(elementImport.importedElement->asSet()->union(packageImport.importedPackage->collect(p | p.visibleMembers()))->asSet()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-importedMember.1-result" name="result" direction="return" type="PackageableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Namespace-importedMember.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Namespace-importedMember.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Namespace-membersAreDistinguishable" name="membersAreDistinguishable" isQuery="true" bodyCondition="Namespace-membersAreDistinguishable-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Namespace-membersAreDistinguishable-_ownedComment.0" body="The Boolean query membersAreDistinguishable() determines whether all of the Namespace's members are distinguishable within it.">
<annotatedElement xmi:idref="Namespace-membersAreDistinguishable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Namespace-membersAreDistinguishable-spec" name="spec">
<constrainedElement xmi:idref="Namespace-membersAreDistinguishable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Namespace-membersAreDistinguishable-spec-_specification">
<body>result = (member->forAll( memb | member->excluding(memb)->forAll(other | memb.isDistinguishableFrom(other, self))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Namespace-membersAreDistinguishable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="PackageableElement" name="PackageableElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="PackageableElement-_ownedComment.0" body="A PackageableElement is a NamedElement that may be owned directly by a Package. A PackageableElement is also able to serve as the parameteredElement of a TemplateParameter.">
<annotatedElement xmi:idref="PackageableElement"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="PackageableElement-namespace_needs_visibility" name="namespace_needs_visibility">
<constrainedElement xmi:idref="PackageableElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageableElement-namespace_needs_visibility-_ownedComment.0" body="A PackageableElement owned by a Namespace must have a visibility.">
<annotatedElement xmi:idref="PackageableElement-namespace_needs_visibility"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="PackageableElement-namespace_needs_visibility-_specification">
<body>visibility = null implies namespace = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="PackageableElement-_generalization.0" general="ParameterableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="PackageableElement-_generalization.1" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageableElement-visibility" name="visibility" type="VisibilityKind">
<redefinedProperty xmi:idref="NamedElement-visibility"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageableElement-visibility-_ownedComment.0" body="A PackageableElement must have a visibility specified if it is owned by a Namespace. The default visibility is public.">
<annotatedElement xmi:idref="PackageableElement-visibility"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="PackageableElement-visibility-_lowerValue"/>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="PackageableElement-visibility-_defaultValue" type="VisibilityKind" instance="VisibilityKind-public"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="PackageImport" name="PackageImport">
<ownedComment xmi:type="uml:Comment" xmi:id="PackageImport-_ownedComment.0" body="A PackageImport is a Relationship that imports all the non-private members of a Package into the Namespace owning the PackageImport, so that those Elements may be referred to by their unqualified names in the importingNamespace.">
<annotatedElement xmi:idref="PackageImport"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="PackageImport-public_or_private" name="public_or_private">
<constrainedElement xmi:idref="PackageImport"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageImport-public_or_private-_ownedComment.0" body="The visibility of a PackageImport is either public or private.">
<annotatedElement xmi:idref="PackageImport-public_or_private"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="PackageImport-public_or_private-_specification">
<body>visibility = VisibilityKind::public or visibility = VisibilityKind::private</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="PackageImport-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageImport-importedPackage" name="importedPackage" type="Package" association="A_importedPackage_packageImport">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageImport-importedPackage-_ownedComment.0" body="Specifies the Package whose members are imported into a Namespace.">
<annotatedElement xmi:idref="PackageImport-importedPackage"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageImport-importingNamespace" name="importingNamespace" type="Namespace" association="A_packageImport_importingNamespace">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="PackageImport-importingNamespace-_ownedComment.0" body="Specifies the Namespace that imports the members from a Package.">
<annotatedElement xmi:idref="PackageImport-importingNamespace"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="PackageImport-visibility" name="visibility" type="VisibilityKind">
<ownedComment xmi:type="uml:Comment" xmi:id="PackageImport-visibility-_ownedComment.0" body="Specifies the visibility of the imported PackageableElements within the importingNamespace, i.e., whether imported Elements will in turn be visible to other Namespaces. If the PackageImport is public, the imported Elements will be visible outside the importingNamespace, while, if the PackageImport is private, they will not.">
<annotatedElement xmi:idref="PackageImport-visibility"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="PackageImport-visibility-_defaultValue" type="VisibilityKind" instance="VisibilityKind-public"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ParameterableElement" name="ParameterableElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterableElement-_ownedComment.0" body="A ParameterableElement is an Element that can be exposed as a formal TemplateParameter for a template, or specified as an actual parameter in a binding of a template.">
<annotatedElement xmi:idref="ParameterableElement"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ParameterableElement-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ParameterableElement-owningTemplateParameter" name="owningTemplateParameter" type="TemplateParameter" association="A_ownedParameteredElement_owningTemplateParameter">
<subsettedProperty xmi:idref="Element-owner"/>
<subsettedProperty xmi:idref="ParameterableElement-templateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterableElement-owningTemplateParameter-_ownedComment.0" body="The formal TemplateParameter that owns this ParameterableElement.">
<annotatedElement xmi:idref="ParameterableElement-owningTemplateParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ParameterableElement-owningTemplateParameter-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ParameterableElement-templateParameter" name="templateParameter" type="TemplateParameter" association="A_parameteredElement_templateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterableElement-templateParameter-_ownedComment.0" body="The TemplateParameter that exposes this ParameterableElement as a formal parameter.">
<annotatedElement xmi:idref="ParameterableElement-templateParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ParameterableElement-templateParameter-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ParameterableElement-isCompatibleWith" name="isCompatibleWith" isQuery="true" bodyCondition="ParameterableElement-isCompatibleWith-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterableElement-isCompatibleWith-_ownedComment.0" body="The query isCompatibleWith() determines if this ParameterableElement is compatible with the specified ParameterableElement. By default, this ParameterableElement is compatible with another ParameterableElement p if the kind of this ParameterableElement is the same as or a subtype of the kind of p. Subclasses of ParameterableElement should override this operation to specify different compatibility constraints.">
<annotatedElement xmi:idref="ParameterableElement-isCompatibleWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ParameterableElement-isCompatibleWith-spec" name="spec">
<constrainedElement xmi:idref="ParameterableElement-isCompatibleWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ParameterableElement-isCompatibleWith-spec-_specification">
<body>result = (self.oclIsKindOf(p.oclType()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ParameterableElement-isCompatibleWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ParameterableElement-isCompatibleWith-p" name="p" type="ParameterableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="ParameterableElement-isTemplateParameter" name="isTemplateParameter" isQuery="true" bodyCondition="ParameterableElement-isTemplateParameter-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterableElement-isTemplateParameter-_ownedComment.0" body="The query isTemplateParameter() determines if this ParameterableElement is exposed as a formal TemplateParameter.">
<annotatedElement xmi:idref="ParameterableElement-isTemplateParameter"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ParameterableElement-isTemplateParameter-spec" name="spec">
<constrainedElement xmi:idref="ParameterableElement-isTemplateParameter"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ParameterableElement-isTemplateParameter-spec-_specification">
<body>result = (templateParameter->notEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ParameterableElement-isTemplateParameter-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Realization" name="Realization">
<ownedComment xmi:type="uml:Comment" xmi:id="Realization-_ownedComment.0" body="Realization is a specialized Abstraction relationship between two sets of model Elements, one representing a specification (the supplier) and the other represents an implementation of the latter (the client). Realization can be used to model stepwise refinement, optimizations, transformations, templates, model synthesis, framework composition, etc.">
<annotatedElement xmi:idref="Realization"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Realization-_generalization.0" general="Abstraction"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Relationship" name="Relationship" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Relationship-_ownedComment.0" body="Relationship is an abstract concept that specifies some kind of relationship between Elements.">
<annotatedElement xmi:idref="Relationship"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Relationship-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Relationship-relatedElement" name="relatedElement" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Element" association="A_relatedElement_relationship">
<ownedComment xmi:type="uml:Comment" xmi:id="Relationship-relatedElement-_ownedComment.0" body="Specifies the elements related by the Relationship.">
<annotatedElement xmi:idref="Relationship-relatedElement"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Relationship-relatedElement-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TemplateableElement" name="TemplateableElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateableElement-_ownedComment.0" body="A TemplateableElement is an Element that can optionally be defined as a template and bound to other templates.">
<annotatedElement xmi:idref="TemplateableElement"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="TemplateableElement-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateableElement-ownedTemplateSignature" name="ownedTemplateSignature" aggregation="composite" type="TemplateSignature" association="A_ownedTemplateSignature_template">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateableElement-ownedTemplateSignature-_ownedComment.0" body="The optional TemplateSignature specifying the formal TemplateParameters for this TemplateableElement. If a TemplateableElement has a TemplateSignature, then it is a template.">
<annotatedElement xmi:idref="TemplateableElement-ownedTemplateSignature"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateableElement-ownedTemplateSignature-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateableElement-templateBinding" name="templateBinding" aggregation="composite" type="TemplateBinding" association="A_templateBinding_boundElement">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateableElement-templateBinding-_ownedComment.0" body="The optional TemplateBindings from this TemplateableElement to one or more templates.">
<annotatedElement xmi:idref="TemplateableElement-templateBinding"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateableElement-templateBinding-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TemplateableElement-templateBinding-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="TemplateableElement-isTemplate" name="isTemplate" isQuery="true" bodyCondition="TemplateableElement-isTemplate-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateableElement-isTemplate-_ownedComment.0" body="The query isTemplate() returns whether this TemplateableElement is actually a template.">
<annotatedElement xmi:idref="TemplateableElement-isTemplate"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateableElement-isTemplate-spec" name="spec">
<constrainedElement xmi:idref="TemplateableElement-isTemplate"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateableElement-isTemplate-spec-_specification">
<body>result = (ownedTemplateSignature <> null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="TemplateableElement-isTemplate-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="TemplateableElement-parameterableElements" name="parameterableElements" isQuery="true" bodyCondition="TemplateableElement-parameterableElements-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateableElement-parameterableElements-_ownedComment.0" body="The query parameterableElements() returns the set of ParameterableElements that may be used as the parameteredElements for a TemplateParameter of this TemplateableElement. By default, this set includes all the ownedElements. Subclasses may override this operation if they choose to restrict the set of ParameterableElements.">
<annotatedElement xmi:idref="TemplateableElement-parameterableElements"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateableElement-parameterableElements-spec" name="spec">
<constrainedElement xmi:idref="TemplateableElement-parameterableElements"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateableElement-parameterableElements-spec-_specification">
<body>result = (self.allOwnedElements()->select(oclIsKindOf(ParameterableElement)).oclAsType(ParameterableElement)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="TemplateableElement-parameterableElements-result" name="result" direction="return" type="ParameterableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateableElement-parameterableElements-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TemplateableElement-parameterableElements-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TemplateBinding" name="TemplateBinding">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-_ownedComment.0" body="A TemplateBinding is a DirectedRelationship between a TemplateableElement and a template. A TemplateBinding specifies the TemplateParameterSubstitutions of actual parameters for the formal parameters of the template.">
<annotatedElement xmi:idref="TemplateBinding"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateBinding-parameter_substitution_formal" name="parameter_substitution_formal">
<constrainedElement xmi:idref="TemplateBinding"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-parameter_substitution_formal-_ownedComment.0" body="Each parameterSubstitution must refer to a formal TemplateParameter of the target TemplateSignature.">
<annotatedElement xmi:idref="TemplateBinding-parameter_substitution_formal"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateBinding-parameter_substitution_formal-_specification">
<body>parameterSubstitution->forAll(b | signature.parameter->includes(b.formal))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateBinding-one_parameter_substitution" name="one_parameter_substitution">
<constrainedElement xmi:idref="TemplateBinding"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-one_parameter_substitution-_ownedComment.0" body="A TemplateBiinding contains at most one TemplateParameterSubstitution for each formal TemplateParameter of the target TemplateSignature.">
<annotatedElement xmi:idref="TemplateBinding-one_parameter_substitution"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateBinding-one_parameter_substitution-_specification">
<body>signature.parameter->forAll(p | parameterSubstitution->select(b | b.formal = p)->size() <= 1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TemplateBinding-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateBinding-boundElement" name="boundElement" type="TemplateableElement" association="A_templateBinding_boundElement">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-boundElement-_ownedComment.0" body="The TemplateableElement that is bound by this TemplateBinding.">
<annotatedElement xmi:idref="TemplateBinding-boundElement"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateBinding-parameterSubstitution" name="parameterSubstitution" aggregation="composite" type="TemplateParameterSubstitution" association="A_parameterSubstitution_templateBinding">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-parameterSubstitution-_ownedComment.0" body="The TemplateParameterSubstitutions owned by this TemplateBinding.">
<annotatedElement xmi:idref="TemplateBinding-parameterSubstitution"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateBinding-parameterSubstitution-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TemplateBinding-parameterSubstitution-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateBinding-signature" name="signature" type="TemplateSignature" association="A_signature_templateBinding">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateBinding-signature-_ownedComment.0" body="The TemplateSignature for the template that is the target of this TemplateBinding.">
<annotatedElement xmi:idref="TemplateBinding-signature"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TemplateParameter" name="TemplateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-_ownedComment.0" body="A TemplateParameter exposes a ParameterableElement as a formal parameter of a template.">
<annotatedElement xmi:idref="TemplateParameter"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateParameter-must_be_compatible" name="must_be_compatible">
<constrainedElement xmi:idref="TemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-must_be_compatible-_ownedComment.0" body="The default must be compatible with the formal TemplateParameter.">
<annotatedElement xmi:idref="TemplateParameter-must_be_compatible"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateParameter-must_be_compatible-_specification">
<body>default <> null implies default.isCompatibleWith(parameteredElement)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TemplateParameter-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameter-default" name="default" type="ParameterableElement" association="A_default_templateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-default-_ownedComment.0" body="The ParameterableElement that is the default for this formal TemplateParameter.">
<annotatedElement xmi:idref="TemplateParameter-default"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateParameter-default-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameter-ownedDefault" name="ownedDefault" aggregation="composite" type="ParameterableElement" association="A_ownedDefault_templateParameter">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="TemplateParameter-default"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-ownedDefault-_ownedComment.0" body="The ParameterableElement that is owned by this TemplateParameter for the purpose of providing a default.">
<annotatedElement xmi:idref="TemplateParameter-ownedDefault"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateParameter-ownedDefault-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameter-ownedParameteredElement" name="ownedParameteredElement" aggregation="composite" type="ParameterableElement" association="A_ownedParameteredElement_owningTemplateParameter">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="TemplateParameter-parameteredElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-ownedParameteredElement-_ownedComment.0" body="The ParameterableElement that is owned by this TemplateParameter for the purpose of exposing it as the parameteredElement.">
<annotatedElement xmi:idref="TemplateParameter-ownedParameteredElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateParameter-ownedParameteredElement-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameter-parameteredElement" name="parameteredElement" type="ParameterableElement" association="A_parameteredElement_templateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-parameteredElement-_ownedComment.0" body="The ParameterableElement exposed by this TemplateParameter.">
<annotatedElement xmi:idref="TemplateParameter-parameteredElement"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameter-signature" name="signature" type="TemplateSignature" association="A_ownedParameter_signature">
<subsettedProperty xmi:idref="A_parameter_templateSignature-templateSignature"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameter-signature-_ownedComment.0" body="The TemplateSignature that owns this TemplateParameter.">
<annotatedElement xmi:idref="TemplateParameter-signature"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TemplateParameterSubstitution" name="TemplateParameterSubstitution">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-_ownedComment.0" body="A TemplateParameterSubstitution relates the actual parameter to a formal TemplateParameter as part of a template binding.">
<annotatedElement xmi:idref="TemplateParameterSubstitution"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateParameterSubstitution-must_be_compatible" name="must_be_compatible">
<constrainedElement xmi:idref="TemplateParameterSubstitution"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-must_be_compatible-_ownedComment.0" body="The actual ParameterableElement must be compatible with the formal TemplateParameter, e.g., the actual ParameterableElement for a Class TemplateParameter must be a Class.">
<annotatedElement xmi:idref="TemplateParameterSubstitution-must_be_compatible"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateParameterSubstitution-must_be_compatible-_specification">
<body>actual->forAll(a | a.isCompatibleWith(formal.parameteredElement))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TemplateParameterSubstitution-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameterSubstitution-actual" name="actual" type="ParameterableElement" association="A_actual_templateParameterSubstitution">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-actual-_ownedComment.0" body="The ParameterableElement that is the actual parameter for this TemplateParameterSubstitution.">
<annotatedElement xmi:idref="TemplateParameterSubstitution-actual"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameterSubstitution-formal" name="formal" type="TemplateParameter" association="A_formal_templateParameterSubstitution">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-formal-_ownedComment.0" body="The formal TemplateParameter that is associated with this TemplateParameterSubstitution.">
<annotatedElement xmi:idref="TemplateParameterSubstitution-formal"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameterSubstitution-ownedActual" name="ownedActual" aggregation="composite" type="ParameterableElement" association="A_ownedActual_owningTemplateParameterSubstitution">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="TemplateParameterSubstitution-actual"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-ownedActual-_ownedComment.0" body="The ParameterableElement that is owned by this TemplateParameterSubstitution as its actual parameter.">
<annotatedElement xmi:idref="TemplateParameterSubstitution-ownedActual"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateParameterSubstitution-ownedActual-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateParameterSubstitution-templateBinding" name="templateBinding" type="TemplateBinding" association="A_parameterSubstitution_templateBinding">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateParameterSubstitution-templateBinding-_ownedComment.0" body="The TemplateBinding that owns this TemplateParameterSubstitution.">
<annotatedElement xmi:idref="TemplateParameterSubstitution-templateBinding"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TemplateSignature" name="TemplateSignature">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-_ownedComment.0" body="A Template Signature bundles the set of formal TemplateParameters for a template.">
<annotatedElement xmi:idref="TemplateSignature"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateSignature-own_elements" name="own_elements">
<constrainedElement xmi:idref="TemplateSignature"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-own_elements-_ownedComment.0" body="Parameters must own the ParameterableElements they parameter or those ParameterableElements must be owned by the TemplateableElement being templated.">
<annotatedElement xmi:idref="TemplateSignature-own_elements"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateSignature-own_elements-_specification">
<body>template.ownedElement->includesAll(parameter.parameteredElement->asSet() - parameter.ownedParameteredElement->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="TemplateSignature-unique_parameters" name="unique_parameters">
<constrainedElement xmi:idref="TemplateSignature"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-unique_parameters-_ownedComment.0" body="The names of the parameters of a TemplateSignature are unique.">
<annotatedElement xmi:idref="TemplateSignature-unique_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TemplateSignature-unique_parameters-_specification">
<body>parameter->forAll( p1, p2 | (p1 <> p2 and p1.parameteredElement.oclIsKindOf(NamedElement) and p2.parameteredElement.oclIsKindOf(NamedElement) ) implies p1.parameteredElement.oclAsType(NamedElement).name <> p2.parameteredElement.oclAsType(NamedElement).name)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TemplateSignature-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateSignature-ownedParameter" name="ownedParameter" isOrdered="true" aggregation="composite" type="TemplateParameter" association="A_ownedParameter_signature">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="TemplateSignature-parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-ownedParameter-_ownedComment.0" body="The formal parameters that are owned by this TemplateSignature.">
<annotatedElement xmi:idref="TemplateSignature-ownedParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TemplateSignature-ownedParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TemplateSignature-ownedParameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateSignature-parameter" name="parameter" isOrdered="true" type="TemplateParameter" association="A_parameter_templateSignature">
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-parameter-_ownedComment.0" body="The ordered set of all formal TemplateParameters for this TemplateSignature.">
<annotatedElement xmi:idref="TemplateSignature-parameter"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="TemplateSignature-parameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TemplateSignature-template" name="template" type="TemplateableElement" association="A_ownedTemplateSignature_template">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TemplateSignature-template-_ownedComment.0" body="The TemplateableElement that owns this TemplateSignature.">
<annotatedElement xmi:idref="TemplateSignature-template"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Type" name="Type" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Type-_ownedComment.0" body="A Type constrains the values represented by a TypedElement.">
<annotatedElement xmi:idref="Type"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Type-_generalization.0" general="PackageableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Type-package" name="package" type="Package" association="A_ownedType_package">
<subsettedProperty xmi:idref="A_packagedElement_owningPackage-owningPackage"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Type-package-_ownedComment.0" body="Specifies the owning Package of this Type, if any.">
<annotatedElement xmi:idref="Type-package"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Type-package-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Type-conformsTo" name="conformsTo" isQuery="true" bodyCondition="Type-conformsTo-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Type-conformsTo-_ownedComment.0" body="The query conformsTo() gives true for a Type that conforms to another. By default, two Types do not conform to each other. This query is intended to be redefined for specific conformance situations.">
<annotatedElement xmi:idref="Type-conformsTo"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Type-conformsTo-spec" name="spec">
<constrainedElement xmi:idref="Type-conformsTo"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Type-conformsTo-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Type-conformsTo-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Type-conformsTo-other" name="other" type="Type"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TypedElement" name="TypedElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="TypedElement-_ownedComment.0" body="A TypedElement is a NamedElement that may have a Type specified for it.">
<annotatedElement xmi:idref="TypedElement"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="TypedElement-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TypedElement-type" name="type" type="Type" association="A_type_typedElement">
<ownedComment xmi:type="uml:Comment" xmi:id="TypedElement-type-_ownedComment.0" body="The type of the TypedElement.">
<annotatedElement xmi:idref="TypedElement-type"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="TypedElement-type-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Usage" name="Usage">
<ownedComment xmi:type="uml:Comment" xmi:id="Usage-_ownedComment.0" body="A Usage is a Dependency in which the client Element requires the supplier Element (or set of Elements) for its full implementation or operation.">
<annotatedElement xmi:idref="Usage"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Usage-_generalization.0" general="Dependency"/>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="VisibilityKind" name="VisibilityKind">
<ownedComment xmi:type="uml:Comment" xmi:id="VisibilityKind-_ownedComment.0" body="VisibilityKind is an enumeration type that defines literals to determine the visibility of Elements in a model.">
<annotatedElement xmi:idref="VisibilityKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="VisibilityKind-public" name="public">
<ownedComment xmi:type="uml:Comment" xmi:id="VisibilityKind-public-_ownedComment.0" body="A Named Element with public visibility is visible to all elements that can access the contents of the Namespace that owns it.">
<annotatedElement xmi:idref="VisibilityKind-public"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="VisibilityKind-private" name="private">
<ownedComment xmi:type="uml:Comment" xmi:id="VisibilityKind-private-_ownedComment.0" body="A NamedElement with private visibility is only visible inside the Namespace that owns it.">
<annotatedElement xmi:idref="VisibilityKind-private"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="VisibilityKind-protected" name="protected">
<ownedComment xmi:type="uml:Comment" xmi:id="VisibilityKind-protected-_ownedComment.0" body="A NamedElement with protected visibility is visible to Elements that have a generalization relationship to the Namespace that owns it.">
<annotatedElement xmi:idref="VisibilityKind-protected"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="VisibilityKind-package" name="package">
<ownedComment xmi:type="uml:Comment" xmi:id="VisibilityKind-package-_ownedComment.0" body="A NamedElement with package visibility is visible to all Elements within the nearest enclosing Package (given that other owning Elements have proper visibility). Outside the nearest enclosing Package, a NamedElement marked as having package visibility is not visible. Only NamedElements that are not owned by Packages can be marked as having package visibility. ">
<annotatedElement xmi:idref="VisibilityKind-package"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_type_typedElement" name="A_type_typedElement">
<memberEnd xmi:idref="TypedElement-type"/>
<memberEnd xmi:idref="A_type_typedElement-typedElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_type_typedElement-typedElement" name="typedElement" type="TypedElement" association="A_type_typedElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_type_typedElement-typedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_type_typedElement-typedElement-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameter_signature" name="A_ownedParameter_signature">
<memberEnd xmi:idref="TemplateSignature-ownedParameter"/>
<memberEnd xmi:idref="TemplateParameter-signature"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_parameter_templateSignature" name="A_parameter_templateSignature">
<memberEnd xmi:idref="TemplateSignature-parameter"/>
<memberEnd xmi:idref="A_parameter_templateSignature-templateSignature"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_parameter_templateSignature-templateSignature" name="templateSignature" type="TemplateSignature" association="A_parameter_templateSignature">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_parameter_templateSignature-templateSignature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_parameter_templateSignature-templateSignature-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_actual_templateParameterSubstitution" name="A_actual_templateParameterSubstitution">
<memberEnd xmi:idref="TemplateParameterSubstitution-actual"/>
<memberEnd xmi:idref="A_actual_templateParameterSubstitution-templateParameterSubstitution"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_actual_templateParameterSubstitution-templateParameterSubstitution" name="templateParameterSubstitution" type="TemplateParameterSubstitution" association="A_actual_templateParameterSubstitution">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_actual_templateParameterSubstitution-templateParameterSubstitution-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_actual_templateParameterSubstitution-templateParameterSubstitution-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedActual_owningTemplateParameterSubstitution" name="A_ownedActual_owningTemplateParameterSubstitution">
<memberEnd xmi:idref="TemplateParameterSubstitution-ownedActual"/>
<memberEnd xmi:idref="A_ownedActual_owningTemplateParameterSubstitution-owningTemplateParameterSubstitution"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_ownedActual_owningTemplateParameterSubstitution-_generalization.0" general="A_actual_templateParameterSubstitution"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedActual_owningTemplateParameterSubstitution-owningTemplateParameterSubstitution" name="owningTemplateParameterSubstitution" type="TemplateParameterSubstitution" association="A_ownedActual_owningTemplateParameterSubstitution">
<redefinedProperty xmi:idref="A_actual_templateParameterSubstitution-templateParameterSubstitution"/>
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedActual_owningTemplateParameterSubstitution-owningTemplateParameterSubstitution-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_formal_templateParameterSubstitution" name="A_formal_templateParameterSubstitution">
<memberEnd xmi:idref="TemplateParameterSubstitution-formal"/>
<memberEnd xmi:idref="A_formal_templateParameterSubstitution-templateParameterSubstitution"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_formal_templateParameterSubstitution-templateParameterSubstitution" name="templateParameterSubstitution" type="TemplateParameterSubstitution" association="A_formal_templateParameterSubstitution">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_formal_templateParameterSubstitution-templateParameterSubstitution-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_formal_templateParameterSubstitution-templateParameterSubstitution-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedDefault_templateParameter" name="A_ownedDefault_templateParameter">
<memberEnd xmi:idref="TemplateParameter-ownedDefault"/>
<memberEnd xmi:idref="A_ownedDefault_templateParameter-templateParameter"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_ownedDefault_templateParameter-_generalization.0" general="A_default_templateParameter"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedDefault_templateParameter-templateParameter" name="templateParameter" type="TemplateParameter" association="A_ownedDefault_templateParameter">
<redefinedProperty xmi:idref="A_default_templateParameter-templateParameter"/>
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedDefault_templateParameter-templateParameter-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameteredElement_owningTemplateParameter" name="A_ownedParameteredElement_owningTemplateParameter">
<memberEnd xmi:idref="TemplateParameter-ownedParameteredElement"/>
<memberEnd xmi:idref="ParameterableElement-owningTemplateParameter"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_default_templateParameter" name="A_default_templateParameter">
<memberEnd xmi:idref="TemplateParameter-default"/>
<memberEnd xmi:idref="A_default_templateParameter-templateParameter"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_default_templateParameter-templateParameter" name="templateParameter" type="TemplateParameter" association="A_default_templateParameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_default_templateParameter-templateParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_default_templateParameter-templateParameter-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_parameteredElement_templateParameter" name="A_parameteredElement_templateParameter">
<memberEnd xmi:idref="TemplateParameter-parameteredElement"/>
<memberEnd xmi:idref="ParameterableElement-templateParameter"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signature_templateBinding" name="A_signature_templateBinding">
<memberEnd xmi:idref="TemplateBinding-signature"/>
<memberEnd xmi:idref="A_signature_templateBinding-templateBinding"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signature_templateBinding-templateBinding" name="templateBinding" type="TemplateBinding" association="A_signature_templateBinding">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signature_templateBinding-templateBinding-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signature_templateBinding-templateBinding-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_parameterSubstitution_templateBinding" name="A_parameterSubstitution_templateBinding">
<memberEnd xmi:idref="TemplateBinding-parameterSubstitution"/>
<memberEnd xmi:idref="TemplateParameterSubstitution-templateBinding"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_templateBinding_boundElement" name="A_templateBinding_boundElement">
<memberEnd xmi:idref="TemplateableElement-templateBinding"/>
<memberEnd xmi:idref="TemplateBinding-boundElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedTemplateSignature_template" name="A_ownedTemplateSignature_template">
<memberEnd xmi:idref="TemplateableElement-ownedTemplateSignature"/>
<memberEnd xmi:idref="TemplateSignature-template"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_relatedElement_relationship" name="A_relatedElement_relationship" isDerived="true">
<memberEnd xmi:idref="Relationship-relatedElement"/>
<memberEnd xmi:idref="A_relatedElement_relationship-relationship"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_relatedElement_relationship-relationship" name="relationship" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Relationship" association="A_relatedElement_relationship">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_relatedElement_relationship-relationship-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_relatedElement_relationship-relationship-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_importedPackage_packageImport" name="A_importedPackage_packageImport">
<memberEnd xmi:idref="PackageImport-importedPackage"/>
<memberEnd xmi:idref="A_importedPackage_packageImport-packageImport"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_importedPackage_packageImport-packageImport" name="packageImport" type="PackageImport" association="A_importedPackage_packageImport">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_importedPackage_packageImport-packageImport-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_importedPackage_packageImport-packageImport-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_elementImport_importingNamespace" name="A_elementImport_importingNamespace">
<memberEnd xmi:idref="Namespace-elementImport"/>
<memberEnd xmi:idref="ElementImport-importingNamespace"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedMember_namespace" name="A_ownedMember_namespace" isDerived="true">
<memberEnd xmi:idref="Namespace-ownedMember"/>
<memberEnd xmi:idref="NamedElement-namespace"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedRule_context" name="A_ownedRule_context">
<memberEnd xmi:idref="Namespace-ownedRule"/>
<memberEnd xmi:idref="Constraint-context"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_packageImport_importingNamespace" name="A_packageImport_importingNamespace">
<memberEnd xmi:idref="Namespace-packageImport"/>
<memberEnd xmi:idref="PackageImport-importingNamespace"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_member_memberNamespace" name="A_member_memberNamespace" isDerived="true">
<memberEnd xmi:idref="Namespace-member"/>
<memberEnd xmi:idref="A_member_memberNamespace-memberNamespace"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_member_memberNamespace-memberNamespace" name="memberNamespace" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Namespace" association="A_member_memberNamespace">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_member_memberNamespace-memberNamespace-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_member_memberNamespace-memberNamespace-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_importedMember_namespace" name="A_importedMember_namespace" isDerived="true">
<memberEnd xmi:idref="Namespace-importedMember"/>
<memberEnd xmi:idref="A_importedMember_namespace-namespace"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_importedMember_namespace-namespace" name="namespace" type="Namespace" association="A_importedMember_namespace">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_importedMember_namespace-namespace-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_importedMember_namespace-namespace-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_nameExpression_namedElement" name="A_nameExpression_namedElement">
<memberEnd xmi:idref="NamedElement-nameExpression"/>
<memberEnd xmi:idref="A_nameExpression_namedElement-namedElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_nameExpression_namedElement-namedElement" name="namedElement" type="NamedElement" association="A_nameExpression_namedElement">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_nameExpression_namedElement-namedElement-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_clientDependency_client" name="A_clientDependency_client">
<memberEnd xmi:idref="NamedElement-clientDependency"/>
<memberEnd xmi:idref="Dependency-client"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_lowerValue_owningLower" name="A_lowerValue_owningLower">
<memberEnd xmi:idref="MultiplicityElement-lowerValue"/>
<memberEnd xmi:idref="A_lowerValue_owningLower-owningLower"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_lowerValue_owningLower-owningLower" name="owningLower" type="MultiplicityElement" association="A_lowerValue_owningLower">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_lowerValue_owningLower-owningLower-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_upperValue_owningUpper" name="A_upperValue_owningUpper">
<memberEnd xmi:idref="MultiplicityElement-upperValue"/>
<memberEnd xmi:idref="A_upperValue_owningUpper-owningUpper"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_upperValue_owningUpper-owningUpper" name="owningUpper" type="MultiplicityElement" association="A_upperValue_owningUpper">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_upperValue_owningUpper-owningUpper-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_importedElement_import" name="A_importedElement_import">
<memberEnd xmi:idref="ElementImport-importedElement"/>
<memberEnd xmi:idref="A_importedElement_import-import"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_importedElement_import-import" name="import" type="ElementImport" association="A_importedElement_import">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_importedElement_import-import-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_importedElement_import-import-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedElement_owner" name="A_ownedElement_owner" isDerived="true">
<memberEnd xmi:idref="Element-ownedElement"/>
<memberEnd xmi:idref="Element-owner"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedComment_owningElement" name="A_ownedComment_owningElement">
<memberEnd xmi:idref="Element-ownedComment"/>
<memberEnd xmi:idref="A_ownedComment_owningElement-owningElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedComment_owningElement-owningElement" name="owningElement" type="Element" association="A_ownedComment_owningElement">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedComment_owningElement-owningElement-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_source_directedRelationship" name="A_source_directedRelationship" isDerived="true">
<memberEnd xmi:idref="DirectedRelationship-source"/>
<memberEnd xmi:idref="A_source_directedRelationship-directedRelationship"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_source_directedRelationship-directedRelationship" name="directedRelationship" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="DirectedRelationship" association="A_source_directedRelationship">
<subsettedProperty xmi:idref="A_relatedElement_relationship-relationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_source_directedRelationship-directedRelationship-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_source_directedRelationship-directedRelationship-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_target_directedRelationship" name="A_target_directedRelationship" isDerived="true">
<memberEnd xmi:idref="DirectedRelationship-target"/>
<memberEnd xmi:idref="A_target_directedRelationship-directedRelationship"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_target_directedRelationship-directedRelationship" name="directedRelationship" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="DirectedRelationship" association="A_target_directedRelationship">
<subsettedProperty xmi:idref="A_relatedElement_relationship-relationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_target_directedRelationship-directedRelationship-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_target_directedRelationship-directedRelationship-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_supplier_supplierDependency" name="A_supplier_supplierDependency">
<memberEnd xmi:idref="Dependency-supplier"/>
<memberEnd xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_supplier_supplierDependency-supplierDependency" name="supplierDependency" type="Dependency" association="A_supplier_supplierDependency">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<ownedComment xmi:type="uml:Comment" xmi:id="A_supplier_supplierDependency-supplierDependency-_ownedComment.0" body="Indicates the dependencies that reference the supplier.">
<annotatedElement xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_supplier_supplierDependency-supplierDependency-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_supplier_supplierDependency-supplierDependency-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_constrainedElement_constraint" name="A_constrainedElement_constraint">
<memberEnd xmi:idref="Constraint-constrainedElement"/>
<memberEnd xmi:idref="A_constrainedElement_constraint-constraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_constrainedElement_constraint-constraint" name="constraint" type="Constraint" association="A_constrainedElement_constraint">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_constrainedElement_constraint-constraint-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_constrainedElement_constraint-constraint-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_specification_owningConstraint" name="A_specification_owningConstraint">
<memberEnd xmi:idref="Constraint-specification"/>
<memberEnd xmi:idref="A_specification_owningConstraint-owningConstraint"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_specification_owningConstraint-owningConstraint" name="owningConstraint" type="Constraint" association="A_specification_owningConstraint">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_specification_owningConstraint-owningConstraint-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_annotatedElement_comment" name="A_annotatedElement_comment">
<memberEnd xmi:idref="Comment-annotatedElement"/>
<memberEnd xmi:idref="A_annotatedElement_comment-comment"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_annotatedElement_comment-comment" name="comment" type="Comment" association="A_annotatedElement_comment">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_annotatedElement_comment-comment-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_annotatedElement_comment-comment-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_mapping_abstraction" name="A_mapping_abstraction">
<memberEnd xmi:idref="Abstraction-mapping"/>
<memberEnd xmi:idref="A_mapping_abstraction-abstraction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_mapping_abstraction-abstraction" name="abstraction" type="Abstraction" association="A_mapping_abstraction">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_mapping_abstraction-abstraction-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="CommonBehavior" name="CommonBehavior">
<packageImport xmi:type="uml:PackageImport" xmi:id="CommonBehavior-_packageImport.0" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="CommonBehavior-_packageImport.1" importedPackage="SimpleClassifiers"/>
<packagedElement xmi:type="uml:Class" xmi:id="AnyReceiveEvent" name="AnyReceiveEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="AnyReceiveEvent-_ownedComment.0" body="A trigger for an AnyReceiveEvent is triggered by the receipt of any message that is not explicitly handled by any related trigger.">
<annotatedElement xmi:idref="AnyReceiveEvent"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="AnyReceiveEvent-_generalization.0" general="MessageEvent"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Behavior" name="Behavior" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-_ownedComment.0" body="Behavior is a specification of how its context BehavioredClassifier changes state over time. This specification may be either a definition of possible behavior execution or emergent behavior, or a selective illustration of an interesting subset of possible executions. The latter form is typically used for capturing examples, such as a trace of a particular execution.">
<annotatedElement xmi:idref="Behavior"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-most_one_behavior" name="most_one_behavior">
<constrainedElement xmi:idref="Behavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-most_one_behavior-_ownedComment.0" body="There may be at most one Behavior for a given pairing of BehavioredClassifier (as owner of the Behavior) and BehavioralFeature (as specification of the Behavior).">
<annotatedElement xmi:idref="Behavior-most_one_behavior"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-most_one_behavior-_specification">
<body>specification <> null implies _'context'.ownedBehavior->select(specification=self.specification)->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-parameters_match" name="parameters_match">
<constrainedElement xmi:idref="Behavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-parameters_match-_ownedComment.0" body="If a Behavior has a specification BehavioralFeature, then it must have the same number of ownedParameters as its specification. The Behavior Parameters must also "match" the BehavioralParameter Parameters, but the exact requirements for this matching are not formalized.">
<annotatedElement xmi:idref="Behavior-parameters_match"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-parameters_match-_specification">
<body>specification <> null implies ownedParameter->size() = specification.ownedParameter->size()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-feature_of_context_classifier" name="feature_of_context_classifier">
<constrainedElement xmi:idref="Behavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-feature_of_context_classifier-_ownedComment.0" body="The specification BehavioralFeature must be a feature (possibly inherited) of the context BehavioredClassifier of the Behavior.">
<annotatedElement xmi:idref="Behavior-feature_of_context_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-feature_of_context_classifier-_specification">
<body>_'context'.feature->includes(specification)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Behavior-_generalization.0" general="Class"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-context" name="context" isReadOnly="true" isDerived="true" type="BehavioredClassifier" association="A_context_behavior">
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-context-_ownedComment.0" body="The BehavioredClassifier that is the context for the execution of the Behavior. A Behavior that is directly owned as a nestedClassifier does not have a context. Otherwise, to determine the context of a Behavior, find the first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any. If there is such a BehavioredClassifier, then it is the context, unless it is itself a Behavior with a non-empty context, in which case that is also the context for the original Behavior. For example, following this algorithm, the context of an entry Behavior in a StateMachine is the BehavioredClassifier that owns the StateMachine. The features of the context BehavioredClassifier as well as the Elements visible to the context Classifier are visible to the Behavior.">
<annotatedElement xmi:idref="Behavior-context"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-context-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-isReentrant" name="isReentrant">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-isReentrant-_ownedComment.0" body="Tells whether the Behavior can be invoked while it is still executing from a previous invocation.">
<annotatedElement xmi:idref="Behavior-isReentrant"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Behavior-isReentrant-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-ownedParameter" name="ownedParameter" isOrdered="true" aggregation="composite" type="Parameter" association="A_ownedParameter_behavior">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-ownedParameter-_ownedComment.0" body="References a list of Parameters to the Behavior which describes the order and type of arguments that can be given when the Behavior is invoked and of the values which will be returned when the Behavior completes its execution.">
<annotatedElement xmi:idref="Behavior-ownedParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-ownedParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-ownedParameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-ownedParameterSet" name="ownedParameterSet" aggregation="composite" type="ParameterSet" association="A_ownedParameterSet_behavior">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-ownedParameterSet-_ownedComment.0" body="The ParameterSets owned by this Behavior.">
<annotatedElement xmi:idref="Behavior-ownedParameterSet"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-ownedParameterSet-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-ownedParameterSet-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-postcondition" name="postcondition" aggregation="composite" type="Constraint" association="A_postcondition_behavior">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-postcondition-_ownedComment.0" body="An optional set of Constraints specifying what is fulfilled after the execution of the Behavior is completed, if its precondition was fulfilled before its invocation.">
<annotatedElement xmi:idref="Behavior-postcondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-postcondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-postcondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-precondition" name="precondition" aggregation="composite" type="Constraint" association="A_precondition_behavior">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-precondition-_ownedComment.0" body="An optional set of Constraints specifying what must be fulfilled before the Behavior is invoked.">
<annotatedElement xmi:idref="Behavior-precondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-precondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-precondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-specification" name="specification" type="BehavioralFeature" association="A_method_specification">
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-specification-_ownedComment.0" body="Designates a BehavioralFeature that the Behavior implements. The BehavioralFeature must be owned by the BehavioredClassifier that owns the Behavior or be inherited by it. The Parameters of the BehavioralFeature and the implementing Behavior must match. A Behavior does not need to have a specification, in which case it either is the classifierBehavior of a BehavioredClassifier or it can only be invoked by another Behavior of the Classifier.">
<annotatedElement xmi:idref="Behavior-specification"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-specification-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Behavior-redefinedBehavior" name="redefinedBehavior" type="Behavior" association="A_redefinedBehavior_behavior">
<subsettedProperty xmi:idref="Classifier-redefinedClassifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-redefinedBehavior-_ownedComment.0" body="References the Behavior that this Behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the Behavior implements a BehavioralFeature, it replaces the redefined Behavior. If the Behavior is a classifierBehavior, it extends the redefined Behavior.">
<annotatedElement xmi:idref="Behavior-redefinedBehavior"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-redefinedBehavior-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-redefinedBehavior-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Behavior-context.1" name="context" isQuery="true" bodyCondition="Behavior-context.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-context.1-_ownedComment.0" body="A Behavior that is directly owned as a nestedClassifier does not have a context. Otherwise, to determine the context of a Behavior, find the first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any. If there is such a BehavioredClassifier, then it is the context, unless it is itself a Behavior with a non-empty context, in which case that is also the context for the original Behavior. ">
<annotatedElement xmi:idref="Behavior-context.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-context.1-spec" name="spec">
<constrainedElement xmi:idref="Behavior-context.1"/>
<constrainedElement xmi:idref="Behavior-context"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-context.1-spec-_specification">
<body>result = (if nestingClass <> null then null else let b:BehavioredClassifier = self.behavioredClassifier(self.owner) in if b.oclIsKindOf(Behavior) and b.oclAsType(Behavior)._'context' <> null then b.oclAsType(Behavior)._'context' else b endif endif )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Behavior-context.1-result" name="result" direction="return" type="BehavioredClassifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-context.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Behavior-behavioredClassifier" name="behavioredClassifier" isQuery="true">
<precondition xmi:idref="Behavior-behavioredClassifier-spec"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-behavioredClassifier-_ownedComment.0" body="The first BehavioredClassifier reached by following the chain of owner relationships from the Behavior, if any.">
<annotatedElement xmi:idref="Behavior-behavioredClassifier"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-behavioredClassifier-spec" name="spec">
<constrainedElement xmi:idref="Behavior-behavioredClassifier"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-behavioredClassifier-spec-_specification">
<body>if from.oclIsKindOf(BehavioredClassifier) then from.oclAsType(BehavioredClassifier) else if from.owner = null then null else self.behavioredClassifier(from.owner) endif endif </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Behavior-behavioredClassifier-from" name="from" type="Element"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Behavior-behavioredClassifier-result" name="result" direction="return" type="BehavioredClassifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-behavioredClassifier-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Behavior-inputParameters" name="inputParameters" isQuery="true" bodyCondition="Behavior-inputParameters-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-inputParameters-_ownedComment.0" body="The in and inout ownedParameters of the Behavior.">
<annotatedElement xmi:idref="Behavior-inputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-inputParameters-spec" name="spec">
<constrainedElement xmi:idref="Behavior-inputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-inputParameters-spec-_specification">
<body>result = (ownedParameter->select(direction=ParameterDirectionKind::_'in' or direction=ParameterDirectionKind::inout))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Behavior-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Behavior-outputParameters" name="outputParameters" isQuery="true" bodyCondition="Behavior-outputParameters-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Behavior-outputParameters-_ownedComment.0" body="The out, inout and return ownedParameters.">
<annotatedElement xmi:idref="Behavior-outputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Behavior-outputParameters-spec" name="spec">
<constrainedElement xmi:idref="Behavior-outputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Behavior-outputParameters-spec-_specification">
<body>result = (ownedParameter->select(direction=ParameterDirectionKind::out or direction=ParameterDirectionKind::inout or direction=ParameterDirectionKind::return))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Behavior-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Behavior-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Behavior-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CallEvent" name="CallEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="CallEvent-_ownedComment.0" body="A CallEvent models the receipt by an object of a message invoking a call of an Operation.">
<annotatedElement xmi:idref="CallEvent"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="CallEvent-_generalization.0" general="MessageEvent"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallEvent-operation" name="operation" type="Operation" association="A_operation_callEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="CallEvent-operation-_ownedComment.0" body="Designates the Operation whose invocation raised the CalEvent.">
<annotatedElement xmi:idref="CallEvent-operation"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ChangeEvent" name="ChangeEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="ChangeEvent-_ownedComment.0" body="A ChangeEvent models a change in the system configuration that makes a condition true.">
<annotatedElement xmi:idref="ChangeEvent"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ChangeEvent-_generalization.0" general="Event"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ChangeEvent-changeExpression" name="changeExpression" aggregation="composite" type="ValueSpecification" association="A_changeExpression_changeEvent">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ChangeEvent-changeExpression-_ownedComment.0" body="A Boolean-valued ValueSpecification that will result in a ChangeEvent whenever its value changes from false to true.">
<annotatedElement xmi:idref="ChangeEvent-changeExpression"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Event" name="Event" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Event-_ownedComment.0" body="An Event is the specification of some occurrence that may potentially trigger effects by an object.">
<annotatedElement xmi:idref="Event"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Event-_generalization.0" general="PackageableElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="FunctionBehavior" name="FunctionBehavior">
<ownedComment xmi:type="uml:Comment" xmi:id="FunctionBehavior-_ownedComment.0" body="A FunctionBehavior is an OpaqueBehavior that does not access or modify any objects or other external data.">
<annotatedElement xmi:idref="FunctionBehavior"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="FunctionBehavior-one_output_parameter" name="one_output_parameter">
<constrainedElement xmi:idref="FunctionBehavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FunctionBehavior-one_output_parameter-_ownedComment.0" body="A FunctionBehavior has at least one output Parameter.">
<annotatedElement xmi:idref="FunctionBehavior-one_output_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FunctionBehavior-one_output_parameter-_specification">
<body>self.ownedParameter-> select(p | p.direction = ParameterDirectionKind::out or p.direction= ParameterDirectionKind::inout or p.direction= ParameterDirectionKind::return)->size() >= 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="FunctionBehavior-types_of_parameters" name="types_of_parameters">
<constrainedElement xmi:idref="FunctionBehavior"/>
<ownedComment xmi:type="uml:Comment" xmi:id="FunctionBehavior-types_of_parameters-_ownedComment.0" body="The types of the ownedParameters are all DataTypes, which may not nest anything but other DataTypes.">
<annotatedElement xmi:idref="FunctionBehavior-types_of_parameters"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FunctionBehavior-types_of_parameters-_specification">
<body>ownedParameter->forAll(p | p.type <> null and p.type.oclIsTypeOf(DataType) and hasAllDataTypeAttributes(p.type.oclAsType(DataType)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="FunctionBehavior-_generalization.0" general="OpaqueBehavior"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="FunctionBehavior-hasAllDataTypeAttributes" name="hasAllDataTypeAttributes" isQuery="true" bodyCondition="FunctionBehavior-hasAllDataTypeAttributes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="FunctionBehavior-hasAllDataTypeAttributes-_ownedComment.0" body="The hasAllDataTypeAttributes query tests whether the types of the attributes of the given DataType are all DataTypes, and similarly for all those DataTypes.">
<annotatedElement xmi:idref="FunctionBehavior-hasAllDataTypeAttributes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="FunctionBehavior-hasAllDataTypeAttributes-spec" name="spec">
<constrainedElement xmi:idref="FunctionBehavior-hasAllDataTypeAttributes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="FunctionBehavior-hasAllDataTypeAttributes-spec-_specification">
<body>result = (d.ownedAttribute->forAll(a | a.type.oclIsKindOf(DataType) and hasAllDataTypeAttributes(a.type.oclAsType(DataType))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="FunctionBehavior-hasAllDataTypeAttributes-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="FunctionBehavior-hasAllDataTypeAttributes-d" name="d" type="DataType"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="MessageEvent" name="MessageEvent" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="MessageEvent-_ownedComment.0" body="A MessageEvent specifies the receipt by an object of either an Operation call or a Signal instance.">
<annotatedElement xmi:idref="MessageEvent"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="MessageEvent-_generalization.0" general="Event"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OpaqueBehavior" name="OpaqueBehavior">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueBehavior-_ownedComment.0" body="An OpaqueBehavior is a Behavior whose specification is given in a textual language other than UML.">
<annotatedElement xmi:idref="OpaqueBehavior"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="OpaqueBehavior-_generalization.0" general="Behavior"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueBehavior-body" name="body" isOrdered="true" isUnique="false">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueBehavior-body-_ownedComment.0" body="Specifies the behavior in one or more languages.">
<annotatedElement xmi:idref="OpaqueBehavior-body"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueBehavior-body-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueBehavior-body-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueBehavior-language" name="language" isOrdered="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueBehavior-language-_ownedComment.0" body="Languages the body strings use in the same order as the body strings.">
<annotatedElement xmi:idref="OpaqueBehavior-language"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueBehavior-language-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueBehavior-language-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="SignalEvent" name="SignalEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="SignalEvent-_ownedComment.0" body="A SignalEvent represents the receipt of an asynchronous Signal instance.">
<annotatedElement xmi:idref="SignalEvent"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="SignalEvent-_generalization.0" general="MessageEvent"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="SignalEvent-signal" name="signal" type="Signal" association="A_signal_signalEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="SignalEvent-signal-_ownedComment.0" body="The specific Signal that is associated with this SignalEvent.">
<annotatedElement xmi:idref="SignalEvent-signal"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TimeEvent" name="TimeEvent">
<ownedComment xmi:type="uml:Comment" xmi:id="TimeEvent-_ownedComment.0" body="A TimeEvent is an Event that occurs at a specific point in time.">
<annotatedElement xmi:idref="TimeEvent"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TimeEvent-when_non_negative" name="when_non_negative">
<constrainedElement xmi:idref="TimeEvent"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeEvent-when_non_negative-_ownedComment.0" body="The ValueSpecification when must return a non-negative Integer.">
<annotatedElement xmi:idref="TimeEvent-when_non_negative"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TimeEvent-when_non_negative-_specification">
<body>when.integerValue() >= 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TimeEvent-_generalization.0" general="Event"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeEvent-isRelative" name="isRelative">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeEvent-isRelative-_ownedComment.0" body="Specifies whether the TimeEvent is specified as an absolute or relative time.">
<annotatedElement xmi:idref="TimeEvent-isRelative"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="TimeEvent-isRelative-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TimeEvent-when" name="when" aggregation="composite" type="TimeExpression" association="A_when_timeEvent">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TimeEvent-when-_ownedComment.0" body="Specifies the time of the TimeEvent.">
<annotatedElement xmi:idref="TimeEvent-when"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Trigger" name="Trigger">
<ownedComment xmi:type="uml:Comment" xmi:id="Trigger-_ownedComment.0" body="A Trigger specifies a specific point at which an Event occurrence may trigger an effect in a Behavior. A Trigger may be qualified by the Port on which the Event occurred.">
<annotatedElement xmi:idref="Trigger"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Trigger-trigger_with_ports" name="trigger_with_ports">
<constrainedElement xmi:idref="Trigger"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Trigger-trigger_with_ports-_ownedComment.0" body="If a Trigger specifies one or more ports, the event of the Trigger must be a MessageEvent.">
<annotatedElement xmi:idref="Trigger-trigger_with_ports"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Trigger-trigger_with_ports-_specification">
<body>port->notEmpty() implies event.oclIsKindOf(MessageEvent)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Trigger-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Trigger-event" name="event" type="Event" association="A_event_trigger">
<ownedComment xmi:type="uml:Comment" xmi:id="Trigger-event-_ownedComment.0" body="The Event that detected by the Trigger.">
<annotatedElement xmi:idref="Trigger-event"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Trigger-port" name="port" type="Port" association="A_port_trigger">
<ownedComment xmi:type="uml:Comment" xmi:id="Trigger-port-_ownedComment.0" body="A optional Port of through which the given effect is detected.">
<annotatedElement xmi:idref="Trigger-port"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Trigger-port-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Trigger-port-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_event_trigger" name="A_event_trigger">
<memberEnd xmi:idref="Trigger-event"/>
<memberEnd xmi:idref="A_event_trigger-trigger"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_event_trigger-trigger" name="trigger" type="Trigger" association="A_event_trigger">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_event_trigger-trigger-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_event_trigger-trigger-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_port_trigger" name="A_port_trigger">
<memberEnd xmi:idref="Trigger-port"/>
<memberEnd xmi:idref="A_port_trigger-trigger"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_port_trigger-trigger" name="trigger" type="Trigger" association="A_port_trigger">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_port_trigger-trigger-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_port_trigger-trigger-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_when_timeEvent" name="A_when_timeEvent">
<memberEnd xmi:idref="TimeEvent-when"/>
<memberEnd xmi:idref="A_when_timeEvent-timeEvent"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_when_timeEvent-timeEvent" name="timeEvent" type="TimeEvent" association="A_when_timeEvent">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_when_timeEvent-timeEvent-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signal_signalEvent" name="A_signal_signalEvent">
<memberEnd xmi:idref="SignalEvent-signal"/>
<memberEnd xmi:idref="A_signal_signalEvent-signalEvent"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signal_signalEvent-signalEvent" name="signalEvent" type="SignalEvent" association="A_signal_signalEvent">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signal_signalEvent-signalEvent-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signal_signalEvent-signalEvent-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_changeExpression_changeEvent" name="A_changeExpression_changeEvent">
<memberEnd xmi:idref="ChangeEvent-changeExpression"/>
<memberEnd xmi:idref="A_changeExpression_changeEvent-changeEvent"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_changeExpression_changeEvent-changeEvent" name="changeEvent" type="ChangeEvent" association="A_changeExpression_changeEvent">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_changeExpression_changeEvent-changeEvent-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_operation_callEvent" name="A_operation_callEvent">
<memberEnd xmi:idref="CallEvent-operation"/>
<memberEnd xmi:idref="A_operation_callEvent-callEvent"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_operation_callEvent-callEvent" name="callEvent" type="CallEvent" association="A_operation_callEvent">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_operation_callEvent-callEvent-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_operation_callEvent-callEvent-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameterSet_behavior" name="A_ownedParameterSet_behavior">
<memberEnd xmi:idref="Behavior-ownedParameterSet"/>
<memberEnd xmi:idref="A_ownedParameterSet_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedParameterSet_behavior-behavior" name="behavior" type="Behavior" association="A_ownedParameterSet_behavior">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedParameterSet_behavior-behavior-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_context_behavior" name="A_context_behavior" isDerived="true">
<memberEnd xmi:idref="Behavior-context"/>
<memberEnd xmi:idref="A_context_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_context_behavior-behavior" name="behavior" type="Behavior" association="A_context_behavior">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_context_behavior-behavior-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_context_behavior-behavior-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_precondition_behavior" name="A_precondition_behavior">
<memberEnd xmi:idref="Behavior-precondition"/>
<memberEnd xmi:idref="A_precondition_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_precondition_behavior-behavior" name="behavior" type="Behavior" association="A_precondition_behavior">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_precondition_behavior-behavior-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_postcondition_behavior" name="A_postcondition_behavior">
<memberEnd xmi:idref="Behavior-postcondition"/>
<memberEnd xmi:idref="A_postcondition_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_postcondition_behavior-behavior" name="behavior" type="Behavior" association="A_postcondition_behavior">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_postcondition_behavior-behavior-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedBehavior_behavior" name="A_redefinedBehavior_behavior">
<memberEnd xmi:idref="Behavior-redefinedBehavior"/>
<memberEnd xmi:idref="A_redefinedBehavior_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedBehavior_behavior-behavior" name="behavior" type="Behavior" association="A_redefinedBehavior_behavior">
<subsettedProperty xmi:idref="A_redefinedClassifier_classifier-classifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedBehavior_behavior-behavior-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedBehavior_behavior-behavior-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameter_behavior" name="A_ownedParameter_behavior">
<memberEnd xmi:idref="Behavior-ownedParameter"/>
<memberEnd xmi:idref="A_ownedParameter_behavior-behavior"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedParameter_behavior-behavior" name="behavior" type="Behavior" association="A_ownedParameter_behavior">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedParameter_behavior-behavior-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Classification" name="Classification">
<packageImport xmi:type="uml:PackageImport" xmi:id="Classification-_packageImport.0" importedPackage="CommonStructure"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Classification-_packageImport.1" importedPackage="Deployments"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Classification-_packageImport.2" importedPackage="CommonBehavior"/>
<packagedElement xmi:type="uml:Class" xmi:id="Substitution" name="Substitution">
<ownedComment xmi:type="uml:Comment" xmi:id="Substitution-_ownedComment.0" body="A substitution is a relationship between two classifiers signifying that the substituting classifier complies with the contract specified by the contract classifier. This implies that instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected.">
<annotatedElement xmi:idref="Substitution"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Substitution-_generalization.0" general="Realization"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Substitution-contract" name="contract" type="Classifier" association="A_contract_substitution">
<subsettedProperty xmi:idref="Dependency-supplier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Substitution-contract-_ownedComment.0" body="The contract with which the substituting classifier complies.">
<annotatedElement xmi:idref="Substitution-contract"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Substitution-substitutingClassifier" name="substitutingClassifier" type="Classifier" association="A_substitution_substitutingClassifier">
<subsettedProperty xmi:idref="Dependency-client"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Substitution-substitutingClassifier-_ownedComment.0" body="Instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected.">
<annotatedElement xmi:idref="Substitution-substitutingClassifier"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="BehavioralFeature" name="BehavioralFeature" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-_ownedComment.0" body="A BehavioralFeature is a feature of a Classifier that specifies an aspect of the behavior of its instances. A BehavioralFeature is implemented (realized) by a Behavior. A BehavioralFeature specifies that a Classifier will respond to a designated request by invoking its implementing method.">
<annotatedElement xmi:idref="BehavioralFeature"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BehavioralFeature-abstract_no_method" name="abstract_no_method">
<constrainedElement xmi:idref="BehavioralFeature"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-abstract_no_method-_ownedComment.0" body="When isAbstract is true there are no methods.">
<annotatedElement xmi:idref="BehavioralFeature-abstract_no_method"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BehavioralFeature-abstract_no_method-_specification">
<body>isAbstract implies method->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="BehavioralFeature-_generalization.0" general="Feature"/>
<generalization xmi:type="uml:Generalization" xmi:id="BehavioralFeature-_generalization.1" general="Namespace"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-concurrency" name="concurrency" type="CallConcurrencyKind">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-concurrency-_ownedComment.0" body="Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a Class with isActive being false). Active instances control access to their own BehavioralFeatures.">
<annotatedElement xmi:idref="BehavioralFeature-concurrency"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="BehavioralFeature-concurrency-_defaultValue" type="CallConcurrencyKind" instance="CallConcurrencyKind-sequential"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-isAbstract" name="isAbstract">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-isAbstract-_ownedComment.0" body="If true, then the BehavioralFeature does not have an implementation, and one must be supplied by a more specific Classifier. If false, the BehavioralFeature must have an implementation in the Classifier or one must be inherited.">
<annotatedElement xmi:idref="BehavioralFeature-isAbstract"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="BehavioralFeature-isAbstract-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-method" name="method" type="Behavior" association="A_method_specification">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-method-_ownedComment.0" body="A Behavior that implements the BehavioralFeature. There may be at most one Behavior for a particular pairing of a Classifier (as owner of the Behavior) and a BehavioralFeature (as specification of the Behavior).">
<annotatedElement xmi:idref="BehavioralFeature-method"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-method-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-method-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-ownedParameter" name="ownedParameter" isOrdered="true" aggregation="composite" type="Parameter" association="A_ownedParameter_ownerFormalParam">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-ownedParameter-_ownedComment.0" body="The ordered set of formal Parameters of this BehavioralFeature.">
<annotatedElement xmi:idref="BehavioralFeature-ownedParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-ownedParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-ownedParameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-ownedParameterSet" name="ownedParameterSet" aggregation="composite" type="ParameterSet" association="A_ownedParameterSet_behavioralFeature">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-ownedParameterSet-_ownedComment.0" body="The ParameterSets owned by this BehavioralFeature.">
<annotatedElement xmi:idref="BehavioralFeature-ownedParameterSet"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-ownedParameterSet-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-ownedParameterSet-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="BehavioralFeature-raisedException" name="raisedException" type="Type" association="A_raisedException_behavioralFeature">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-raisedException-_ownedComment.0" body="The Types representing exceptions that may be raised during an invocation of this BehavioralFeature.">
<annotatedElement xmi:idref="BehavioralFeature-raisedException"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-raisedException-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-raisedException-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="BehavioralFeature-isDistinguishableFrom" name="isDistinguishableFrom" isQuery="true" bodyCondition="BehavioralFeature-isDistinguishableFrom-spec">
<redefinedOperation xmi:idref="NamedElement-isDistinguishableFrom"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-isDistinguishableFrom-_ownedComment.0" body="The query isDistinguishableFrom() determines whether two BehavioralFeatures may coexist in the same Namespace. It specifies that they must have different signatures.">
<annotatedElement xmi:idref="BehavioralFeature-isDistinguishableFrom"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BehavioralFeature-isDistinguishableFrom-spec" name="spec">
<constrainedElement xmi:idref="BehavioralFeature-isDistinguishableFrom"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BehavioralFeature-isDistinguishableFrom-spec-_specification">
<body>result = ((n.oclIsKindOf(BehavioralFeature) and ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()) implies Set{self}->including(n.oclAsType(BehavioralFeature))->isUnique(ownedParameter->collect(p| Tuple { name=p.name, type=p.type,effect=p.effect,direction=p.direction,isException=p.isException, isStream=p.isStream,isOrdered=p.isOrdered,isUnique=p.isUnique,lower=p.lower, upper=p.upper })) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="BehavioralFeature-isDistinguishableFrom-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="BehavioralFeature-isDistinguishableFrom-n" name="n" type="NamedElement"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="BehavioralFeature-isDistinguishableFrom-ns" name="ns" type="Namespace"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="BehavioralFeature-inputParameters" name="inputParameters" isQuery="true" bodyCondition="BehavioralFeature-inputParameters-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-inputParameters-_ownedComment.0" body="The ownedParameters with direction in and inout.">
<annotatedElement xmi:idref="BehavioralFeature-inputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BehavioralFeature-inputParameters-spec" name="spec">
<constrainedElement xmi:idref="BehavioralFeature-inputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BehavioralFeature-inputParameters-spec-_specification">
<body>result = (ownedParameter->select(direction=ParameterDirectionKind::_'in' or direction=ParameterDirectionKind::inout))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="BehavioralFeature-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="BehavioralFeature-outputParameters" name="outputParameters" isQuery="true" bodyCondition="BehavioralFeature-outputParameters-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="BehavioralFeature-outputParameters-_ownedComment.0" body="The ownedParameters with direction out, inout, or return.">
<annotatedElement xmi:idref="BehavioralFeature-outputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BehavioralFeature-outputParameters-spec" name="spec">
<constrainedElement xmi:idref="BehavioralFeature-outputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BehavioralFeature-outputParameters-spec-_specification">
<body>result = (ownedParameter->select(direction=ParameterDirectionKind::out or direction=ParameterDirectionKind::inout or direction=ParameterDirectionKind::return))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="BehavioralFeature-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="BehavioralFeature-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="BehavioralFeature-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Classifier" name="Classifier" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-_ownedComment.0" body="A Classifier represents a classification of instances according to their Features.">
<annotatedElement xmi:idref="Classifier"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-specialize_type" name="specialize_type">
<constrainedElement xmi:idref="Classifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-specialize_type-_ownedComment.0" body="A Classifier may only specialize Classifiers of a valid type.">
<annotatedElement xmi:idref="Classifier-specialize_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-specialize_type-_specification">
<body>parents()->forAll(c | self.maySpecializeType(c))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-maps_to_generalization_set" name="maps_to_generalization_set">
<constrainedElement xmi:idref="Classifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-maps_to_generalization_set-_ownedComment.0" body="The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet. In other words, a power type may not be an instance of itself nor may its instances also be its subclasses.">
<annotatedElement xmi:idref="Classifier-maps_to_generalization_set"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-maps_to_generalization_set-_specification">
<body>powertypeExtent->forAll( gs | gs.generalization->forAll( gen | not (gen.general = self) and not gen.general.allParents()->includes(self) and not (gen.specific = self) and not self.allParents()->includes(gen.specific) ))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-non_final_parents" name="non_final_parents">
<constrainedElement xmi:idref="Classifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-non_final_parents-_ownedComment.0" body="The parents of a Classifier must be non-final.">
<annotatedElement xmi:idref="Classifier-non_final_parents"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-non_final_parents-_specification">
<body>parents()->forAll(not isFinalSpecialization)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-no_cycles_in_generalization" name="no_cycles_in_generalization">
<constrainedElement xmi:idref="Classifier"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-no_cycles_in_generalization-_ownedComment.0" body="Generalization hierarchies must be directed and acyclical. A Classifier can not be both a transitively general and transitively specific Classifier of the same Classifier.">
<annotatedElement xmi:idref="Classifier-no_cycles_in_generalization"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-no_cycles_in_generalization-_specification">
<body>not allParents()->includes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Classifier-_generalization.3" general="Namespace"/>
<generalization xmi:type="uml:Generalization" xmi:id="Classifier-_generalization.0" general="Type"/>
<generalization xmi:type="uml:Generalization" xmi:id="Classifier-_generalization.2" general="TemplateableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Classifier-_generalization.1" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-attribute" name="attribute" isOrdered="true" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Property" association="A_attribute_classifier">
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<subsettedProperty xmi:idref="Classifier-feature"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-attribute-_ownedComment.0" body="All of the Properties that are direct (i.e., not inherited or imported) attributes of the Classifier.">
<annotatedElement xmi:idref="Classifier-attribute"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-attribute-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-attribute-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-collaborationUse" name="collaborationUse" aggregation="composite" type="CollaborationUse" association="A_collaborationUse_classifier">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-collaborationUse-_ownedComment.0" body="The CollaborationUses owned by the Classifier.">
<annotatedElement xmi:idref="Classifier-collaborationUse"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-collaborationUse-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-collaborationUse-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-feature" name="feature" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Feature" association="A_feature_featuringClassifier">
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-feature-_ownedComment.0" body="Specifies each Feature directly defined in the classifier. Note that there may be members of the Classifier that are of the type Feature but are not included, e.g., inherited features.">
<annotatedElement xmi:idref="Classifier-feature"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-feature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-feature-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-general" name="general" isDerived="true" type="Classifier" association="A_general_classifier">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-general-_ownedComment.0" body="The generalizing Classifiers for this Classifier.">
<annotatedElement xmi:idref="Classifier-general"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-general-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-general-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-generalization" name="generalization" aggregation="composite" type="Generalization" association="A_generalization_specific">
<subsettedProperty xmi:idref="A_source_directedRelationship-directedRelationship"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-generalization-_ownedComment.0" body="The Generalization relationships for this Classifier. These Generalizations navigate to more general Classifiers in the generalization hierarchy.">
<annotatedElement xmi:idref="Classifier-generalization"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-generalization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-generalization-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-inheritedMember" name="inheritedMember" isReadOnly="true" isDerived="true" type="NamedElement" association="A_inheritedMember_inheritingClassifier">
<subsettedProperty xmi:idref="Namespace-member"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-inheritedMember-_ownedComment.0" body="All elements inherited by this Classifier from its general Classifiers.">
<annotatedElement xmi:idref="Classifier-inheritedMember"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-inheritedMember-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-inheritedMember-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-isAbstract" name="isAbstract">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-isAbstract-_ownedComment.0" body="If true, the Classifier can only be instantiated by instantiating one of its specializations. An abstract Classifier is intended to be used by other Classifiers e.g., as the target of Associations or Generalizations.">
<annotatedElement xmi:idref="Classifier-isAbstract"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Classifier-isAbstract-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-isFinalSpecialization" name="isFinalSpecialization">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-isFinalSpecialization-_ownedComment.0" body="If true, the Classifier cannot be specialized.">
<annotatedElement xmi:idref="Classifier-isFinalSpecialization"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Classifier-isFinalSpecialization-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-ownedTemplateSignature" name="ownedTemplateSignature" aggregation="composite" type="RedefinableTemplateSignature" association="A_ownedTemplateSignature_classifier">
<redefinedProperty xmi:idref="TemplateableElement-ownedTemplateSignature"/>
<subsettedProperty xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-ownedTemplateSignature-_ownedComment.0" body="The optional RedefinableTemplateSignature specifying the formal template parameters.">
<annotatedElement xmi:idref="Classifier-ownedTemplateSignature"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-ownedTemplateSignature-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-ownedUseCase" name="ownedUseCase" aggregation="composite" type="UseCase" association="A_ownedUseCase_classifier">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-ownedUseCase-_ownedComment.0" body="The UseCases owned by this classifier.">
<annotatedElement xmi:idref="Classifier-ownedUseCase"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-ownedUseCase-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-ownedUseCase-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-powertypeExtent" name="powertypeExtent" type="GeneralizationSet" association="A_powertypeExtent_powertype">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-powertypeExtent-_ownedComment.0" body="The GeneralizationSet of which this Classifier is a power type.">
<annotatedElement xmi:idref="Classifier-powertypeExtent"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-powertypeExtent-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-powertypeExtent-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-redefinedClassifier" name="redefinedClassifier" type="Classifier" association="A_redefinedClassifier_classifier">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-redefinedClassifier-_ownedComment.0" body="The Classifiers redefined by this Classifier.">
<annotatedElement xmi:idref="Classifier-redefinedClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-redefinedClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-redefinedClassifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-representation" name="representation" type="CollaborationUse" association="A_representation_classifier">
<subsettedProperty xmi:idref="Classifier-collaborationUse"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-representation-_ownedComment.0" body="A CollaborationUse which indicates the Collaboration that represents this Classifier.">
<annotatedElement xmi:idref="Classifier-representation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-representation-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-substitution" name="substitution" aggregation="composite" type="Substitution" association="A_substitution_substitutingClassifier">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<subsettedProperty xmi:idref="NamedElement-clientDependency"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-substitution-_ownedComment.0" body="The Substitutions owned by this Classifier.">
<annotatedElement xmi:idref="Classifier-substitution"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-substitution-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-substitution-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-templateParameter" name="templateParameter" type="ClassifierTemplateParameter" association="A_classifier_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="ParameterableElement-templateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-templateParameter-_ownedComment.0" body="TheClassifierTemplateParameter that exposes this element as a formal parameter.">
<annotatedElement xmi:idref="Classifier-templateParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-templateParameter-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Classifier-useCase" name="useCase" type="UseCase" association="A_subject_useCase">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-useCase-_ownedComment.0" body="The set of UseCases for which this Classifier is the subject.">
<annotatedElement xmi:idref="Classifier-useCase"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-useCase-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-useCase-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allFeatures" name="allFeatures" isQuery="true" bodyCondition="Classifier-allFeatures-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allFeatures-_ownedComment.0" body="The query allFeatures() gives all of the Features in the namespace of the Classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature.">
<annotatedElement xmi:idref="Classifier-allFeatures"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allFeatures-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allFeatures"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allFeatures-spec-_specification">
<body>result = (member->select(oclIsKindOf(Feature))->collect(oclAsType(Feature))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allFeatures-result" name="result" direction="return" type="Feature">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allFeatures-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allFeatures-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allParents" name="allParents" isQuery="true" bodyCondition="Classifier-allParents-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allParents-_ownedComment.0" body="The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.">
<annotatedElement xmi:idref="Classifier-allParents"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allParents-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allParents"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allParents-spec-_specification">
<body>result = (parents()->union(parents()->collect(allParents())->asSet()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allParents-result" name="result" direction="return" type="Classifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allParents-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allParents-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-conformsTo" name="conformsTo" isQuery="true" bodyCondition="Classifier-conformsTo-spec">
<redefinedOperation xmi:idref="Type-conformsTo"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-conformsTo-_ownedComment.0" body="The query conformsTo() gives true for a Classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations.">
<annotatedElement xmi:idref="Classifier-conformsTo"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-conformsTo-spec" name="spec">
<constrainedElement xmi:idref="Classifier-conformsTo"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-conformsTo-spec-_specification">
<body>result = (if other.oclIsKindOf(Classifier) then let otherClassifier : Classifier = other.oclAsType(Classifier) in self = otherClassifier or allParents()->includes(otherClassifier) else false endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-conformsTo-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-conformsTo-other" name="other" type="Type"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-general.1" name="general" isQuery="true" bodyCondition="Classifier-general.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-general.1-_ownedComment.0" body="The general Classifiers are the ones referenced by the Generalization relationships.">
<annotatedElement xmi:idref="Classifier-general.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-general.1-spec" name="spec">
<constrainedElement xmi:idref="Classifier-general.1"/>
<constrainedElement xmi:idref="Classifier-general"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-general.1-spec-_specification">
<body>result = (parents())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-general.1-result" name="result" direction="return" type="Classifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-general.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-general.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-hasVisibilityOf" name="hasVisibilityOf" isQuery="true" bodyCondition="Classifier-hasVisibilityOf-spec">
<precondition xmi:idref="Classifier-hasVisibilityOf-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-hasVisibilityOf-_ownedComment.0" body="The query hasVisibilityOf() determines whether a NamedElement is visible in the classifier. Non-private members are visible. It is only called when the argument is something owned by a parent.">
<annotatedElement xmi:idref="Classifier-hasVisibilityOf"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-hasVisibilityOf-pre" name="pre">
<constrainedElement xmi:idref="Classifier-hasVisibilityOf"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-hasVisibilityOf-pre-_specification">
<body>allParents()->including(self)->collect(member)->includes(n)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-hasVisibilityOf-spec" name="spec">
<constrainedElement xmi:idref="Classifier-hasVisibilityOf"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-hasVisibilityOf-spec-_specification">
<body>result = (n.visibility <> VisibilityKind::private)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-hasVisibilityOf-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-hasVisibilityOf-n" name="n" type="NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-inherit" name="inherit" isQuery="true" bodyCondition="Classifier-inherit-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-inherit-_ownedComment.0" body="The query inherit() defines how to inherit a set of elements passed as its argument. It excludes redefined elements from the result.">
<annotatedElement xmi:idref="Classifier-inherit"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-inherit-spec" name="spec">
<constrainedElement xmi:idref="Classifier-inherit"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-inherit-spec-_specification">
<body>result = (inhs->reject(inh | inh.oclIsKindOf(RedefinableElement) and ownedMember->select(oclIsKindOf(RedefinableElement))-> select(redefinedElement->includes(inh.oclAsType(RedefinableElement))) ->notEmpty()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-inherit-result" name="result" direction="return" type="NamedElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-inherit-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-inherit-result-_upperValue" value="*"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-inherit-inhs" name="inhs" type="NamedElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-inherit-inhs-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-inherit-inhs-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-inheritableMembers" name="inheritableMembers" isQuery="true" bodyCondition="Classifier-inheritableMembers-spec">
<precondition xmi:idref="Classifier-inheritableMembers-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-inheritableMembers-_ownedComment.0" body="The query inheritableMembers() gives all of the members of a Classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.">
<annotatedElement xmi:idref="Classifier-inheritableMembers"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-inheritableMembers-pre" name="pre">
<constrainedElement xmi:idref="Classifier-inheritableMembers"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-inheritableMembers-pre-_specification">
<body>c.allParents()->includes(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-inheritableMembers-spec" name="spec">
<constrainedElement xmi:idref="Classifier-inheritableMembers"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-inheritableMembers-spec-_specification">
<body>result = (member->select(m | c.hasVisibilityOf(m)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-inheritableMembers-result" name="result" direction="return" type="NamedElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-inheritableMembers-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-inheritableMembers-result-_upperValue" value="*"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-inheritableMembers-c" name="c" type="Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-inheritedMember.1" name="inheritedMember" isQuery="true" bodyCondition="Classifier-inheritedMember.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-inheritedMember.1-_ownedComment.0" body="The inheritedMember association is derived by inheriting the inheritable members of the parents.">
<annotatedElement xmi:idref="Classifier-inheritedMember.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-inheritedMember.1-spec" name="spec">
<constrainedElement xmi:idref="Classifier-inheritedMember.1"/>
<constrainedElement xmi:idref="Classifier-inheritedMember"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-inheritedMember.1-spec-_specification">
<body>result = (inherit(parents()->collect(inheritableMembers(self))->asSet()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-inheritedMember.1-result" name="result" direction="return" type="NamedElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-inheritedMember.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-inheritedMember.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-isTemplate" name="isTemplate" isQuery="true" bodyCondition="Classifier-isTemplate-spec">
<redefinedOperation xmi:idref="TemplateableElement-isTemplate"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-isTemplate-_ownedComment.0" body="The query isTemplate() returns whether this Classifier is actually a template.">
<annotatedElement xmi:idref="Classifier-isTemplate"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-isTemplate-spec" name="spec">
<constrainedElement xmi:idref="Classifier-isTemplate"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-isTemplate-spec-_specification">
<body>result = (ownedTemplateSignature <> null or general->exists(g | g.isTemplate()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-isTemplate-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-maySpecializeType" name="maySpecializeType" isQuery="true" bodyCondition="Classifier-maySpecializeType-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-maySpecializeType-_ownedComment.0" body="The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints.">
<annotatedElement xmi:idref="Classifier-maySpecializeType"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-maySpecializeType-spec" name="spec">
<constrainedElement xmi:idref="Classifier-maySpecializeType"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-maySpecializeType-spec-_specification">
<body>result = (self.oclIsKindOf(c.oclType()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-maySpecializeType-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-maySpecializeType-c" name="c" type="Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-parents" name="parents" isQuery="true" bodyCondition="Classifier-parents-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-parents-_ownedComment.0" body="The query parents() gives all of the immediate ancestors of a generalized Classifier.">
<annotatedElement xmi:idref="Classifier-parents"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-parents-spec" name="spec">
<constrainedElement xmi:idref="Classifier-parents"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-parents-spec-_specification">
<body>result = (generalization.general->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-parents-result" name="result" direction="return" type="Classifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-parents-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-parents-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-directlyRealizedInterfaces" name="directlyRealizedInterfaces" isQuery="true" bodyCondition="Classifier-directlyRealizedInterfaces-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-directlyRealizedInterfaces-_ownedComment.0" body="The Interfaces directly realized by this Classifier">
<annotatedElement xmi:idref="Classifier-directlyRealizedInterfaces"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-directlyRealizedInterfaces-spec" name="spec">
<constrainedElement xmi:idref="Classifier-directlyRealizedInterfaces"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-directlyRealizedInterfaces-spec-_specification">
<body>result = ((clientDependency-> select(oclIsKindOf(Realization) and supplier->forAll(oclIsKindOf(Interface))))-> collect(supplier.oclAsType(Interface))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-directlyRealizedInterfaces-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-directlyRealizedInterfaces-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-directlyRealizedInterfaces-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-directlyUsedInterfaces" name="directlyUsedInterfaces" isQuery="true" bodyCondition="Classifier-directlyUsedInterfaces-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-directlyUsedInterfaces-_ownedComment.0" body="The Interfaces directly used by this Classifier">
<annotatedElement xmi:idref="Classifier-directlyUsedInterfaces"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-directlyUsedInterfaces-spec" name="spec">
<constrainedElement xmi:idref="Classifier-directlyUsedInterfaces"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-directlyUsedInterfaces-spec-_specification">
<body>result = ((supplierDependency-> select(oclIsKindOf(Usage) and client->forAll(oclIsKindOf(Interface))))-> collect(client.oclAsType(Interface))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-directlyUsedInterfaces-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-directlyUsedInterfaces-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-directlyUsedInterfaces-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allRealizedInterfaces" name="allRealizedInterfaces" isQuery="true" bodyCondition="Classifier-allRealizedInterfaces-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allRealizedInterfaces-_ownedComment.0" body="The Interfaces realized by this Classifier and all of its generalizations">
<annotatedElement xmi:idref="Classifier-allRealizedInterfaces"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allRealizedInterfaces-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allRealizedInterfaces"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allRealizedInterfaces-spec-_specification">
<body>result = (directlyRealizedInterfaces()->union(self.allParents()->collect(directlyRealizedInterfaces()))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allRealizedInterfaces-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allRealizedInterfaces-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allRealizedInterfaces-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allUsedInterfaces" name="allUsedInterfaces" isQuery="true" bodyCondition="Classifier-allUsedInterfaces-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allUsedInterfaces-_ownedComment.0" body="The Interfaces used by this Classifier and all of its generalizations">
<annotatedElement xmi:idref="Classifier-allUsedInterfaces"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allUsedInterfaces-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allUsedInterfaces"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allUsedInterfaces-spec-_specification">
<body>result = (directlyUsedInterfaces()->union(self.allParents()->collect(directlyUsedInterfaces()))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allUsedInterfaces-result" name="result" direction="return" type="Interface">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allUsedInterfaces-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allUsedInterfaces-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-isSubstitutableFor" name="isSubstitutableFor" isQuery="true" bodyCondition="Classifier-isSubstitutableFor-spec">
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-isSubstitutableFor-spec" name="spec">
<constrainedElement xmi:idref="Classifier-isSubstitutableFor"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-isSubstitutableFor-spec-_specification">
<body>result = (substitution.contract->includes(contract))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-isSubstitutableFor-contract" name="contract" type="Classifier"/>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-isSubstitutableFor-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allAttributes" name="allAttributes" isQuery="true" bodyCondition="Classifier-allAttributes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allAttributes-_ownedComment.0" body="The query allAttributes gives an ordered set of all owned and inherited attributes of the Classifier. All owned attributes appear before any inherited attributes, and the attributes inherited from any more specific parent Classifier appear before those of any more general parent Classifier. However, if the Classifier has multiple immediate parents, then the relative ordering of the sets of attributes from those parents is not defined.">
<annotatedElement xmi:idref="Classifier-allAttributes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allAttributes-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allAttributes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allAttributes-spec-_specification">
<body>result = (attribute->asSequence()->union(parents()->asSequence().allAttributes())->select(p | member->includes(p))->asOrderedSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allAttributes-result" isOrdered="true" name="result" direction="return" type="Property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allAttributes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allAttributes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Classifier-allSlottableFeatures" name="allSlottableFeatures" isQuery="true" bodyCondition="Classifier-allSlottableFeatures-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Classifier-allSlottableFeatures-_ownedComment.0" body="All StructuralFeatures related to the Classifier that may have Slots, including direct attributes, inherited attributes, private attributes in generalizations, and memberEnds of Associations, but excluding redefined StructuralFeatures.">
<annotatedElement xmi:idref="Classifier-allSlottableFeatures"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Classifier-allSlottableFeatures-spec" name="spec">
<constrainedElement xmi:idref="Classifier-allSlottableFeatures"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Classifier-allSlottableFeatures-spec-_specification">
<body>result = (member->select(oclIsKindOf(StructuralFeature))-> collect(oclAsType(StructuralFeature))-> union(self.inherit(self.allParents()->collect(p | p.attribute)->asSet())-> collect(oclAsType(StructuralFeature)))->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Classifier-allSlottableFeatures-result" name="result" direction="return" type="StructuralFeature">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Classifier-allSlottableFeatures-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Classifier-allSlottableFeatures-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ClassifierTemplateParameter" name="ClassifierTemplateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-_ownedComment.0" body="A ClassifierTemplateParameter exposes a Classifier as a formal template parameter.">
<annotatedElement xmi:idref="ClassifierTemplateParameter"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-has_constraining_classifier" name="has_constraining_classifier">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-has_constraining_classifier-_ownedComment.0" body="If allowSubstitutable is true, then there must be a constrainingClassifier.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-has_constraining_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-has_constraining_classifier-_specification">
<body>allowSubstitutable implies constrainingClassifier->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-parametered_element_no_features" name="parametered_element_no_features">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-parametered_element_no_features-_ownedComment.0" body="The parameteredElement has no direct features, and if constrainedElement is empty it has no generalizations.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-parametered_element_no_features"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-parametered_element_no_features-_specification">
<body>parameteredElement.feature->isEmpty() and (constrainingClassifier->isEmpty() implies parameteredElement.allParents()->isEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-matching_abstract" name="matching_abstract">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-matching_abstract-_ownedComment.0" body="If the parameteredElement is not abstract, then the Classifier used as an argument shall not be abstract.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-matching_abstract"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-matching_abstract-_specification">
<body>(not parameteredElement.isAbstract) implies templateParameterSubstitution.actual->forAll(a | not a.oclAsType(Classifier).isAbstract)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-actual_is_classifier" name="actual_is_classifier">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-actual_is_classifier-_ownedComment.0" body="The argument to a ClassifierTemplateParameter is a Classifier.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-actual_is_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-actual_is_classifier-_specification">
<body> templateParameterSubstitution.actual->forAll(a | a.oclIsKindOf(Classifier))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_args" name="constraining_classifiers_constrain_args">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_args-_ownedComment.0" body="If there are any constrainingClassifiers, then every argument must be the same as or a specialization of them, or if allowSubstitutable is true, then it can also be substitutable.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-constraining_classifiers_constrain_args"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_args-_specification">
<body>templateParameterSubstitution.actual->forAll( a | let arg : Classifier = a.oclAsType(Classifier) in constrainingClassifier->forAll( cc | arg = cc or arg.conformsTo(cc) or (allowSubstitutable and arg.isSubstitutableFor(cc)) ) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_parametered_element" name="constraining_classifiers_constrain_parametered_element">
<constrainedElement xmi:idref="ClassifierTemplateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_parametered_element-_ownedComment.0" body="If there are any constrainingClassifiers, then the parameteredElement must be the same as or a specialization of them, or if allowSubstitutable is true, then it can also be substitutable.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-constraining_classifiers_constrain_parametered_element"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClassifierTemplateParameter-constraining_classifiers_constrain_parametered_element-_specification">
<body>constrainingClassifier->forAll( cc | parameteredElement = cc or parameteredElement.conformsTo(cc) or (allowSubstitutable and parameteredElement.isSubstitutableFor(cc)) ) </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ClassifierTemplateParameter-_generalization.0" general="TemplateParameter"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClassifierTemplateParameter-allowSubstitutable" name="allowSubstitutable">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-allowSubstitutable-_ownedComment.0" body="Constrains the required relationship between an actual parameter and the parameteredElement for this formal parameter.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-allowSubstitutable"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ClassifierTemplateParameter-allowSubstitutable-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClassifierTemplateParameter-constrainingClassifier" name="constrainingClassifier" type="Classifier" association="A_constrainingClassifier_classifierTemplateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-constrainingClassifier-_ownedComment.0" body="The classifiers that constrain the argument that can be used for the parameter. If the allowSubstitutable attribute is true, then any Classifier that is compatible with this constraining Classifier can be substituted; otherwise, it must be either this Classifier or one of its specializations. If this property is empty, there are no constraints on the Classifier that can be used as an argument.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-constrainingClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ClassifierTemplateParameter-constrainingClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ClassifierTemplateParameter-constrainingClassifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClassifierTemplateParameter-parameteredElement" name="parameteredElement" type="Classifier" association="A_classifier_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="TemplateParameter-parameteredElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClassifierTemplateParameter-parameteredElement-_ownedComment.0" body="The Classifier exposed by this ClassifierTemplateParameter.">
<annotatedElement xmi:idref="ClassifierTemplateParameter-parameteredElement"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Feature" name="Feature" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Feature-_ownedComment.0" body="A Feature declares a behavioral or structural characteristic of Classifiers.">
<annotatedElement xmi:idref="Feature"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Feature-_generalization.0" general="RedefinableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Feature-featuringClassifier" name="featuringClassifier" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Classifier" association="A_feature_featuringClassifier">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Feature-featuringClassifier-_ownedComment.0" body="The Classifiers that have this Feature as a feature.">
<annotatedElement xmi:idref="Feature-featuringClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Feature-featuringClassifier-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Feature-isStatic" name="isStatic">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Feature-isStatic-_ownedComment.0" body="Specifies whether this Feature characterizes individual instances classified by the Classifier (false) or the Classifier itself (true).">
<annotatedElement xmi:idref="Feature-isStatic"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Feature-isStatic-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Generalization" name="Generalization">
<ownedComment xmi:type="uml:Comment" xmi:id="Generalization-_ownedComment.0" body="A Generalization is a taxonomic relationship between a more general Classifier and a more specific Classifier. Each instance of the specific Classifier is also an instance of the general Classifier. The specific Classifier inherits the features of the more general Classifier. A Generalization is owned by the specific Classifier.">
<annotatedElement xmi:idref="Generalization"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Generalization-_generalization.0" general="DirectedRelationship"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Generalization-general" name="general" type="Classifier" association="A_general_generalization">
<subsettedProperty xmi:idref="DirectedRelationship-target"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Generalization-general-_ownedComment.0" body="The general classifier in the Generalization relationship.">
<annotatedElement xmi:idref="Generalization-general"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Generalization-generalizationSet" name="generalizationSet" type="GeneralizationSet" association="A_generalizationSet_generalization">
<ownedComment xmi:type="uml:Comment" xmi:id="Generalization-generalizationSet-_ownedComment.0" body="Represents a set of instances of Generalization. A Generalization may appear in many GeneralizationSets.">
<annotatedElement xmi:idref="Generalization-generalizationSet"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Generalization-generalizationSet-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Generalization-generalizationSet-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Generalization-isSubstitutable" name="isSubstitutable">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Generalization-isSubstitutable-_ownedComment.0" body="Indicates whether the specific Classifier can be used wherever the general Classifier can be used. If true, the execution traces of the specific Classifier shall be a superset of the execution traces of the general Classifier. If false, there is no such constraint on execution traces. If unset, the modeler has not stated whether there is such a constraint or not.">
<annotatedElement xmi:idref="Generalization-isSubstitutable"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Generalization-isSubstitutable-_lowerValue"/>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Generalization-isSubstitutable-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Generalization-specific" name="specific" type="Classifier" association="A_generalization_specific">
<subsettedProperty xmi:idref="DirectedRelationship-source"/>
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Generalization-specific-_ownedComment.0" body="The specializing Classifier in the Generalization relationship.">
<annotatedElement xmi:idref="Generalization-specific"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="GeneralizationSet" name="GeneralizationSet">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-_ownedComment.0" body="A GeneralizationSet is a PackageableElement whose instances represent sets of Generalization relationships.">
<annotatedElement xmi:idref="GeneralizationSet"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="GeneralizationSet-generalization_same_classifier" name="generalization_same_classifier">
<constrainedElement xmi:idref="GeneralizationSet"/>
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-generalization_same_classifier-_ownedComment.0" body="Every Generalization associated with a particular GeneralizationSet must have the same general Classifier.">
<annotatedElement xmi:idref="GeneralizationSet-generalization_same_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="GeneralizationSet-generalization_same_classifier-_specification">
<body>generalization->collect(general)->asSet()->size() <= 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="GeneralizationSet-maps_to_generalization_set" name="maps_to_generalization_set">
<constrainedElement xmi:idref="GeneralizationSet"/>
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-maps_to_generalization_set-_ownedComment.0" body="The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet. In other words, a power type may not be an instance of itself nor may its instances be its subclasses.">
<annotatedElement xmi:idref="GeneralizationSet-maps_to_generalization_set"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="GeneralizationSet-maps_to_generalization_set-_specification">
<body>powertype <> null implies generalization->forAll( gen | not (gen.general = powertype) and not gen.general.allParents()->includes(powertype) and not (gen.specific = powertype) and not powertype.allParents()->includes(gen.specific) )</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="GeneralizationSet-_generalization.0" general="PackageableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralizationSet-generalization" name="generalization" type="Generalization" association="A_generalizationSet_generalization">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-generalization-_ownedComment.0" body="Designates the instances of Generalization that are members of this GeneralizationSet.">
<annotatedElement xmi:idref="GeneralizationSet-generalization"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="GeneralizationSet-generalization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="GeneralizationSet-generalization-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralizationSet-isCovering" name="isCovering">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-isCovering-_ownedComment.0" body="Indicates (via the associated Generalizations) whether or not the set of specific Classifiers are covering for a particular general classifier. When isCovering is true, every instance of a particular general Classifier is also an instance of at least one of its specific Classifiers for the GeneralizationSet. When isCovering is false, there are one or more instances of the particular general Classifier that are not instances of at least one of its specific Classifiers defined for the GeneralizationSet.">
<annotatedElement xmi:idref="GeneralizationSet-isCovering"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="GeneralizationSet-isCovering-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralizationSet-isDisjoint" name="isDisjoint">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-isDisjoint-_ownedComment.0" body="Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty.">
<annotatedElement xmi:idref="GeneralizationSet-isDisjoint"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="GeneralizationSet-isDisjoint-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="GeneralizationSet-powertype" name="powertype" type="Classifier" association="A_powertypeExtent_powertype">
<ownedComment xmi:type="uml:Comment" xmi:id="GeneralizationSet-powertype-_ownedComment.0" body="Designates the Classifier that is defined as the power type for the associated GeneralizationSet, if there is one.">
<annotatedElement xmi:idref="GeneralizationSet-powertype"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="GeneralizationSet-powertype-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InstanceSpecification" name="InstanceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-_ownedComment.0" body="An InstanceSpecification is a model element that represents an instance in a modeled system. An InstanceSpecification can act as a DeploymentTarget in a Deployment relationship, in the case that it represents an instance of a Node. It can also act as a DeployedArtifact, if it represents an instance of an Artifact.">
<annotatedElement xmi:idref="InstanceSpecification"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InstanceSpecification-deployment_artifact" name="deployment_artifact">
<constrainedElement xmi:idref="InstanceSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-deployment_artifact-_ownedComment.0" body="An InstanceSpecification can act as a DeployedArtifact if it represents an instance of an Artifact.">
<annotatedElement xmi:idref="InstanceSpecification-deployment_artifact"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InstanceSpecification-deployment_artifact-_specification">
<body>deploymentForArtifact->notEmpty() implies classifier->exists(oclIsKindOf(Artifact))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InstanceSpecification-structural_feature" name="structural_feature">
<constrainedElement xmi:idref="InstanceSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-structural_feature-_ownedComment.0" body="No more than one slot in an InstanceSpecification may have the same definingFeature.">
<annotatedElement xmi:idref="InstanceSpecification-structural_feature"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InstanceSpecification-structural_feature-_specification">
<body>classifier->forAll(c | (c.allSlottableFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() <= 1)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InstanceSpecification-defining_feature" name="defining_feature">
<constrainedElement xmi:idref="InstanceSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-defining_feature-_ownedComment.0" body="The definingFeature of each slot is a StructuralFeature related to a classifier of the InstanceSpecification, including direct attributes, inherited attributes, private attributes in generalizations, and memberEnds of Associations, but excluding redefined StructuralFeatures.">
<annotatedElement xmi:idref="InstanceSpecification-defining_feature"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InstanceSpecification-defining_feature-_specification">
<body>slot->forAll(s | classifier->exists (c | c.allSlottableFeatures()->includes (s.definingFeature)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="InstanceSpecification-deployment_target" name="deployment_target">
<constrainedElement xmi:idref="InstanceSpecification"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-deployment_target-_ownedComment.0" body="An InstanceSpecification can act as a DeploymentTarget if it represents an instance of a Node and functions as a part in the internal structure of an encompassing Node.">
<annotatedElement xmi:idref="InstanceSpecification-deployment_target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InstanceSpecification-deployment_target-_specification">
<body>deployment->notEmpty() implies classifier->exists(node | node.oclIsKindOf(Node) and Node.allInstances()->exists(n | n.part->exists(p | p.type = node)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InstanceSpecification-_generalization.2" general="DeploymentTarget"/>
<generalization xmi:type="uml:Generalization" xmi:id="InstanceSpecification-_generalization.0" general="PackageableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="InstanceSpecification-_generalization.1" general="DeployedArtifact"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InstanceSpecification-classifier" name="classifier" type="Classifier" association="A_classifier_instanceSpecification">
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-classifier-_ownedComment.0" body="The Classifier or Classifiers of the represented instance. If multiple Classifiers are specified, the instance is classified by all of them.">
<annotatedElement xmi:idref="InstanceSpecification-classifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InstanceSpecification-classifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InstanceSpecification-classifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InstanceSpecification-slot" name="slot" aggregation="composite" type="Slot" association="A_slot_owningInstance">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-slot-_ownedComment.0" body="A Slot giving the value or values of a StructuralFeature of the instance. An InstanceSpecification can have one Slot per StructuralFeature of its Classifiers, including inherited features. It is not necessary to model a Slot for every StructuralFeature, in which case the InstanceSpecification is a partial description.">
<annotatedElement xmi:idref="InstanceSpecification-slot"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InstanceSpecification-slot-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InstanceSpecification-slot-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InstanceSpecification-specification" name="specification" aggregation="composite" type="ValueSpecification" association="A_specification_owningInstanceSpec">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceSpecification-specification-_ownedComment.0" body="A specification of how to compute, derive, or construct the instance.">
<annotatedElement xmi:idref="InstanceSpecification-specification"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InstanceSpecification-specification-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InstanceValue" name="InstanceValue">
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceValue-_ownedComment.0" body="An InstanceValue is a ValueSpecification that identifies an instance.">
<annotatedElement xmi:idref="InstanceValue"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="InstanceValue-_generalization.0" general="ValueSpecification"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InstanceValue-instance" name="instance" type="InstanceSpecification" association="A_instance_instanceValue">
<ownedComment xmi:type="uml:Comment" xmi:id="InstanceValue-instance-_ownedComment.0" body="The InstanceSpecification that represents the specified value.">
<annotatedElement xmi:idref="InstanceValue-instance"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Operation" name="Operation">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-_ownedComment.0" body="An Operation is a BehavioralFeature of a Classifier that specifies the name, type, parameters, and constraints for invoking an associated Behavior. An Operation may invoke both the execution of method behaviors as well as other behavioral responses. Operation specializes TemplateableElement in order to support specification of template operations and bound operations. Operation specializes ParameterableElement to specify that an operation can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template.">
<annotatedElement xmi:idref="Operation"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-at_most_one_return" name="at_most_one_return">
<constrainedElement xmi:idref="Operation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-at_most_one_return-_ownedComment.0" body="An Operation can have at most one return parameter; i.e., an owned parameter with the direction set to 'return.'">
<annotatedElement xmi:idref="Operation-at_most_one_return"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-at_most_one_return-_specification">
<body>self.ownedParameter->select(direction = ParameterDirectionKind::return)->size() <= 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-only_body_for_query" name="only_body_for_query">
<constrainedElement xmi:idref="Operation"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-only_body_for_query-_ownedComment.0" body="A bodyCondition can only be specified for a query Operation.">
<annotatedElement xmi:idref="Operation-only_body_for_query"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-only_body_for_query-_specification">
<body>bodyCondition <> null implies isQuery</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Operation-_generalization.2" general="TemplateableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Operation-_generalization.0" general="ParameterableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Operation-_generalization.1" general="BehavioralFeature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-bodyCondition" name="bodyCondition" aggregation="composite" type="Constraint" association="A_bodyCondition_bodyContext">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-bodyCondition-_ownedComment.0" body="An optional Constraint on the result values of an invocation of this Operation.">
<annotatedElement xmi:idref="Operation-bodyCondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-bodyCondition-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-class" name="class" type="Class" association="A_ownedOperation_class">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-class-_ownedComment.0" body="The Class that owns this operation, if any.">
<annotatedElement xmi:idref="Operation-class"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-class-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-datatype" name="datatype" type="DataType" association="A_ownedOperation_datatype">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-datatype-_ownedComment.0" body="The DataType that owns this Operation, if any.">
<annotatedElement xmi:idref="Operation-datatype"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-datatype-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-interface" name="interface" type="Interface" association="A_ownedOperation_interface">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-interface-_ownedComment.0" body="The Interface that owns this Operation, if any.">
<annotatedElement xmi:idref="Operation-interface"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-interface-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-isOrdered" name="isOrdered" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isOrdered-_ownedComment.0" body="Specifies whether the return parameter is ordered or not, if present. This information is derived from the return result for this Operation.">
<annotatedElement xmi:idref="Operation-isOrdered"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-isQuery" name="isQuery">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isQuery-_ownedComment.0" body="Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false).">
<annotatedElement xmi:idref="Operation-isQuery"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Operation-isQuery-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-isUnique" name="isUnique" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isUnique-_ownedComment.0" body="Specifies whether the return parameter is unique or not, if present. This information is derived from the return result for this Operation.">
<annotatedElement xmi:idref="Operation-isUnique"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-lower" name="lower" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-lower-_ownedComment.0" body="Specifies the lower multiplicity of the return parameter, if present. This information is derived from the return result for this Operation.">
<annotatedElement xmi:idref="Operation-lower"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-lower-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-ownedParameter" name="ownedParameter" isOrdered="true" aggregation="composite" type="Parameter" association="A_ownedParameter_operation">
<redefinedProperty xmi:idref="BehavioralFeature-ownedParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-ownedParameter-_ownedComment.0" body="The parameters owned by this Operation.">
<annotatedElement xmi:idref="Operation-ownedParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-ownedParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-ownedParameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-postcondition" name="postcondition" aggregation="composite" type="Constraint" association="A_postcondition_postContext">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-postcondition-_ownedComment.0" body="An optional set of Constraints specifying the state of the system when the Operation is completed.">
<annotatedElement xmi:idref="Operation-postcondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-postcondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-postcondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-precondition" name="precondition" aggregation="composite" type="Constraint" association="A_precondition_preContext">
<subsettedProperty xmi:idref="Namespace-ownedRule"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-precondition-_ownedComment.0" body="An optional set of Constraints on the state of the system when the Operation is invoked.">
<annotatedElement xmi:idref="Operation-precondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-precondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-precondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-raisedException" name="raisedException" type="Type" association="A_raisedException_operation">
<redefinedProperty xmi:idref="BehavioralFeature-raisedException"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-raisedException-_ownedComment.0" body="The Types representing exceptions that may be raised during an invocation of this operation.">
<annotatedElement xmi:idref="Operation-raisedException"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-raisedException-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-raisedException-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-redefinedOperation" name="redefinedOperation" type="Operation" association="A_redefinedOperation_operation">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-redefinedOperation-_ownedComment.0" body="The Operations that are redefined by this Operation.">
<annotatedElement xmi:idref="Operation-redefinedOperation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-redefinedOperation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-redefinedOperation-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-templateParameter" name="templateParameter" type="OperationTemplateParameter" association="A_operation_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="ParameterableElement-templateParameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-templateParameter-_ownedComment.0" body="The OperationTemplateParameter that exposes this element as a formal parameter.">
<annotatedElement xmi:idref="Operation-templateParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-templateParameter-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-type" name="type" isReadOnly="true" isDerived="true" type="Type" association="A_type_operation">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-type-_ownedComment.0" body="The return type of the operation, if present. This information is derived from the return result for this Operation.">
<annotatedElement xmi:idref="Operation-type"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-type-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Operation-upper" name="upper" isReadOnly="true" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-upper-_ownedComment.0" body="The upper multiplicity of the return parameter, if present. This information is derived from the return result for this Operation.">
<annotatedElement xmi:idref="Operation-upper"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-upper-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="Operation-isConsistentWith-spec">
<precondition xmi:idref="Operation-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies, for any two Operations in a context in which redefinition is possible, whether redefinition would be consistent. A redefining operation is consistent with a redefined operation if it has the same number of owned parameters, and for each parameter the following holds: - Direction, ordering and uniqueness are the same. - The corresponding types are covariant, contravariant or invariant. - The multiplicities are compatible, depending on the parameter direction.">
<annotatedElement xmi:idref="Operation-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="Operation-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(Operation) and let op : Operation = redefiningElement.oclAsType(Operation) in self.ownedParameter->size() = op.ownedParameter->size() and Sequence{1..self.ownedParameter->size()}-> forAll(i | let redefiningParam : Parameter = op.ownedParameter->at(i), redefinedParam : Parameter = self.ownedParameter->at(i) in (redefiningParam.isUnique = redefinedParam.isUnique) and (redefiningParam.isOrdered = redefinedParam. isOrdered) and (redefiningParam.direction = redefinedParam.direction) and (redefiningParam.type.conformsTo(redefinedParam.type) or redefinedParam.type.conformsTo(redefiningParam.type)) and (redefiningParam.direction = ParameterDirectionKind::inout implies (redefinedParam.compatibleWith(redefiningParam) and redefiningParam.compatibleWith(redefinedParam))) and (redefiningParam.direction = ParameterDirectionKind::_'in' implies redefinedParam.compatibleWith(redefiningParam)) and ((redefiningParam.direction = ParameterDirectionKind::out or redefiningParam.direction = ParameterDirectionKind::return) implies redefiningParam.compatibleWith(redefinedParam)) ))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="Operation-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-isOrdered.1" name="isOrdered" isQuery="true" bodyCondition="Operation-isOrdered.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isOrdered.1-_ownedComment.0" body="If this operation has a return parameter, isOrdered equals the value of isOrdered for that parameter. Otherwise isOrdered is false.">
<annotatedElement xmi:idref="Operation-isOrdered.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-isOrdered.1-spec" name="spec">
<constrainedElement xmi:idref="Operation-isOrdered.1"/>
<constrainedElement xmi:idref="Operation-isOrdered"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-isOrdered.1-spec-_specification">
<body>result = (if returnResult()->notEmpty() then returnResult()-> exists(isOrdered) else false endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-isOrdered.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-isUnique.1" name="isUnique" isQuery="true" bodyCondition="Operation-isUnique.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-isUnique.1-_ownedComment.0" body="If this operation has a return parameter, isUnique equals the value of isUnique for that parameter. Otherwise isUnique is true.">
<annotatedElement xmi:idref="Operation-isUnique.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-isUnique.1-spec" name="spec">
<constrainedElement xmi:idref="Operation-isUnique.1"/>
<constrainedElement xmi:idref="Operation-isUnique"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-isUnique.1-spec-_specification">
<body>result = (if returnResult()->notEmpty() then returnResult()->exists(isUnique) else true endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-isUnique.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-lower.1" name="lower" isQuery="true" bodyCondition="Operation-lower.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-lower.1-_ownedComment.0" body="If this operation has a return parameter, lower equals the value of lower for that parameter. Otherwise lower has no value.">
<annotatedElement xmi:idref="Operation-lower.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-lower.1-spec" name="spec">
<constrainedElement xmi:idref="Operation-lower.1"/>
<constrainedElement xmi:idref="Operation-lower"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-lower.1-spec-_specification">
<body>result = (if returnResult()->notEmpty() then returnResult()->any(true).lower else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-lower.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-returnResult" name="returnResult" isQuery="true" bodyCondition="Operation-returnResult-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-returnResult-_ownedComment.0" body="The query returnResult() returns the set containing the return parameter of the Operation if one exists, otherwise, it returns an empty set">
<annotatedElement xmi:idref="Operation-returnResult"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-returnResult-spec" name="spec">
<constrainedElement xmi:idref="Operation-returnResult"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-returnResult-spec-_specification">
<body>result = (ownedParameter->select (direction = ParameterDirectionKind::return))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-returnResult-result" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Operation-returnResult-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Operation-returnResult-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-type.1" name="type" isQuery="true" bodyCondition="Operation-type.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-type.1-_ownedComment.0" body="If this operation has a return parameter, type equals the value of type for that parameter. Otherwise type has no value.">
<annotatedElement xmi:idref="Operation-type.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-type.1-spec" name="spec">
<constrainedElement xmi:idref="Operation-type.1"/>
<constrainedElement xmi:idref="Operation-type"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-type.1-spec-_specification">
<body>result = (if returnResult()->notEmpty() then returnResult()->any(true).type else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-type.1-result" name="result" direction="return" type="Type"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Operation-upper.1" name="upper" isQuery="true" bodyCondition="Operation-upper.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Operation-upper.1-_ownedComment.0" body="If this operation has a return parameter, upper equals the value of upper for that parameter. Otherwise upper has no value.">
<annotatedElement xmi:idref="Operation-upper.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Operation-upper.1-spec" name="spec">
<constrainedElement xmi:idref="Operation-upper.1"/>
<constrainedElement xmi:idref="Operation-upper"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Operation-upper.1-spec-_specification">
<body>result = (if returnResult()->notEmpty() then returnResult()->any(true).upper else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Operation-upper.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#UnlimitedNatural"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OperationTemplateParameter" name="OperationTemplateParameter">
<ownedComment xmi:type="uml:Comment" xmi:id="OperationTemplateParameter-_ownedComment.0" body="An OperationTemplateParameter exposes an Operation as a formal parameter for a template.">
<annotatedElement xmi:idref="OperationTemplateParameter"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OperationTemplateParameter-match_default_signature" name="match_default_signature">
<constrainedElement xmi:idref="OperationTemplateParameter"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OperationTemplateParameter-match_default_signature-_specification">
<body>default->notEmpty() implies (default.oclIsKindOf(Operation) and (let defaultOp : Operation = default.oclAsType(Operation) in defaultOp.ownedParameter->size() = parameteredElement.ownedParameter->size() and Sequence{1.. defaultOp.ownedParameter->size()}->forAll( ix | let p1: Parameter = defaultOp.ownedParameter->at(ix), p2 : Parameter = parameteredElement.ownedParameter->at(ix) in p1.type = p2.type and p1.upper = p2.upper and p1.lower = p2.lower and p1.direction = p2.direction and p1.isOrdered = p2.isOrdered and p1.isUnique = p2.isUnique)))</body>
<language>OCL</language>
<ownedComment xmi:type="uml:Comment" xmi:id="OperationTemplateParameter-match_default_signature-_specification-_ownedComment.0" body="A default for an OperationTemplateParameter must be an Operation with the same Parameter types, directions and multiplicities as the exposed Operation.">
<annotatedElement xmi:idref="OperationTemplateParameter-match_default_signature-_specification"/>
</ownedComment>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="OperationTemplateParameter-_generalization.0" general="TemplateParameter"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="OperationTemplateParameter-parameteredElement" name="parameteredElement" type="Operation" association="A_operation_templateParameter_parameteredElement">
<redefinedProperty xmi:idref="TemplateParameter-parameteredElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OperationTemplateParameter-parameteredElement-_ownedComment.0" body="The Operation exposed by this OperationTemplateParameter.">
<annotatedElement xmi:idref="OperationTemplateParameter-parameteredElement"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Parameter" name="Parameter">
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-_ownedComment.0" body="A Parameter is a specification of an argument used to pass information into or out of an invocation of a BehavioralFeature. Parameters can be treated as ConnectableElements within Collaborations.">
<annotatedElement xmi:idref="Parameter"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-in_and_out" name="in_and_out">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-in_and_out-_ownedComment.0" body="Only in and inout Parameters may have a delete effect. Only out, inout, and return Parameters may have a create effect.">
<annotatedElement xmi:idref="Parameter-in_and_out"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-in_and_out-_specification">
<body>(effect = ParameterEffectKind::delete implies (direction = ParameterDirectionKind::_'in' or direction = ParameterDirectionKind::inout)) and (effect = ParameterEffectKind::create implies (direction = ParameterDirectionKind::out or direction = ParameterDirectionKind::inout or direction = ParameterDirectionKind::return))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-not_exception" name="not_exception">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-not_exception-_ownedComment.0" body="An input Parameter cannot be an exception.">
<annotatedElement xmi:idref="Parameter-not_exception"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-not_exception-_specification">
<body>isException implies (direction <> ParameterDirectionKind::_'in' and direction <> ParameterDirectionKind::inout)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-connector_end" name="connector_end">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-connector_end-_ownedComment.0" body="A Parameter may only be associated with a Connector end within the context of a Collaboration.">
<annotatedElement xmi:idref="Parameter-connector_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-connector_end-_specification">
<body>end->notEmpty() implies collaboration->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-reentrant_behaviors" name="reentrant_behaviors">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-reentrant_behaviors-_ownedComment.0" body="Reentrant behaviors cannot have stream Parameters.">
<annotatedElement xmi:idref="Parameter-reentrant_behaviors"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-reentrant_behaviors-_specification">
<body>(isStream and behavior <> null) implies not behavior.isReentrant</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-stream_and_exception" name="stream_and_exception">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-stream_and_exception-_ownedComment.0" body="A Parameter cannot be a stream and exception at the same time.">
<annotatedElement xmi:idref="Parameter-stream_and_exception"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-stream_and_exception-_specification">
<body>not (isException and isStream)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-object_effect" name="object_effect">
<constrainedElement xmi:idref="Parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-object_effect-_ownedComment.0" body="Parameters typed by DataTypes cannot have an effect.">
<annotatedElement xmi:idref="Parameter-object_effect"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-object_effect-_specification">
<body>(type.oclIsKindOf(DataType)) implies (effect = null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Parameter-_generalization.0" general="MultiplicityElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Parameter-_generalization.1" general="ConnectableElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-default" name="default" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-default-_ownedComment.0" body="A String that represents a value to be used when no argument is supplied for the Parameter.">
<annotatedElement xmi:idref="Parameter-default"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-default-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-defaultValue" name="defaultValue" aggregation="composite" type="ValueSpecification" association="A_defaultValue_owningParameter">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-defaultValue-_ownedComment.0" body="Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter.">
<annotatedElement xmi:idref="Parameter-defaultValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-defaultValue-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-direction" name="direction" type="ParameterDirectionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-direction-_ownedComment.0" body="Indicates whether a parameter is being sent into or out of a behavioral element.">
<annotatedElement xmi:idref="Parameter-direction"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="Parameter-direction-_defaultValue" type="ParameterDirectionKind" instance="ParameterDirectionKind-in"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-effect" name="effect" type="ParameterEffectKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-effect-_ownedComment.0" body="Specifies the effect that executions of the owner of the Parameter have on objects passed in or out of the parameter.">
<annotatedElement xmi:idref="Parameter-effect"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-effect-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-isException" name="isException">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-isException-_ownedComment.0" body="Tells whether an output parameter may emit a value to the exclusion of the other outputs.">
<annotatedElement xmi:idref="Parameter-isException"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Parameter-isException-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-isStream" name="isStream">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-isStream-_ownedComment.0" body="Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter may post values while the behavior is executing.">
<annotatedElement xmi:idref="Parameter-isStream"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Parameter-isStream-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-operation" name="operation" type="Operation" association="A_ownedParameter_operation">
<subsettedProperty xmi:idref="A_ownedParameter_ownerFormalParam-ownerFormalParam"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-operation-_ownedComment.0" body="The Operation owning this parameter.">
<annotatedElement xmi:idref="Parameter-operation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-operation-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Parameter-parameterSet" name="parameterSet" type="ParameterSet" association="A_parameterSet_parameter">
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-parameterSet-_ownedComment.0" body="The ParameterSets containing the parameter. See ParameterSet.">
<annotatedElement xmi:idref="Parameter-parameterSet"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-parameterSet-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Parameter-parameterSet-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Parameter-default.1" name="default" isQuery="true" bodyCondition="Parameter-default.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Parameter-default.1-_ownedComment.0" body="Derivation for Parameter::/default">
<annotatedElement xmi:idref="Parameter-default.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Parameter-default.1-spec" name="spec">
<constrainedElement xmi:idref="Parameter-default.1"/>
<constrainedElement xmi:idref="Parameter-default"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Parameter-default.1-spec-_specification">
<body>result = (if self.type = String then defaultValue.stringValue() else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Parameter-default.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Parameter-default.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ParameterSet" name="ParameterSet">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-_ownedComment.0" body="A ParameterSet designates alternative sets of inputs or outputs that a Behavior may use.">
<annotatedElement xmi:idref="ParameterSet"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ParameterSet-same_parameterized_entity" name="same_parameterized_entity">
<constrainedElement xmi:idref="ParameterSet"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-same_parameterized_entity-_ownedComment.0" body="The Parameters in a ParameterSet must all be inputs or all be outputs of the same parameterized entity, and the ParameterSet is owned by that entity.">
<annotatedElement xmi:idref="ParameterSet-same_parameterized_entity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ParameterSet-same_parameterized_entity-_specification">
<body>parameter->forAll(p1, p2 | self.owner = p1.owner and self.owner = p2.owner and p1.direction = p2.direction)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ParameterSet-input" name="input">
<constrainedElement xmi:idref="ParameterSet"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-input-_ownedComment.0" body="If a parameterized entity has input Parameters that are in a ParameterSet, then any inputs that are not in a ParameterSet must be streaming. Same for output Parameters.">
<annotatedElement xmi:idref="ParameterSet-input"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ParameterSet-input-_specification">
<body>((parameter->exists(direction = ParameterDirectionKind::_'in')) implies behavioralFeature.ownedParameter->select(p | p.direction = ParameterDirectionKind::_'in' and p.parameterSet->isEmpty())->forAll(isStream)) and ((parameter->exists(direction = ParameterDirectionKind::out)) implies behavioralFeature.ownedParameter->select(p | p.direction = ParameterDirectionKind::out and p.parameterSet->isEmpty())->forAll(isStream)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ParameterSet-two_parameter_sets" name="two_parameter_sets">
<constrainedElement xmi:idref="ParameterSet"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-two_parameter_sets-_ownedComment.0" body="Two ParameterSets cannot have exactly the same set of Parameters.">
<annotatedElement xmi:idref="ParameterSet-two_parameter_sets"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ParameterSet-two_parameter_sets-_specification">
<body>parameter->forAll(parameterSet->forAll(s1, s2 | s1->size() = s2->size() implies s1.parameter->exists(p | not s2.parameter->includes(p))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ParameterSet-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ParameterSet-condition" name="condition" aggregation="composite" type="Constraint" association="A_condition_parameterSet">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-condition-_ownedComment.0" body="A constraint that should be satisfied for the owner of the Parameters in an input ParameterSet to start execution using the values provided for those Parameters, or the owner of the Parameters in an output ParameterSet to end execution providing the values for those Parameters, if all preconditions and conditions on input ParameterSets were satisfied.">
<annotatedElement xmi:idref="ParameterSet-condition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ParameterSet-condition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ParameterSet-condition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ParameterSet-parameter" name="parameter" type="Parameter" association="A_parameterSet_parameter">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterSet-parameter-_ownedComment.0" body="Parameters in the ParameterSet.">
<annotatedElement xmi:idref="ParameterSet-parameter"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ParameterSet-parameter-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Property" name="Property">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-_ownedComment.0" body="A Property is a StructuralFeature. A Property related by ownedAttribute to a Classifier (other than an association) represents an attribute and might also represent an association end. It relates an instance of the Classifier to a value or set of values of the type of the attribute. A Property related by memberEnd to an Association represents an end of the Association. The type of the Property is the type of the end of the Association. A Property has the capability of being a DeploymentTarget in a Deployment relationship. This enables modeling the deployment to hierarchical nodes that have Properties functioning as internal parts. Property specializes ParameterableElement to specify that a Property can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template.">
<annotatedElement xmi:idref="Property"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-subsetting_context_conforms" name="subsetting_context_conforms">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-subsetting_context_conforms-_ownedComment.0" body="Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property.">
<annotatedElement xmi:idref="Property-subsetting_context_conforms"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-subsetting_context_conforms-_specification">
<body>subsettedProperty->notEmpty() implies (subsettingContext()->notEmpty() and subsettingContext()->forAll (sc | subsettedProperty->forAll(sp | sp.subsettingContext()->exists(c | sc.conformsTo(c)))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-derived_union_is_read_only" name="derived_union_is_read_only">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-derived_union_is_read_only-_ownedComment.0" body="A derived union is read only.">
<annotatedElement xmi:idref="Property-derived_union_is_read_only"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-derived_union_is_read_only-_specification">
<body>isDerivedUnion implies isReadOnly</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-multiplicity_of_composite" name="multiplicity_of_composite">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-multiplicity_of_composite-_ownedComment.0" body="A multiplicity on the composing end of a composite aggregation must not have an upper bound greater than 1.">
<annotatedElement xmi:idref="Property-multiplicity_of_composite"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-multiplicity_of_composite-_specification">
<body>isComposite and association <> null implies opposite.upperBound() <= 1 </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-redefined_property_inherited" name="redefined_property_inherited">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-redefined_property_inherited-_ownedComment.0" body="A redefined Property must be inherited from a more general Classifier.">
<annotatedElement xmi:idref="Property-redefined_property_inherited"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-redefined_property_inherited-_specification">
<body>(redefinedProperty->notEmpty()) implies (redefinitionContext->notEmpty() and redefinedProperty->forAll(rp| ((redefinitionContext->collect(fc| fc.allParents()))->asSet())->collect(c| c.allFeatures())->asSet()->includes(rp)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-subsetting_rules" name="subsetting_rules">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-subsetting_rules-_ownedComment.0" body="A subsetting Property may strengthen the type of the subsetted Property, and its upper bound may be less.">
<annotatedElement xmi:idref="Property-subsetting_rules"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-subsetting_rules-_specification">
<body>subsettedProperty->forAll(sp | self.type.conformsTo(sp.type) and ((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies self.upperBound() <= sp.upperBound() ))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-binding_to_attribute" name="binding_to_attribute">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-binding_to_attribute-_ownedComment.0" body="A binding of a PropertyTemplateParameter representing an attribute must be to an attribute.">
<annotatedElement xmi:idref="Property-binding_to_attribute"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-binding_to_attribute-_specification">
<body>(self.isAttribute() and (templateParameterSubstitution->notEmpty()) implies (templateParameterSubstitution->forAll(ts | ts.formal.oclIsKindOf(Property) and ts.formal.oclAsType(Property).isAttribute())))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-derived_union_is_derived" name="derived_union_is_derived">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-derived_union_is_derived-_ownedComment.0" body="A derived union is derived.">
<annotatedElement xmi:idref="Property-derived_union_is_derived"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-derived_union_is_derived-_specification">
<body>isDerivedUnion implies isDerived</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-deployment_target" name="deployment_target">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-deployment_target-_ownedComment.0" body="A Property can be a DeploymentTarget if it is a kind of Node and functions as a part in the internal structure of an encompassing Node.">
<annotatedElement xmi:idref="Property-deployment_target"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-deployment_target-_specification">
<body>deployment->notEmpty() implies owner.oclIsKindOf(Node) and Node.allInstances()->exists(n | n.part->exists(p | p = self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-subsetted_property_names" name="subsetted_property_names">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-subsetted_property_names-_ownedComment.0" body="A Property may not subset a Property with the same name.">
<annotatedElement xmi:idref="Property-subsetted_property_names"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-subsetted_property_names-_specification">
<body>subsettedProperty->forAll(sp | sp.name <> name)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-type_of_opposite_end" name="type_of_opposite_end">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-type_of_opposite_end-_ownedComment.0" body="If a Property is a classifier-owned end of a binary Association, its owner must be the type of the opposite end.">
<annotatedElement xmi:idref="Property-type_of_opposite_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-type_of_opposite_end-_specification">
<body>(opposite->notEmpty() and owningAssociation->isEmpty()) implies classifier = opposite.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-qualified_is_association_end" name="qualified_is_association_end">
<constrainedElement xmi:idref="Property"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-qualified_is_association_end-_ownedComment.0" body="All qualified Properties must be Association ends">
<annotatedElement xmi:idref="Property-qualified_is_association_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-qualified_is_association_end-_specification">
<body>qualifier->notEmpty() implies association->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Property-_generalization.0" general="ConnectableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="Property-_generalization.2" general="DeploymentTarget"/>
<generalization xmi:type="uml:Generalization" xmi:id="Property-_generalization.1" general="StructuralFeature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-aggregation" name="aggregation" type="AggregationKind">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-aggregation-_ownedComment.0" body="Specifies the kind of aggregation that applies to the Property.">
<annotatedElement xmi:idref="Property-aggregation"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="Property-aggregation-_defaultValue" type="AggregationKind" instance="AggregationKind-none"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-association" name="association" type="Association" association="A_memberEnd_association">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-association-_ownedComment.0" body="The Association of which this Property is a member, if any.">
<annotatedElement xmi:idref="Property-association"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-association-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-associationEnd" name="associationEnd" type="Property" association="A_qualifier_associationEnd">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-associationEnd-_ownedComment.0" body="Designates the optional association end that owns a qualifier attribute.">
<annotatedElement xmi:idref="Property-associationEnd"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-associationEnd-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-class" name="class" type="Class" association="A_ownedAttribute_class">
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="A_ownedAttribute_structuredClassifier-structuredClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-class-_ownedComment.0" body="The Class that owns this Property, if any.">
<annotatedElement xmi:idref="Property-class"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-class-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-datatype" name="datatype" type="DataType" association="A_ownedAttribute_datatype">
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-datatype-_ownedComment.0" body="The DataType that owns this Property, if any.">
<annotatedElement xmi:idref="Property-datatype"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-datatype-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-defaultValue" name="defaultValue" aggregation="composite" type="ValueSpecification" association="A_defaultValue_owningProperty">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-defaultValue-_ownedComment.0" body="A ValueSpecification that is evaluated to give a default value for the Property when an instance of the owning Classifier is instantiated.">
<annotatedElement xmi:idref="Property-defaultValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-defaultValue-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-interface" name="interface" type="Interface" association="A_ownedAttribute_interface">
<subsettedProperty xmi:idref="A_attribute_classifier-classifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-interface-_ownedComment.0" body="The Interface that owns this Property, if any.">
<annotatedElement xmi:idref="Property-interface"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-interface-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-isComposite" name="isComposite" isDerived="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isComposite-_ownedComment.0" body="If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute. This is a derived value, indicating whether the aggregation of the Property is composite or not.">
<annotatedElement xmi:idref="Property-isComposite"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Property-isComposite-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-isDerived" name="isDerived">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isDerived-_ownedComment.0" body="Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information.">
<annotatedElement xmi:idref="Property-isDerived"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Property-isDerived-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-isDerivedUnion" name="isDerivedUnion">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isDerivedUnion-_ownedComment.0" body="Specifies whether the property is derived as the union of all of the Properties that are constrained to subset it.">
<annotatedElement xmi:idref="Property-isDerivedUnion"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Property-isDerivedUnion-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-isID" name="isID">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isID-_ownedComment.0" body="True indicates this property can be used to uniquely identify an instance of the containing Class.">
<annotatedElement xmi:idref="Property-isID"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Property-isID-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-opposite" name="opposite" isDerived="true" type="Property" association="A_opposite_property">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-opposite-_ownedComment.0" body="In the case where the Property is one end of a binary association this gives the other end.">
<annotatedElement xmi:idref="Property-opposite"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-opposite-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-owningAssociation" name="owningAssociation" type="Association" association="A_ownedEnd_owningAssociation">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<subsettedProperty xmi:idref="Property-association"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-owningAssociation-_ownedComment.0" body="The owning association of this property, if any.">
<annotatedElement xmi:idref="Property-owningAssociation"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-owningAssociation-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-qualifier" name="qualifier" isOrdered="true" aggregation="composite" type="Property" association="A_qualifier_associationEnd">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-qualifier-_ownedComment.0" body="An optional list of ordered qualifier attributes for the end.">
<annotatedElement xmi:idref="Property-qualifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-qualifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Property-qualifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-redefinedProperty" name="redefinedProperty" type="Property" association="A_redefinedProperty_property">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-redefinedProperty-_ownedComment.0" body="The properties that are redefined by this property, if any.">
<annotatedElement xmi:idref="Property-redefinedProperty"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-redefinedProperty-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Property-redefinedProperty-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Property-subsettedProperty" name="subsettedProperty" type="Property" association="A_subsettedProperty_property">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-subsettedProperty-_ownedComment.0" body="The properties of which this Property is constrained to be a subset, if any.">
<annotatedElement xmi:idref="Property-subsettedProperty"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-subsettedProperty-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Property-subsettedProperty-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-isAttribute" name="isAttribute" isQuery="true" bodyCondition="Property-isAttribute-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isAttribute-_ownedComment.0" body="The query isAttribute() is true if the Property is defined as an attribute of some Classifier.">
<annotatedElement xmi:idref="Property-isAttribute"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isAttribute-spec" name="spec">
<constrainedElement xmi:idref="Property-isAttribute"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isAttribute-spec-_specification">
<body>result = (not classifier->isEmpty())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isAttribute-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-isCompatibleWith" name="isCompatibleWith" isQuery="true" bodyCondition="Property-isCompatibleWith-spec">
<redefinedOperation xmi:idref="ParameterableElement-isCompatibleWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isCompatibleWith-_ownedComment.0" body="The query isCompatibleWith() determines if this Property is compatible with the specified ParameterableElement. This Property is compatible with ParameterableElement p if the kind of this Property is thesame as or a subtype of the kind of p. Further, if p is a TypedElement, then the type of this Property must be conformant with the type of p.">
<annotatedElement xmi:idref="Property-isCompatibleWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isCompatibleWith-spec" name="spec">
<constrainedElement xmi:idref="Property-isCompatibleWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isCompatibleWith-spec-_specification">
<body>result = (self.oclIsKindOf(p.oclType()) and (p.oclIsKindOf(TypeElement) implies self.type.conformsTo(p.oclAsType(TypedElement).type)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isCompatibleWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isCompatibleWith-p" name="p" type="ParameterableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-isComposite.1" name="isComposite" isQuery="true" bodyCondition="Property-isComposite.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isComposite.1-_ownedComment.0" body="The value of isComposite is true only if aggregation is composite.">
<annotatedElement xmi:idref="Property-isComposite.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isComposite.1-spec" name="spec">
<constrainedElement xmi:idref="Property-isComposite.1"/>
<constrainedElement xmi:idref="Property-isComposite"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isComposite.1-spec-_specification">
<body>result = (aggregation = AggregationKind::composite)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isComposite.1-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="Property-isConsistentWith-spec">
<precondition xmi:idref="Property-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies, for any two Properties in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining Property is consistent with a redefined Property if the type of the redefining Property conforms to the type of the redefined Property, and the multiplicity of the redefining Property (if specified) is contained in the multiplicity of the redefined Property.">
<annotatedElement xmi:idref="Property-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="Property-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="Property-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isConsistentWith-spec-_specification">
<body>result = (redefiningElement.oclIsKindOf(Property) and let prop : Property = redefiningElement.oclAsType(Property) in (prop.type.conformsTo(self.type) and ((prop.lowerBound()->notEmpty() and self.lowerBound()->notEmpty()) implies prop.lowerBound() >= self.lowerBound()) and ((prop.upperBound()->notEmpty() and self.upperBound()->notEmpty()) implies prop.lowerBound() <= self.lowerBound()) and (self.isComposite implies prop.isComposite)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-isNavigable" name="isNavigable" isQuery="true" bodyCondition="Property-isNavigable-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-isNavigable-_ownedComment.0" body="The query isNavigable() indicates whether it is possible to navigate across the property.">
<annotatedElement xmi:idref="Property-isNavigable"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-isNavigable-spec" name="spec">
<constrainedElement xmi:idref="Property-isNavigable"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-isNavigable-spec-_specification">
<body>result = (not classifier->isEmpty() or association.navigableOwnedEnd->includes(self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-isNavigable-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-opposite.1" name="opposite" isQuery="true" bodyCondition="Property-opposite.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-opposite.1-_ownedComment.0" body="If this property is a memberEnd of a binary association, then opposite gives the other end.">
<annotatedElement xmi:idref="Property-opposite.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-opposite.1-spec" name="spec">
<constrainedElement xmi:idref="Property-opposite.1"/>
<constrainedElement xmi:idref="Property-opposite"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-opposite.1-spec-_specification">
<body>result = (if association <> null and association.memberEnd->size() = 2 then association.memberEnd->any(e | e <> self) else null endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-opposite.1-result" name="result" direction="return" type="Property"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Property-subsettingContext" name="subsettingContext" isQuery="true" bodyCondition="Property-subsettingContext-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Property-subsettingContext-_ownedComment.0" body="The query subsettingContext() gives the context for subsetting a Property. It consists, in the case of an attribute, of the corresponding Classifier, and in the case of an association end, all of the Classifiers at the other ends.">
<annotatedElement xmi:idref="Property-subsettingContext"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Property-subsettingContext-spec" name="spec">
<constrainedElement xmi:idref="Property-subsettingContext"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Property-subsettingContext-spec-_specification">
<body>result = (if association <> null then association.memberEnd->excluding(self)->collect(type)->asSet() else if classifier<>null then classifier->asSet() else Set{} endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Property-subsettingContext-result" name="result" direction="return" type="Type">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Property-subsettingContext-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Property-subsettingContext-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="RedefinableElement" name="RedefinableElement" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-_ownedComment.0" body="A RedefinableElement is an element that, when defined in the context of a Classifier, can be redefined more specifically or differently in the context of another Classifier that specializes (directly or indirectly) the context Classifier.">
<annotatedElement xmi:idref="RedefinableElement"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-redefinition_consistent" name="redefinition_consistent">
<constrainedElement xmi:idref="RedefinableElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-redefinition_consistent-_ownedComment.0" body="A redefining element must be consistent with each redefined element.">
<annotatedElement xmi:idref="RedefinableElement-redefinition_consistent"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-redefinition_consistent-_specification">
<body>redefinedElement->forAll(re | re.isConsistentWith(self))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-non_leaf_redefinition" name="non_leaf_redefinition">
<constrainedElement xmi:idref="RedefinableElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-non_leaf_redefinition-_ownedComment.0" body="A RedefinableElement can only redefine non-leaf RedefinableElements.">
<annotatedElement xmi:idref="RedefinableElement-non_leaf_redefinition"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-non_leaf_redefinition-_specification">
<body>redefinedElement->forAll(re | not re.isLeaf)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-redefinition_context_valid" name="redefinition_context_valid">
<constrainedElement xmi:idref="RedefinableElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-redefinition_context_valid-_ownedComment.0" body="At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.">
<annotatedElement xmi:idref="RedefinableElement-redefinition_context_valid"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-redefinition_context_valid-_specification">
<body>redefinedElement->forAll(re | self.isRedefinitionContextValid(re))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="RedefinableElement-_generalization.0" general="NamedElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableElement-isLeaf" name="isLeaf">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-isLeaf-_ownedComment.0" body="Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement.">
<annotatedElement xmi:idref="RedefinableElement-isLeaf"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="RedefinableElement-isLeaf-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableElement-redefinedElement" name="redefinedElement" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="RedefinableElement" association="A_redefinedElement_redefinableElement">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-redefinedElement-_ownedComment.0" body="The RedefinableElement that is being redefined by this element.">
<annotatedElement xmi:idref="RedefinableElement-redefinedElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RedefinableElement-redefinedElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="RedefinableElement-redefinedElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableElement-redefinitionContext" name="redefinitionContext" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Classifier" association="A_redefinitionContext_redefinableElement">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-redefinitionContext-_ownedComment.0" body="The contexts that this element may be redefined from.">
<annotatedElement xmi:idref="RedefinableElement-redefinitionContext"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RedefinableElement-redefinitionContext-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="RedefinableElement-redefinitionContext-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="RedefinableElement-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="RedefinableElement-isConsistentWith-spec">
<precondition xmi:idref="RedefinableElement-isConsistentWith-pre"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions.">
<annotatedElement xmi:idref="RedefinableElement-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="RedefinableElement-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-isConsistentWith-spec-_specification">
<body>result = (false)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="RedefinableElement-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableElement-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableElement-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="RedefinableElement-isRedefinitionContextValid" name="isRedefinitionContextValid" isQuery="true" bodyCondition="RedefinableElement-isRedefinitionContextValid-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableElement-isRedefinitionContextValid-_ownedComment.0" body="The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element.">
<annotatedElement xmi:idref="RedefinableElement-isRedefinitionContextValid"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableElement-isRedefinitionContextValid-spec" name="spec">
<constrainedElement xmi:idref="RedefinableElement-isRedefinitionContextValid"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableElement-isRedefinitionContextValid-spec-_specification">
<body>result = (redefinitionContext->exists(c | c.allParents()->includesAll(redefinedElement.redefinitionContext)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableElement-isRedefinitionContextValid-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableElement-isRedefinitionContextValid-redefinedElement" name="redefinedElement" type="RedefinableElement"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="RedefinableTemplateSignature" name="RedefinableTemplateSignature">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-_ownedComment.0" body="A RedefinableTemplateSignature supports the addition of formal template parameters in a specialization of a template classifier.">
<annotatedElement xmi:idref="RedefinableTemplateSignature"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableTemplateSignature-redefines_parents" name="redefines_parents">
<constrainedElement xmi:idref="RedefinableTemplateSignature"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-redefines_parents-_ownedComment.0" body="If any of the parent Classifiers are a template, then the extendedSignature must include the signature of that Classifier.">
<annotatedElement xmi:idref="RedefinableTemplateSignature-redefines_parents"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableTemplateSignature-redefines_parents-_specification">
<body>classifier.allParents()->forAll(c | c.ownedTemplateSignature->notEmpty() implies self->closure(extendedSignature)->includes(c.ownedTemplateSignature))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="RedefinableTemplateSignature-_generalization.0" general="RedefinableElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="RedefinableTemplateSignature-_generalization.1" general="TemplateSignature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableTemplateSignature-classifier" name="classifier" type="Classifier" association="A_ownedTemplateSignature_classifier">
<redefinedProperty xmi:idref="TemplateSignature-template"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-classifier-_ownedComment.0" body="The Classifier that owns this RedefinableTemplateSignature.">
<annotatedElement xmi:idref="RedefinableTemplateSignature-classifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableTemplateSignature-extendedSignature" name="extendedSignature" type="RedefinableTemplateSignature" association="A_extendedSignature_redefinableTemplateSignature">
<subsettedProperty xmi:idref="RedefinableElement-redefinedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-extendedSignature-_ownedComment.0" body="The signatures extended by this RedefinableTemplateSignature.">
<annotatedElement xmi:idref="RedefinableTemplateSignature-extendedSignature"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RedefinableTemplateSignature-extendedSignature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="RedefinableTemplateSignature-extendedSignature-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RedefinableTemplateSignature-inheritedParameter" name="inheritedParameter" isReadOnly="true" isDerived="true" type="TemplateParameter" association="A_inheritedParameter_redefinableTemplateSignature">
<subsettedProperty xmi:idref="TemplateSignature-parameter"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-inheritedParameter-_ownedComment.0" body="The formal template parameters of the extended signatures.">
<annotatedElement xmi:idref="RedefinableTemplateSignature-inheritedParameter"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RedefinableTemplateSignature-inheritedParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="RedefinableTemplateSignature-inheritedParameter-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="RedefinableTemplateSignature-inheritedParameter.1" name="inheritedParameter" isQuery="true" bodyCondition="RedefinableTemplateSignature-inheritedParameter.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-_ownedComment.0" body="Derivation for RedefinableTemplateSignature::/inheritedParameter">
<annotatedElement xmi:idref="RedefinableTemplateSignature-inheritedParameter.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-spec" name="spec">
<constrainedElement xmi:idref="RedefinableTemplateSignature-inheritedParameter.1"/>
<constrainedElement xmi:idref="RedefinableTemplateSignature-inheritedParameter"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-spec-_specification">
<body>result = (if extendedSignature->isEmpty() then Set{} else extendedSignature.parameter->asSet() endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-result" name="result" direction="return" type="TemplateParameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="RedefinableTemplateSignature-inheritedParameter.1-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="RedefinableTemplateSignature-isConsistentWith" name="isConsistentWith" isQuery="true" bodyCondition="RedefinableTemplateSignature-isConsistentWith-spec">
<precondition xmi:idref="RedefinableTemplateSignature-isConsistentWith-pre"/>
<redefinedOperation xmi:idref="RedefinableElement-isConsistentWith"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RedefinableTemplateSignature-isConsistentWith-_ownedComment.0" body="The query isConsistentWith() specifies, for any two RedefinableTemplateSignatures in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining template signature is always consistent with a redefined template signature, as redefinition only adds new formal parameters.">
<annotatedElement xmi:idref="RedefinableTemplateSignature-isConsistentWith"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableTemplateSignature-isConsistentWith-spec" name="spec">
<constrainedElement xmi:idref="RedefinableTemplateSignature-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableTemplateSignature-isConsistentWith-spec-spec" name="spec">
<body>result = (redefiningElement.oclIsKindOf(RedefinableTemplateSignature))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="RedefinableTemplateSignature-isConsistentWith-pre" name="pre">
<constrainedElement xmi:idref="RedefinableTemplateSignature-isConsistentWith"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RedefinableTemplateSignature-isConsistentWith-pre-_specification">
<body>redefiningElement.isRedefinitionContextValid(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableTemplateSignature-isConsistentWith-result" name="result" direction="return">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
</ownedParameter>
<ownedParameter xmi:type="uml:Parameter" xmi:id="RedefinableTemplateSignature-isConsistentWith-redefiningElement" name="redefiningElement" type="RedefinableElement"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Slot" name="Slot">
<ownedComment xmi:type="uml:Comment" xmi:id="Slot-_ownedComment.0" body="A Slot designates that an entity modeled by an InstanceSpecification has a value or values for a specific StructuralFeature.">
<annotatedElement xmi:idref="Slot"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Slot-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Slot-definingFeature" name="definingFeature" type="StructuralFeature" association="A_definingFeature_slot">
<ownedComment xmi:type="uml:Comment" xmi:id="Slot-definingFeature-_ownedComment.0" body="The StructuralFeature that specifies the values that may be held by the Slot.">
<annotatedElement xmi:idref="Slot-definingFeature"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Slot-owningInstance" name="owningInstance" type="InstanceSpecification" association="A_slot_owningInstance">
<subsettedProperty xmi:idref="Element-owner"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Slot-owningInstance-_ownedComment.0" body="The InstanceSpecification that owns this Slot.">
<annotatedElement xmi:idref="Slot-owningInstance"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Slot-value" name="value" isOrdered="true" aggregation="composite" type="ValueSpecification" association="A_value_owningSlot">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Slot-value-_ownedComment.0" body="The value or values held by the Slot.">
<annotatedElement xmi:idref="Slot-value"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Slot-value-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Slot-value-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StructuralFeature" name="StructuralFeature" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeature-_ownedComment.0" body="A StructuralFeature is a typed feature of a Classifier that specifies the structure of instances of the Classifier.">
<annotatedElement xmi:idref="StructuralFeature"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="StructuralFeature-_generalization.0" general="MultiplicityElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="StructuralFeature-_generalization.1" general="TypedElement"/>
<generalization xmi:type="uml:Generalization" xmi:id="StructuralFeature-_generalization.2" general="Feature"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuralFeature-isReadOnly" name="isReadOnly">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeature-isReadOnly-_ownedComment.0" body="If isReadOnly is true, the StructuralFeature may not be written to after initialization.">
<annotatedElement xmi:idref="StructuralFeature-isReadOnly"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="StructuralFeature-isReadOnly-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="AggregationKind" name="AggregationKind">
<ownedComment xmi:type="uml:Comment" xmi:id="AggregationKind-_ownedComment.0" body="AggregationKind is an Enumeration for specifying the kind of aggregation of a Property.">
<annotatedElement xmi:idref="AggregationKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="AggregationKind-none" name="none">
<ownedComment xmi:type="uml:Comment" xmi:id="AggregationKind-none-_ownedComment.0" body="Indicates that the Property has no aggregation.">
<annotatedElement xmi:idref="AggregationKind-none"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="AggregationKind-shared" name="shared">
<ownedComment xmi:type="uml:Comment" xmi:id="AggregationKind-shared-_ownedComment.0" body="Indicates that the Property has shared aggregation.">
<annotatedElement xmi:idref="AggregationKind-shared"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="AggregationKind-composite" name="composite">
<ownedComment xmi:type="uml:Comment" xmi:id="AggregationKind-composite-_ownedComment.0" body="Indicates that the Property is aggregated compositely, i.e., the composite object has responsibility for the existence and storage of the composed objects (parts).">
<annotatedElement xmi:idref="AggregationKind-composite"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="CallConcurrencyKind" name="CallConcurrencyKind">
<ownedComment xmi:type="uml:Comment" xmi:id="CallConcurrencyKind-_ownedComment.0" body="CallConcurrencyKind is an Enumeration used to specify the semantics of concurrent calls to a BehavioralFeature.">
<annotatedElement xmi:idref="CallConcurrencyKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="CallConcurrencyKind-sequential" name="sequential">
<ownedComment xmi:type="uml:Comment" xmi:id="CallConcurrencyKind-sequential-_ownedComment.0" body="No concurrency management mechanism is associated with the BehavioralFeature and, therefore, concurrency conflicts may occur. Instances that invoke a BehavioralFeature need to coordinate so that only one invocation to a target on any BehavioralFeature occurs at once.">
<annotatedElement xmi:idref="CallConcurrencyKind-sequential"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="CallConcurrencyKind-guarded" name="guarded">
<ownedComment xmi:type="uml:Comment" xmi:id="CallConcurrencyKind-guarded-_ownedComment.0" body="Multiple invocations of a BehavioralFeature that overlap in time may occur to one instance, but only one is allowed to commence. The others are blocked until the performance of the currently executing BehavioralFeature is complete. It is the responsibility of the system designer to ensure that deadlocks do not occur due to simultaneous blocking.">
<annotatedElement xmi:idref="CallConcurrencyKind-guarded"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="CallConcurrencyKind-concurrent" name="concurrent">
<ownedComment xmi:type="uml:Comment" xmi:id="CallConcurrencyKind-concurrent-_ownedComment.0" body="Multiple invocations of a BehavioralFeature that overlap in time may occur to one instance and all of them may proceed concurrently.">
<annotatedElement xmi:idref="CallConcurrencyKind-concurrent"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="ParameterDirectionKind" name="ParameterDirectionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterDirectionKind-_ownedComment.0" body="ParameterDirectionKind is an Enumeration that defines literals used to specify direction of parameters.">
<annotatedElement xmi:idref="ParameterDirectionKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterDirectionKind-in" name="in">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterDirectionKind-in-_ownedComment.0" body="Indicates that Parameter values are passed in by the caller. ">
<annotatedElement xmi:idref="ParameterDirectionKind-in"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterDirectionKind-inout" name="inout">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterDirectionKind-inout-_ownedComment.0" body="Indicates that Parameter values are passed in by the caller and (possibly different) values passed out to the caller.">
<annotatedElement xmi:idref="ParameterDirectionKind-inout"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterDirectionKind-out" name="out">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterDirectionKind-out-_ownedComment.0" body="Indicates that Parameter values are passed out to the caller.">
<annotatedElement xmi:idref="ParameterDirectionKind-out"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterDirectionKind-return" name="return">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterDirectionKind-return-_ownedComment.0" body="Indicates that Parameter values are passed as return values back to the caller.">
<annotatedElement xmi:idref="ParameterDirectionKind-return"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="ParameterEffectKind" name="ParameterEffectKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterEffectKind-_ownedComment.0" body="ParameterEffectKind is an Enumeration that indicates the effect of a Behavior on values passed in or out of its parameters.">
<annotatedElement xmi:idref="ParameterEffectKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterEffectKind-create" name="create">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterEffectKind-create-_ownedComment.0" body="Indicates that the behavior creates values.">
<annotatedElement xmi:idref="ParameterEffectKind-create"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterEffectKind-read" name="read">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterEffectKind-read-_ownedComment.0" body="Indicates objects that are values of the parameter have values of their properties, or links in which they participate, or their classifiers retrieved during executions of the behavior.">
<annotatedElement xmi:idref="ParameterEffectKind-read"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterEffectKind-update" name="update">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterEffectKind-update-_ownedComment.0" body="Indicates objects that are values of the parameter have values of their properties, or links in which they participate, or their classification changed during executions of the behavior.">
<annotatedElement xmi:idref="ParameterEffectKind-update"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ParameterEffectKind-delete" name="delete">
<ownedComment xmi:type="uml:Comment" xmi:id="ParameterEffectKind-delete-_ownedComment.0" body="Indicates objects that are values of the parameter do not exist after executions of the behavior are finished.">
<annotatedElement xmi:idref="ParameterEffectKind-delete"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_definingFeature_slot" name="A_definingFeature_slot">
<memberEnd xmi:idref="Slot-definingFeature"/>
<memberEnd xmi:idref="A_definingFeature_slot-slot"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_definingFeature_slot-slot" name="slot" type="Slot" association="A_definingFeature_slot">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_definingFeature_slot-slot-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_definingFeature_slot-slot-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_owningSlot" name="A_value_owningSlot">
<memberEnd xmi:idref="Slot-value"/>
<memberEnd xmi:idref="A_value_owningSlot-owningSlot"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_owningSlot-owningSlot" name="owningSlot" type="Slot" association="A_value_owningSlot">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_owningSlot-owningSlot-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_extendedSignature_redefinableTemplateSignature" name="A_extendedSignature_redefinableTemplateSignature">
<memberEnd xmi:idref="RedefinableTemplateSignature-extendedSignature"/>
<memberEnd xmi:idref="A_extendedSignature_redefinableTemplateSignature-redefinableTemplateSignature"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_extendedSignature_redefinableTemplateSignature-redefinableTemplateSignature" name="redefinableTemplateSignature" type="RedefinableTemplateSignature" association="A_extendedSignature_redefinableTemplateSignature">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_extendedSignature_redefinableTemplateSignature-redefinableTemplateSignature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_extendedSignature_redefinableTemplateSignature-redefinableTemplateSignature-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inheritedParameter_redefinableTemplateSignature" name="A_inheritedParameter_redefinableTemplateSignature" isDerived="true">
<memberEnd xmi:idref="RedefinableTemplateSignature-inheritedParameter"/>
<memberEnd xmi:idref="A_inheritedParameter_redefinableTemplateSignature-redefinableTemplateSignature"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_inheritedParameter_redefinableTemplateSignature-redefinableTemplateSignature" name="redefinableTemplateSignature" type="RedefinableTemplateSignature" association="A_inheritedParameter_redefinableTemplateSignature">
<subsettedProperty xmi:idref="A_parameter_templateSignature-templateSignature"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_inheritedParameter_redefinableTemplateSignature-redefinableTemplateSignature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_inheritedParameter_redefinableTemplateSignature-redefinableTemplateSignature-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinitionContext_redefinableElement" name="A_redefinitionContext_redefinableElement" isDerived="true">
<memberEnd xmi:idref="RedefinableElement-redefinitionContext"/>
<memberEnd xmi:idref="A_redefinitionContext_redefinableElement-redefinableElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinitionContext_redefinableElement-redefinableElement" name="redefinableElement" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="RedefinableElement" association="A_redefinitionContext_redefinableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinitionContext_redefinableElement-redefinableElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinitionContext_redefinableElement-redefinableElement-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedElement_redefinableElement" name="A_redefinedElement_redefinableElement" isDerived="true">
<memberEnd xmi:idref="RedefinableElement-redefinedElement"/>
<memberEnd xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedElement_redefinableElement-redefinableElement" name="redefinableElement" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="RedefinableElement" association="A_redefinedElement_redefinableElement">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedElement_redefinableElement-redefinableElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedElement_redefinableElement-redefinableElement-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_qualifier_associationEnd" name="A_qualifier_associationEnd">
<memberEnd xmi:idref="Property-qualifier"/>
<memberEnd xmi:idref="Property-associationEnd"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedProperty_property" name="A_redefinedProperty_property">
<memberEnd xmi:idref="Property-redefinedProperty"/>
<memberEnd xmi:idref="A_redefinedProperty_property-property"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedProperty_property-property" name="property" type="Property" association="A_redefinedProperty_property">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedProperty_property-property-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedProperty_property-property-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_defaultValue_owningProperty" name="A_defaultValue_owningProperty">
<memberEnd xmi:idref="Property-defaultValue"/>
<memberEnd xmi:idref="A_defaultValue_owningProperty-owningProperty"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_defaultValue_owningProperty-owningProperty" name="owningProperty" type="Property" association="A_defaultValue_owningProperty">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_defaultValue_owningProperty-owningProperty-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_opposite_property" name="A_opposite_property" isDerived="true">
<memberEnd xmi:idref="Property-opposite"/>
<memberEnd xmi:idref="A_opposite_property-property"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_opposite_property-property" name="property" type="Property" association="A_opposite_property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_opposite_property-property-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_subsettedProperty_property" name="A_subsettedProperty_property">
<memberEnd xmi:idref="Property-subsettedProperty"/>
<memberEnd xmi:idref="A_subsettedProperty_property-property"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_subsettedProperty_property-property" name="property" type="Property" association="A_subsettedProperty_property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_subsettedProperty_property-property-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_subsettedProperty_property-property-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_condition_parameterSet" name="A_condition_parameterSet">
<memberEnd xmi:idref="ParameterSet-condition"/>
<memberEnd xmi:idref="A_condition_parameterSet-parameterSet"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_condition_parameterSet-parameterSet" name="parameterSet" type="ParameterSet" association="A_condition_parameterSet">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_condition_parameterSet-parameterSet-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_parameterSet_parameter" name="A_parameterSet_parameter">
<memberEnd xmi:idref="Parameter-parameterSet"/>
<memberEnd xmi:idref="ParameterSet-parameter"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_defaultValue_owningParameter" name="A_defaultValue_owningParameter">
<memberEnd xmi:idref="Parameter-defaultValue"/>
<memberEnd xmi:idref="A_defaultValue_owningParameter-owningParameter"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_defaultValue_owningParameter-owningParameter" name="owningParameter" type="Parameter" association="A_defaultValue_owningParameter">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_defaultValue_owningParameter-owningParameter-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_type_operation" name="A_type_operation" isDerived="true">
<memberEnd xmi:idref="Operation-type"/>
<memberEnd xmi:idref="A_type_operation-operation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_type_operation-operation" name="operation" type="Operation" association="A_type_operation">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_type_operation-operation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_type_operation-operation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_operation_templateParameter_parameteredElement" name="A_operation_templateParameter_parameteredElement">
<memberEnd xmi:idref="Operation-templateParameter"/>
<memberEnd xmi:idref="OperationTemplateParameter-parameteredElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_bodyCondition_bodyContext" name="A_bodyCondition_bodyContext">
<memberEnd xmi:idref="Operation-bodyCondition"/>
<memberEnd xmi:idref="A_bodyCondition_bodyContext-bodyContext"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_bodyCondition_bodyContext-bodyContext" name="bodyContext" type="Operation" association="A_bodyCondition_bodyContext">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_bodyCondition_bodyContext-bodyContext-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_postcondition_postContext" name="A_postcondition_postContext">
<memberEnd xmi:idref="Operation-postcondition"/>
<memberEnd xmi:idref="A_postcondition_postContext-postContext"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_postcondition_postContext-postContext" name="postContext" type="Operation" association="A_postcondition_postContext">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_postcondition_postContext-postContext-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedOperation_operation" name="A_redefinedOperation_operation">
<memberEnd xmi:idref="Operation-redefinedOperation"/>
<memberEnd xmi:idref="A_redefinedOperation_operation-operation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedOperation_operation-operation" name="operation" type="Operation" association="A_redefinedOperation_operation">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedOperation_operation-operation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedOperation_operation-operation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_raisedException_operation" name="A_raisedException_operation">
<memberEnd xmi:idref="Operation-raisedException"/>
<memberEnd xmi:idref="A_raisedException_operation-operation"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_raisedException_operation-operation" name="operation" type="Operation" association="A_raisedException_operation">
<subsettedProperty xmi:idref="A_raisedException_behavioralFeature-behavioralFeature"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_raisedException_operation-operation-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_raisedException_operation-operation-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_precondition_preContext" name="A_precondition_preContext">
<memberEnd xmi:idref="Operation-precondition"/>
<memberEnd xmi:idref="A_precondition_preContext-preContext"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_precondition_preContext-preContext" name="preContext" type="Operation" association="A_precondition_preContext">
<subsettedProperty xmi:idref="Constraint-context"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_precondition_preContext-preContext-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameter_operation" name="A_ownedParameter_operation">
<memberEnd xmi:idref="Operation-ownedParameter"/>
<memberEnd xmi:idref="Parameter-operation"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_instance_instanceValue" name="A_instance_instanceValue">
<memberEnd xmi:idref="InstanceValue-instance"/>
<memberEnd xmi:idref="A_instance_instanceValue-instanceValue"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_instance_instanceValue-instanceValue" name="instanceValue" type="InstanceValue" association="A_instance_instanceValue">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_instance_instanceValue-instanceValue-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_instance_instanceValue-instanceValue-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_instanceSpecification" name="A_classifier_instanceSpecification">
<memberEnd xmi:idref="InstanceSpecification-classifier"/>
<memberEnd xmi:idref="A_classifier_instanceSpecification-instanceSpecification"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifier_instanceSpecification-instanceSpecification" name="instanceSpecification" type="InstanceSpecification" association="A_classifier_instanceSpecification">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifier_instanceSpecification-instanceSpecification-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_classifier_instanceSpecification-instanceSpecification-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_slot_owningInstance" name="A_slot_owningInstance">
<memberEnd xmi:idref="InstanceSpecification-slot"/>
<memberEnd xmi:idref="Slot-owningInstance"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_specification_owningInstanceSpec" name="A_specification_owningInstanceSpec">
<memberEnd xmi:idref="InstanceSpecification-specification"/>
<memberEnd xmi:idref="A_specification_owningInstanceSpec-owningInstanceSpec"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_specification_owningInstanceSpec-owningInstanceSpec" name="owningInstanceSpec" type="InstanceSpecification" association="A_specification_owningInstanceSpec">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_specification_owningInstanceSpec-owningInstanceSpec-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_generalizationSet_generalization" name="A_generalizationSet_generalization">
<memberEnd xmi:idref="Generalization-generalizationSet"/>
<memberEnd xmi:idref="GeneralizationSet-generalization"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_general_generalization" name="A_general_generalization">
<memberEnd xmi:idref="Generalization-general"/>
<memberEnd xmi:idref="A_general_generalization-generalization"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_general_generalization-generalization" name="generalization" type="Generalization" association="A_general_generalization">
<subsettedProperty xmi:idref="A_target_directedRelationship-directedRelationship"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_general_generalization-generalization-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_general_generalization-generalization-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_constrainingClassifier_classifierTemplateParameter" name="A_constrainingClassifier_classifierTemplateParameter">
<memberEnd xmi:idref="ClassifierTemplateParameter-constrainingClassifier"/>
<memberEnd xmi:idref="A_constrainingClassifier_classifierTemplateParameter-classifierTemplateParameter"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_constrainingClassifier_classifierTemplateParameter-classifierTemplateParameter" name="classifierTemplateParameter" type="ClassifierTemplateParameter" association="A_constrainingClassifier_classifierTemplateParameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_constrainingClassifier_classifierTemplateParameter-classifierTemplateParameter-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_constrainingClassifier_classifierTemplateParameter-classifierTemplateParameter-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_templateParameter_parameteredElement" name="A_classifier_templateParameter_parameteredElement">
<memberEnd xmi:idref="Classifier-templateParameter"/>
<memberEnd xmi:idref="ClassifierTemplateParameter-parameteredElement"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_powertypeExtent_powertype" name="A_powertypeExtent_powertype">
<memberEnd xmi:idref="Classifier-powertypeExtent"/>
<memberEnd xmi:idref="GeneralizationSet-powertype"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_generalization_specific" name="A_generalization_specific">
<memberEnd xmi:idref="Classifier-generalization"/>
<memberEnd xmi:idref="Generalization-specific"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_general_classifier" name="A_general_classifier" isDerived="true">
<memberEnd xmi:idref="Classifier-general"/>
<memberEnd xmi:idref="A_general_classifier-classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_general_classifier-classifier" name="classifier" type="Classifier" association="A_general_classifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_general_classifier-classifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_general_classifier-classifier-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_feature_featuringClassifier" name="A_feature_featuringClassifier" isDerived="true">
<memberEnd xmi:idref="Classifier-feature"/>
<memberEnd xmi:idref="Feature-featuringClassifier"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_substitution_substitutingClassifier" name="A_substitution_substitutingClassifier">
<memberEnd xmi:idref="Classifier-substitution"/>
<memberEnd xmi:idref="Substitution-substitutingClassifier"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_representation_classifier" name="A_representation_classifier">
<memberEnd xmi:idref="Classifier-representation"/>
<memberEnd xmi:idref="A_representation_classifier-classifier"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_representation_classifier-_generalization.0" general="A_collaborationUse_classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_representation_classifier-classifier" name="classifier" type="Classifier" association="A_representation_classifier">
<redefinedProperty xmi:idref="A_collaborationUse_classifier-classifier"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_representation_classifier-classifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedTemplateSignature_classifier" name="A_ownedTemplateSignature_classifier">
<memberEnd xmi:idref="Classifier-ownedTemplateSignature"/>
<memberEnd xmi:idref="RedefinableTemplateSignature-classifier"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inheritedMember_inheritingClassifier" name="A_inheritedMember_inheritingClassifier" isDerived="true">
<memberEnd xmi:idref="Classifier-inheritedMember"/>
<memberEnd xmi:idref="A_inheritedMember_inheritingClassifier-inheritingClassifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_inheritedMember_inheritingClassifier-inheritingClassifier" name="inheritingClassifier" type="Classifier" association="A_inheritedMember_inheritingClassifier">
<subsettedProperty xmi:idref="A_member_memberNamespace-memberNamespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_inheritedMember_inheritingClassifier-inheritingClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_inheritedMember_inheritingClassifier-inheritingClassifier-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_redefinedClassifier_classifier" name="A_redefinedClassifier_classifier">
<memberEnd xmi:idref="Classifier-redefinedClassifier"/>
<memberEnd xmi:idref="A_redefinedClassifier_classifier-classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_redefinedClassifier_classifier-classifier" name="classifier" type="Classifier" association="A_redefinedClassifier_classifier">
<subsettedProperty xmi:idref="A_redefinedElement_redefinableElement-redefinableElement"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_redefinedClassifier_classifier-classifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_redefinedClassifier_classifier-classifier-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_collaborationUse_classifier" name="A_collaborationUse_classifier">
<memberEnd xmi:idref="Classifier-collaborationUse"/>
<memberEnd xmi:idref="A_collaborationUse_classifier-classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_collaborationUse_classifier-classifier" name="classifier" type="Classifier" association="A_collaborationUse_classifier">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_collaborationUse_classifier-classifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_attribute_classifier" name="A_attribute_classifier" isDerived="true">
<memberEnd xmi:idref="Classifier-attribute"/>
<memberEnd xmi:idref="A_attribute_classifier-classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_attribute_classifier-classifier" name="classifier" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Classifier" association="A_attribute_classifier">
<subsettedProperty xmi:idref="Feature-featuringClassifier"/>
<subsettedProperty xmi:idref="RedefinableElement-redefinitionContext"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_attribute_classifier-classifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedUseCase_classifier" name="A_ownedUseCase_classifier">
<memberEnd xmi:idref="Classifier-ownedUseCase"/>
<memberEnd xmi:idref="A_ownedUseCase_classifier-classifier"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedUseCase_classifier-classifier" name="classifier" type="Classifier" association="A_ownedUseCase_classifier">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedUseCase_classifier-classifier-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameter_ownerFormalParam" name="A_ownedParameter_ownerFormalParam">
<memberEnd xmi:idref="BehavioralFeature-ownedParameter"/>
<memberEnd xmi:idref="A_ownedParameter_ownerFormalParam-ownerFormalParam"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedParameter_ownerFormalParam-ownerFormalParam" name="ownerFormalParam" type="BehavioralFeature" association="A_ownedParameter_ownerFormalParam">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedParameter_ownerFormalParam-ownerFormalParam-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_raisedException_behavioralFeature" name="A_raisedException_behavioralFeature">
<memberEnd xmi:idref="BehavioralFeature-raisedException"/>
<memberEnd xmi:idref="A_raisedException_behavioralFeature-behavioralFeature"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_raisedException_behavioralFeature-behavioralFeature" name="behavioralFeature" type="BehavioralFeature" association="A_raisedException_behavioralFeature">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_raisedException_behavioralFeature-behavioralFeature-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_raisedException_behavioralFeature-behavioralFeature-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_ownedParameterSet_behavioralFeature" name="A_ownedParameterSet_behavioralFeature">
<memberEnd xmi:idref="BehavioralFeature-ownedParameterSet"/>
<memberEnd xmi:idref="A_ownedParameterSet_behavioralFeature-behavioralFeature"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_ownedParameterSet_behavioralFeature-behavioralFeature" name="behavioralFeature" type="BehavioralFeature" association="A_ownedParameterSet_behavioralFeature">
<subsettedProperty xmi:idref="NamedElement-namespace"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_ownedParameterSet_behavioralFeature-behavioralFeature-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_method_specification" name="A_method_specification">
<memberEnd xmi:idref="BehavioralFeature-method"/>
<memberEnd xmi:idref="Behavior-specification"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_contract_substitution" name="A_contract_substitution">
<memberEnd xmi:idref="Substitution-contract"/>
<memberEnd xmi:idref="A_contract_substitution-substitution"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_contract_substitution-substitution" name="substitution" type="Substitution" association="A_contract_substitution">
<subsettedProperty xmi:idref="A_supplier_supplierDependency-supplierDependency"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_contract_substitution-substitution-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_contract_substitution-substitution-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="Actions" name="Actions">
<packageImport xmi:type="uml:PackageImport" xmi:id="Actions-_packageImport.0" importedPackage="Classification"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Actions-_packageImport.1" importedPackage="StructuredClassifiers"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Actions-_packageImport.2" importedPackage="CommonStructure"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Actions-_packageImport.3" importedPackage="Activities"/>
<packageImport xmi:type="uml:PackageImport" xmi:id="Actions-_packageImport.4" importedPackage="CommonBehavior"/>
<packagedElement xmi:type="uml:Class" xmi:id="ValueSpecificationAction" name="ValueSpecificationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecificationAction-_ownedComment.0" body="A ValueSpecificationAction is an Action that evaluates a ValueSpecification and provides a result.">
<annotatedElement xmi:idref="ValueSpecificationAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecificationAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ValueSpecificationAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecificationAction-multiplicity-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1">
<annotatedElement xmi:idref="ValueSpecificationAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecificationAction-multiplicity-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValueSpecificationAction-compatible_type" name="compatible_type">
<constrainedElement xmi:idref="ValueSpecificationAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecificationAction-compatible_type-_ownedComment.0" body="The type of the value ValueSpecification must conform to the type of the result OutputPin.">
<annotatedElement xmi:idref="ValueSpecificationAction-compatible_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValueSpecificationAction-compatible_type-_specification">
<body>value.type.conformsTo(result.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ValueSpecificationAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ValueSpecificationAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_valueSpecificationAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecificationAction-result-_ownedComment.0" body="The OutputPin on which the result value is placed.">
<annotatedElement xmi:idref="ValueSpecificationAction-result"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ValueSpecificationAction-value" name="value" aggregation="composite" type="ValueSpecification" association="A_value_valueSpecificationAction">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValueSpecificationAction-value-_ownedComment.0" body="The ValueSpecification to be evaluated.">
<annotatedElement xmi:idref="ValueSpecificationAction-value"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="VariableAction" name="VariableAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="VariableAction-_ownedComment.0" body="VariableAction is an abstract class for Actions that operate on a specified Variable.">
<annotatedElement xmi:idref="VariableAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="VariableAction-scope_of_variable" name="scope_of_variable">
<constrainedElement xmi:idref="VariableAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="VariableAction-scope_of_variable-_ownedComment.0" body="The VariableAction must be in the scope of the variable.">
<annotatedElement xmi:idref="VariableAction-scope_of_variable"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="VariableAction-scope_of_variable-_specification">
<body>variable.isAccessibleBy(self)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="VariableAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="VariableAction-variable" name="variable" type="Variable" association="A_variable_variableAction">
<ownedComment xmi:type="uml:Comment" xmi:id="VariableAction-variable-_ownedComment.0" body="The Variable to be read or written.">
<annotatedElement xmi:idref="VariableAction-variable"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="WriteLinkAction" name="WriteLinkAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="WriteLinkAction-_ownedComment.0" body="WriteLinkAction is an abstract class for LinkActions that create and destroy links.">
<annotatedElement xmi:idref="WriteLinkAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteLinkAction-allow_access" name="allow_access">
<constrainedElement xmi:idref="WriteLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteLinkAction-allow_access-_ownedComment.0" body="The visibility of at least one end must allow access from the context Classifier of the WriteLinkAction.">
<annotatedElement xmi:idref="WriteLinkAction-allow_access"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteLinkAction-allow_access-_specification">
<body>endData.end->exists(end | end.type=_'context' or end.visibility=VisibilityKind::public or end.visibility=VisibilityKind::protected and endData.end->exists(other | other<>end and _'context'.conformsTo(other.type.oclAsType(Classifier)))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="WriteLinkAction-_generalization.0" general="LinkAction"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="WriteStructuralFeatureAction" name="WriteStructuralFeatureAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-_ownedComment.0" body="WriteStructuralFeatureAction is an abstract class for StructuralFeatureActions that change StructuralFeature values.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteStructuralFeatureAction-multiplicity_of_result" name="multiplicity_of_result">
<constrainedElement xmi:idref="WriteStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-multiplicity_of_result-_ownedComment.0" body="The multiplicity of the result OutputPin must be 1..1.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-multiplicity_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteStructuralFeatureAction-multiplicity_of_result-_specification">
<body>result <> null implies result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteStructuralFeatureAction-type_of_value" name="type_of_value">
<constrainedElement xmi:idref="WriteStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-type_of_value-_ownedComment.0" body="The type of the value InputPin must conform to the type of the structuralFeature.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-type_of_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteStructuralFeatureAction-type_of_value-_specification">
<body>value <> null implies value.type.conformsTo(structuralFeature.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteStructuralFeatureAction-multiplicity_of_value" name="multiplicity_of_value">
<constrainedElement xmi:idref="WriteStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-multiplicity_of_value-_ownedComment.0" body="The multiplicity of the value InputPin is 1..1.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-multiplicity_of_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteStructuralFeatureAction-multiplicity_of_value-_specification">
<body>value<>null implies value.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteStructuralFeatureAction-type_of_result" name="type_of_result">
<constrainedElement xmi:idref="WriteStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-type_of_result-_ownedComment.0" body="The type of the result OutputPin is the same as the type of the inherited object InputPin.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-type_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteStructuralFeatureAction-type_of_result-_specification">
<body>result <> null implies result.type = object.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="WriteStructuralFeatureAction-_generalization.0" general="StructuralFeatureAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="WriteStructuralFeatureAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_writeStructuralFeatureAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-result-_ownedComment.0" body="The OutputPin on which is put the input object as modified by the WriteStructuralFeatureAction.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="WriteStructuralFeatureAction-result-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="WriteStructuralFeatureAction-value" name="value" aggregation="composite" type="InputPin" association="A_value_writeStructuralFeatureAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteStructuralFeatureAction-value-_ownedComment.0" body="The InputPin that provides the value to be added or removed from the StructuralFeature.">
<annotatedElement xmi:idref="WriteStructuralFeatureAction-value"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="WriteStructuralFeatureAction-value-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="WriteVariableAction" name="WriteVariableAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="WriteVariableAction-_ownedComment.0" body="WriteVariableAction is an abstract class for VariableActions that change Variable values.">
<annotatedElement xmi:idref="WriteVariableAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteVariableAction-value_type" name="value_type">
<constrainedElement xmi:idref="WriteVariableAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteVariableAction-value_type-_ownedComment.0" body="The type of the value InputPin must conform to the type of the variable.">
<annotatedElement xmi:idref="WriteVariableAction-value_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteVariableAction-value_type-_specification">
<body>value <> null implies value.type.conformsTo(variable.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="WriteVariableAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="WriteVariableAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteVariableAction-multiplicity-_ownedComment.0" body="The multiplicity of the value InputPin is 1..1.">
<annotatedElement xmi:idref="WriteVariableAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="WriteVariableAction-multiplicity-_specification">
<body>value<>null implies value.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="WriteVariableAction-_generalization.0" general="VariableAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="WriteVariableAction-value" name="value" aggregation="composite" type="InputPin" association="A_value_writeVariableAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="WriteVariableAction-value-_ownedComment.0" body="The InputPin that gives the value to be added or removed from the Variable.">
<annotatedElement xmi:idref="WriteVariableAction-value"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="WriteVariableAction-value-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Enumeration" xmi:id="ExpansionKind" name="ExpansionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionKind-_ownedComment.0" body="ExpansionKind is an enumeration type used to specify how an ExpansionRegion executes its contents.">
<annotatedElement xmi:idref="ExpansionKind"/>
</ownedComment>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ExpansionKind-parallel" name="parallel">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionKind-parallel-_ownedComment.0" body="The content of the ExpansionRegion is executed concurrently for the elements of the input collections.">
<annotatedElement xmi:idref="ExpansionKind-parallel"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ExpansionKind-iterative" name="iterative">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionKind-iterative-_ownedComment.0" body="The content of the ExpansionRegion is executed iteratively for the elements of the input collections, in the order of the input elements, if the collections are ordered.">
<annotatedElement xmi:idref="ExpansionKind-iterative"/>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="ExpansionKind-stream" name="stream">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionKind-stream-_ownedComment.0" body="A stream of input collection elements flows into a single execution of the content of the ExpansionRegion, in the order of the collection elements if the input collections are ordered.">
<annotatedElement xmi:idref="ExpansionKind-stream"/>
</ownedComment>
</ownedLiteral>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="AcceptCallAction" name="AcceptCallAction">
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptCallAction-_ownedComment.0" body="An AcceptCallAction is an AcceptEventAction that handles the receipt of a synchronous call request. In addition to the values from the Operation input parameters, the Action produces an output that is needed later to supply the information to the ReplyAction necessary to return control to the caller. An AcceptCallAction is for synchronous calls. If it is used to handle an asynchronous call, execution of the subsequent ReplyAction will complete immediately with no effect.">
<annotatedElement xmi:idref="AcceptCallAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptCallAction-result_pins" name="result_pins">
<constrainedElement xmi:idref="AcceptCallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptCallAction-result_pins-_ownedComment.0" body="The number of result OutputPins must be the same as the number of input (in and inout) ownedParameters of the Operation specified by the trigger Event. The type, ordering and multiplicity of each result OutputPin must be consistent with the corresponding input Parameter.">
<annotatedElement xmi:idref="AcceptCallAction-result_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptCallAction-result_pins-_specification">
<body>let parameter: OrderedSet(Parameter) = trigger.event->asSequence()->first().oclAsType(CallEvent).operation.inputParameters() in result->size() = parameter->size() and Sequence{1..result->size()}->forAll(i | parameter->at(i).type.conformsTo(result->at(i).type) and parameter->at(i).isOrdered = result->at(i).isOrdered and parameter->at(i).compatibleWith(result->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptCallAction-trigger_call_event" name="trigger_call_event">
<constrainedElement xmi:idref="AcceptCallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptCallAction-trigger_call_event-_ownedComment.0" body="The action must have exactly one trigger, which must be for a CallEvent.">
<annotatedElement xmi:idref="AcceptCallAction-trigger_call_event"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptCallAction-trigger_call_event-_specification">
<body>trigger->size()=1 and trigger->asSequence()->first().event.oclIsKindOf(CallEvent) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptCallAction-unmarshall" name="unmarshall">
<constrainedElement xmi:idref="AcceptCallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptCallAction-unmarshall-_ownedComment.0" body="isUnmrashall must be true for an AcceptCallAction.">
<annotatedElement xmi:idref="AcceptCallAction-unmarshall"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptCallAction-unmarshall-_specification">
<body>isUnmarshall = true</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="AcceptCallAction-_generalization.0" general="AcceptEventAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="AcceptCallAction-returnInformation" name="returnInformation" aggregation="composite" type="OutputPin" association="A_returnInformation_acceptCallAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptCallAction-returnInformation-_ownedComment.0" body="An OutputPin where a value is placed containing sufficient information to perform a subsequent ReplyAction and return control to the caller. The contents of this value are opaque. It can be passed and copied but it cannot be manipulated by the model.">
<annotatedElement xmi:idref="AcceptCallAction-returnInformation"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="AcceptEventAction" name="AcceptEventAction">
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-_ownedComment.0" body="An AcceptEventAction is an Action that waits for the occurrence of one or more specific Events.">
<annotatedElement xmi:idref="AcceptEventAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptEventAction-one_output_pin" name="one_output_pin">
<constrainedElement xmi:idref="AcceptEventAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-one_output_pin-_ownedComment.0" body="If isUnmarshall=false and any of the triggers are for SignalEvents or TimeEvents, there must be exactly one result OutputPin with multiplicity 1..1.">
<annotatedElement xmi:idref="AcceptEventAction-one_output_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptEventAction-one_output_pin-_specification">
<body>not isUnmarshall and trigger->exists(event.oclIsKindOf(SignalEvent) or event.oclIsKindOf(TimeEvent)) implies output->size() = 1 and output->first().is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptEventAction-no_input_pins" name="no_input_pins">
<constrainedElement xmi:idref="AcceptEventAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-no_input_pins-_ownedComment.0" body="AcceptEventActions may have no input pins.">
<annotatedElement xmi:idref="AcceptEventAction-no_input_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptEventAction-no_input_pins-_specification">
<body>input->size() = 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptEventAction-no_output_pins" name="no_output_pins">
<constrainedElement xmi:idref="AcceptEventAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-no_output_pins-_ownedComment.0" body="There are no OutputPins if the trigger events are only ChangeEvents and/or CallEvents when this action is an instance of AcceptEventAction and not an instance of a descendant of AcceptEventAction (such as AcceptCallAction).">
<annotatedElement xmi:idref="AcceptEventAction-no_output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptEventAction-no_output_pins-_specification">
<body>(self.oclIsTypeOf(AcceptEventAction) and (trigger->forAll(event.oclIsKindOf(ChangeEvent) or event.oclIsKindOf(CallEvent)))) implies output->size() = 0</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptEventAction-unmarshall_signal_events" name="unmarshall_signal_events">
<constrainedElement xmi:idref="AcceptEventAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-unmarshall_signal_events-_ownedComment.0" body="If isUnmarshall is true (and this is not an AcceptCallAction), there must be exactly one trigger, which is for a SignalEvent. The number of result output pins must be the same as the number of attributes of the signal. The type and ordering of each result output pin must be the same as the corresponding attribute of the signal. The multiplicity of each result output pin must be compatible with the multiplicity of the corresponding attribute.">
<annotatedElement xmi:idref="AcceptEventAction-unmarshall_signal_events"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptEventAction-unmarshall_signal_events-_specification">
<body>isUnmarshall and self.oclIsTypeOf(AcceptEventAction) implies trigger->size()=1 and trigger->asSequence()->first().event.oclIsKindOf(SignalEvent) and let attribute: OrderedSet(Property) = trigger->asSequence()->first().event.oclAsType(SignalEvent).signal.allAttributes() in attribute->size()>0 and result->size() = attribute->size() and Sequence{1..result->size()}->forAll(i | result->at(i).type = attribute->at(i).type and result->at(i).isOrdered = attribute->at(i).isOrdered and result->at(i).includesMultiplicity(attribute->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AcceptEventAction-conforming_type" name="conforming_type">
<constrainedElement xmi:idref="AcceptEventAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-conforming_type-_ownedComment.0" body="If isUnmarshall=false and all the triggers are for SignalEvents, then the type of the single result OutputPin must either be null or all the signals must conform to it.">
<annotatedElement xmi:idref="AcceptEventAction-conforming_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AcceptEventAction-conforming_type-_specification">
<body>not isUnmarshall implies result->isEmpty() or let type: Type = result->first().type in type=null or (trigger->forAll(event.oclIsKindOf(SignalEvent)) and trigger.event.oclAsType(SignalEvent).signal->forAll(s | s.conformsTo(type)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="AcceptEventAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="AcceptEventAction-isUnmarshall" name="isUnmarshall">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-isUnmarshall-_ownedComment.0" body="Indicates whether there is a single OutputPin for a SignalEvent occurrence, or multiple OutputPins for attribute values of the instance of the Signal associated with a SignalEvent occurrence.">
<annotatedElement xmi:idref="AcceptEventAction-isUnmarshall"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="AcceptEventAction-isUnmarshall-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="AcceptEventAction-result" name="result" isOrdered="true" aggregation="composite" type="OutputPin" association="A_result_acceptEventAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-result-_ownedComment.0" body="OutputPins holding the values received from an Event occurrence.">
<annotatedElement xmi:idref="AcceptEventAction-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="AcceptEventAction-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="AcceptEventAction-result-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="AcceptEventAction-trigger" name="trigger" aggregation="composite" type="Trigger" association="A_trigger_acceptEventAction">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AcceptEventAction-trigger-_ownedComment.0" body="The Triggers specifying the Events of which the AcceptEventAction waits for occurrences.">
<annotatedElement xmi:idref="AcceptEventAction-trigger"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="AcceptEventAction-trigger-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Action" name="Action" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Action-_ownedComment.0" body="An Action is the fundamental unit of executable functionality. The execution of an Action represents some transformation or processing in the modeled system. Actions provide the ExecutableNodes within Activities and may also be used within Interactions.">
<annotatedElement xmi:idref="Action"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="Action-_generalization.0" general="ExecutableNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-context" name="context" isReadOnly="true" isDerived="true" type="Classifier" association="A_context_action">
<ownedComment xmi:type="uml:Comment" xmi:id="Action-context-_ownedComment.0" body="The context Classifier of the Behavior that contains this Action, or the Behavior itself if it has no context.">
<annotatedElement xmi:idref="Action-context"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-context-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-input" name="input" isOrdered="true" isReadOnly="true" aggregation="composite" isDerived="true" isDerivedUnion="true" type="InputPin" association="A_input_action">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Action-input-_ownedComment.0" body="The ordered set of InputPins representing the inputs to the Action.">
<annotatedElement xmi:idref="Action-input"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-input-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-input-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-isLocallyReentrant" name="isLocallyReentrant">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Action-isLocallyReentrant-_ownedComment.0" body="If true, the Action can begin a new, concurrent execution, even if there is already another execution of the Action ongoing. If false, the Action cannot begin a new execution until any previous execution has completed.">
<annotatedElement xmi:idref="Action-isLocallyReentrant"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Action-isLocallyReentrant-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-localPostcondition" name="localPostcondition" aggregation="composite" type="Constraint" association="A_localPostcondition_action">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Action-localPostcondition-_ownedComment.0" body="A Constraint that must be satisfied when execution of the Action is completed.">
<annotatedElement xmi:idref="Action-localPostcondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-localPostcondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-localPostcondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-localPrecondition" name="localPrecondition" aggregation="composite" type="Constraint" association="A_localPrecondition_action">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Action-localPrecondition-_ownedComment.0" body="A Constraint that must be satisfied when execution of the Action is started.">
<annotatedElement xmi:idref="Action-localPrecondition"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-localPrecondition-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-localPrecondition-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Action-output" name="output" isOrdered="true" isReadOnly="true" aggregation="composite" isDerived="true" isDerivedUnion="true" type="OutputPin" association="A_output_action">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Action-output-_ownedComment.0" body="The ordered set of OutputPins representing outputs from the Action.">
<annotatedElement xmi:idref="Action-output"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-output-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-output-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="Action-context.1" name="context" isQuery="true" bodyCondition="Action-context.1-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Action-context.1-_ownedComment.0" body="The derivation for the context property.">
<annotatedElement xmi:idref="Action-context.1"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Action-context.1-spec" name="spec">
<constrainedElement xmi:idref="Action-context.1"/>
<constrainedElement xmi:idref="Action-context"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Action-context.1-spec-_specification">
<body>result = (let behavior: Behavior = self.containingBehavior() in if behavior=null then null else if behavior._'context' = null then behavior else behavior._'context' endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Action-context.1-result" name="result" direction="return" type="Classifier">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-context.1-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Action-allActions" name="allActions" isQuery="true" bodyCondition="Action-allActions-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Action-allActions-_ownedComment.0" body="Return this Action and all Actions contained directly or indirectly in it. By default only the Action itself is returned, but the operation is overridden for StructuredActivityNodes.">
<annotatedElement xmi:idref="Action-allActions"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Action-allActions-spec" name="spec">
<constrainedElement xmi:idref="Action-allActions"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Action-allActions-spec-_specification">
<body>result = (self->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Action-allActions-result" name="result" direction="return" type="Action">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-allActions-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-allActions-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Action-allOwnedNodes" name="allOwnedNodes" isQuery="true" bodyCondition="Action-allOwnedNodes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="Action-allOwnedNodes-_ownedComment.0" body="Returns all the ActivityNodes directly or indirectly owned by this Action. This includes at least all the Pins of the Action.">
<annotatedElement xmi:idref="Action-allOwnedNodes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Action-allOwnedNodes-spec" name="spec">
<constrainedElement xmi:idref="Action-allOwnedNodes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Action-allOwnedNodes-spec-_specification">
<body>result = (input.oclAsType(Pin)->asSet()->union(output->asSet()))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Action-allOwnedNodes-result" name="result" direction="return" type="ActivityNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-allOwnedNodes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Action-allOwnedNodes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="Action-containingBehavior" name="containingBehavior" isQuery="true" bodyCondition="Action-containingBehavior-spec">
<ownedRule xmi:type="uml:Constraint" xmi:id="Action-containingBehavior-spec" name="spec">
<constrainedElement xmi:idref="Action-containingBehavior"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Action-containingBehavior-spec-_specification">
<body>result = (if inStructuredNode<>null then inStructuredNode.containingBehavior() else if activity<>null then activity else interaction endif endif )</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="Action-containingBehavior-result" name="result" direction="return" type="Behavior">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Action-containingBehavior-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ActionInputPin" name="ActionInputPin">
<ownedComment xmi:type="uml:Comment" xmi:id="ActionInputPin-_ownedComment.0" body="An ActionInputPin is a kind of InputPin that executes an Action to determine the values to input to another Action.">
<annotatedElement xmi:idref="ActionInputPin"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActionInputPin-input_pin" name="input_pin">
<constrainedElement xmi:idref="ActionInputPin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActionInputPin-input_pin-_ownedComment.0" body="The fromAction of an ActionInputPin must only have ActionInputPins as InputPins.">
<annotatedElement xmi:idref="ActionInputPin-input_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActionInputPin-input_pin-_specification">
<body>fromAction.input->forAll(oclIsKindOf(ActionInputPin))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActionInputPin-one_output_pin" name="one_output_pin">
<constrainedElement xmi:idref="ActionInputPin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActionInputPin-one_output_pin-_ownedComment.0" body="The fromAction of an ActionInputPin must have exactly one OutputPin.">
<annotatedElement xmi:idref="ActionInputPin-one_output_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActionInputPin-one_output_pin-_specification">
<body>fromAction.output->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ActionInputPin-no_control_or_object_flow" name="no_control_or_object_flow">
<constrainedElement xmi:idref="ActionInputPin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActionInputPin-no_control_or_object_flow-_ownedComment.0" body="The fromAction of an ActionInputPin cannot have ActivityEdges coming into or out of it or its Pins.">
<annotatedElement xmi:idref="ActionInputPin-no_control_or_object_flow"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ActionInputPin-no_control_or_object_flow-_specification">
<body>fromAction.incoming->union(outgoing)->isEmpty() and fromAction.input.incoming->isEmpty() and fromAction.output.outgoing->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ActionInputPin-_generalization.0" general="InputPin"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ActionInputPin-fromAction" name="fromAction" aggregation="composite" type="Action" association="A_fromAction_actionInputPin">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ActionInputPin-fromAction-_ownedComment.0" body="The Action used to provide the values of the ActionInputPin.">
<annotatedElement xmi:idref="ActionInputPin-fromAction"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="AddStructuralFeatureValueAction" name="AddStructuralFeatureValueAction">
<ownedComment xmi:type="uml:Comment" xmi:id="AddStructuralFeatureValueAction-_ownedComment.0" body="An AddStructuralFeatureValueAction is a WriteStructuralFeatureAction for adding values to a StructuralFeature.">
<annotatedElement xmi:idref="AddStructuralFeatureValueAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="AddStructuralFeatureValueAction-required_value" name="required_value">
<constrainedElement xmi:idref="AddStructuralFeatureValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddStructuralFeatureValueAction-required_value-_ownedComment.0" body="A value InputPin is required.">
<annotatedElement xmi:idref="AddStructuralFeatureValueAction-required_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AddStructuralFeatureValueAction-required_value-_specification">
<body>value<>null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AddStructuralFeatureValueAction-insertAt_pin" name="insertAt_pin">
<constrainedElement xmi:idref="AddStructuralFeatureValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddStructuralFeatureValueAction-insertAt_pin-_ownedComment.0" body="AddStructuralFeatureActions adding a value to ordered StructuralFeatures must have a single InputPin for the insertion point with type UnlimitedNatural and multiplicity of 1..1 if isReplaceAll=false, and must have no Input Pin for the insertion point when the StructuralFeature is unordered.">
<annotatedElement xmi:idref="AddStructuralFeatureValueAction-insertAt_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AddStructuralFeatureValueAction-insertAt_pin-_specification">
<body>if not structuralFeature.isOrdered then insertAt = null else not isReplaceAll implies insertAt<>null and insertAt->forAll(type=UnlimitedNatural and is(1,1.oclAsType(UnlimitedNatural))) endif </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="AddStructuralFeatureValueAction-_generalization.0" general="WriteStructuralFeatureAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="AddStructuralFeatureValueAction-insertAt" name="insertAt" aggregation="composite" type="InputPin" association="A_insertAt_addStructuralFeatureValueAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddStructuralFeatureValueAction-insertAt-_ownedComment.0" body="The InputPin that gives the position at which to insert the value in an ordered StructuralFeature. The type of the insertAt InputPin is UnlimitedNatural, but the value cannot be zero. It is omitted for unordered StructuralFeatures.">
<annotatedElement xmi:idref="AddStructuralFeatureValueAction-insertAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="AddStructuralFeatureValueAction-insertAt-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="AddStructuralFeatureValueAction-isReplaceAll" name="isReplaceAll">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddStructuralFeatureValueAction-isReplaceAll-_ownedComment.0" body="Specifies whether existing values of the StructuralFeature should be removed before adding the new value.">
<annotatedElement xmi:idref="AddStructuralFeatureValueAction-isReplaceAll"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="AddStructuralFeatureValueAction-isReplaceAll-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="AddVariableValueAction" name="AddVariableValueAction">
<ownedComment xmi:type="uml:Comment" xmi:id="AddVariableValueAction-_ownedComment.0" body="An AddVariableValueAction is a WriteVariableAction for adding values to a Variable.">
<annotatedElement xmi:idref="AddVariableValueAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="AddVariableValueAction-required_value" name="required_value">
<constrainedElement xmi:idref="AddVariableValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddVariableValueAction-required_value-_ownedComment.0" body="A value InputPin is required.">
<annotatedElement xmi:idref="AddVariableValueAction-required_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AddVariableValueAction-required_value-_specification">
<body>value <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="AddVariableValueAction-insertAt_pin" name="insertAt_pin">
<constrainedElement xmi:idref="AddVariableValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddVariableValueAction-insertAt_pin-_ownedComment.0" body="AddVariableValueActions for ordered Variables must have a single InputPin for the insertion point with type UnlimtedNatural and multiplicity of 1..1 if isReplaceAll=false, otherwise the Action has no InputPin for the insertion point.">
<annotatedElement xmi:idref="AddVariableValueAction-insertAt_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="AddVariableValueAction-insertAt_pin-_specification">
<body>if not variable.isOrdered then insertAt = null else not isReplaceAll implies insertAt<>null and insertAt->forAll(type=UnlimitedNatural and is(1,1.oclAsType(UnlimitedNatural))) endif </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="AddVariableValueAction-_generalization.0" general="WriteVariableAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="AddVariableValueAction-insertAt" name="insertAt" aggregation="composite" type="InputPin" association="A_insertAt_addVariableValueAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddVariableValueAction-insertAt-_ownedComment.0" body="The InputPin that gives the position at which to insert a new value or move an existing value in ordered Variables. The type of the insertAt InputPin is UnlimitedNatural, but the value cannot be zero. It is omitted for unordered Variables.">
<annotatedElement xmi:idref="AddVariableValueAction-insertAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="AddVariableValueAction-insertAt-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="AddVariableValueAction-isReplaceAll" name="isReplaceAll">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="AddVariableValueAction-isReplaceAll-_ownedComment.0" body="Specifies whether existing values of the Variable should be removed before adding the new value.">
<annotatedElement xmi:idref="AddVariableValueAction-isReplaceAll"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="AddVariableValueAction-isReplaceAll-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="BroadcastSignalAction" name="BroadcastSignalAction">
<ownedComment xmi:type="uml:Comment" xmi:id="BroadcastSignalAction-_ownedComment.0" body="A BroadcastSignalAction is an InvocationAction that transmits a Signal instance to all the potential target objects in the system. Values from the argument InputPins are used to provide values for the attributes of the Signal. The requestor continues execution immediately after the Signal instances are sent out and cannot receive reply values.">
<annotatedElement xmi:idref="BroadcastSignalAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="BroadcastSignalAction-number_of_arguments" name="number_of_arguments">
<constrainedElement xmi:idref="BroadcastSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BroadcastSignalAction-number_of_arguments-_ownedComment.0" body="The number of argument InputPins must be the same as the number of attributes in the signal.">
<annotatedElement xmi:idref="BroadcastSignalAction-number_of_arguments"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BroadcastSignalAction-number_of_arguments-_specification">
<body>argument->size() = signal.allAttributes()->size()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="BroadcastSignalAction-type_ordering_multiplicity" name="type_ordering_multiplicity">
<constrainedElement xmi:idref="BroadcastSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BroadcastSignalAction-type_ordering_multiplicity-_ownedComment.0" body="The type, ordering, and multiplicity of an argument InputPin must be the same as the corresponding attribute of the signal.">
<annotatedElement xmi:idref="BroadcastSignalAction-type_ordering_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BroadcastSignalAction-type_ordering_multiplicity-_specification">
<body>let attribute: OrderedSet(Property) = signal.allAttributes() in Sequence{1..argument->size()}->forAll(i | argument->at(i).type.conformsTo(attribute->at(i).type) and argument->at(i).isOrdered = attribute->at(i).isOrdered and argument->at(i).compatibleWith(attribute->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="BroadcastSignalAction-no_onport" name="no_onport">
<constrainedElement xmi:idref="BroadcastSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="BroadcastSignalAction-no_onport-_ownedComment.0" body="A BroadcaseSignalAction may not specify onPort.">
<annotatedElement xmi:idref="BroadcastSignalAction-no_onport"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="BroadcastSignalAction-no_onport-_specification">
<body>onPort=null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="BroadcastSignalAction-_generalization.0" general="InvocationAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="BroadcastSignalAction-signal" name="signal" type="Signal" association="A_signal_broadcastSignalAction">
<ownedComment xmi:type="uml:Comment" xmi:id="BroadcastSignalAction-signal-_ownedComment.0" body="The Signal whose instances are to be sent.">
<annotatedElement xmi:idref="BroadcastSignalAction-signal"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CallAction" name="CallAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-_ownedComment.0" body="CallAction is an abstract class for Actions that invoke a Behavior with given argument values and (if the invocation is synchronous) receive reply values.">
<annotatedElement xmi:idref="CallAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallAction-argument_pins" name="argument_pins">
<constrainedElement xmi:idref="CallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-argument_pins-_ownedComment.0" body="The number of argument InputPins must be the same as the number of input (in and inout) ownedParameters of the called Behavior or Operation. The type, ordering and multiplicity of each argument InputPin must be consistent with the corresponding input Parameter.">
<annotatedElement xmi:idref="CallAction-argument_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallAction-argument_pins-_specification">
<body>let parameter: OrderedSet(Parameter) = self.inputParameters() in argument->size() = parameter->size() and Sequence{1..argument->size()}->forAll(i | argument->at(i).type.conformsTo(parameter->at(i).type) and argument->at(i).isOrdered = parameter->at(i).isOrdered and argument->at(i).compatibleWith(parameter->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallAction-result_pins" name="result_pins">
<constrainedElement xmi:idref="CallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-result_pins-_ownedComment.0" body="The number of result OutputPins must be the same as the number of output (inout, out and return) ownedParameters of the called Behavior or Operation. The type, ordering and multiplicity of each result OutputPin must be consistent with the corresponding input Parameter.">
<annotatedElement xmi:idref="CallAction-result_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallAction-result_pins-_specification">
<body>let parameter: OrderedSet(Parameter) = self.outputParameters() in result->size() = parameter->size() and Sequence{1..result->size()}->forAll(i | parameter->at(i).type.conformsTo(result->at(i).type) and parameter->at(i).isOrdered = result->at(i).isOrdered and parameter->at(i).compatibleWith(result->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallAction-synchronous_call" name="synchronous_call">
<constrainedElement xmi:idref="CallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-synchronous_call-_ownedComment.0" body="Only synchronous CallActions can have result OutputPins.">
<annotatedElement xmi:idref="CallAction-synchronous_call"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallAction-synchronous_call-_specification">
<body>result->notEmpty() implies isSynchronous</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CallAction-_generalization.0" general="InvocationAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallAction-isSynchronous" name="isSynchronous">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-isSynchronous-_ownedComment.0" body="If true, the call is synchronous and the caller waits for completion of the invoked Behavior. If false, the call is asynchronous and the caller proceeds immediately and cannot receive return values.">
<annotatedElement xmi:idref="CallAction-isSynchronous"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="CallAction-isSynchronous-_defaultValue" value="true"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallAction-result" name="result" isOrdered="true" aggregation="composite" type="OutputPin" association="A_result_callAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-result-_ownedComment.0" body="The OutputPins on which the reply values from the invocation are placed (if the call is synchronous).">
<annotatedElement xmi:idref="CallAction-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallAction-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallAction-result-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallAction-inputParameters" name="inputParameters" isAbstract="true" isQuery="true">
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-inputParameters-_ownedComment.0" body="Return the in and inout ownedParameters of the Behavior or Operation being called. (This operation is abstract and should be overridden by subclasses of CallAction.)">
<annotatedElement xmi:idref="CallAction-inputParameters"/>
</ownedComment>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallAction-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallAction-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallAction-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallAction-outputParameters" name="outputParameters" isAbstract="true" isQuery="true">
<ownedComment xmi:type="uml:Comment" xmi:id="CallAction-outputParameters-_ownedComment.0" body="Return the inout, out and return ownedParameters of the Behavior or Operation being called. (This operation is abstract and should be overridden by subclasses of CallAction.)">
<annotatedElement xmi:idref="CallAction-outputParameters"/>
</ownedComment>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallAction-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallAction-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallAction-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CallBehaviorAction" name="CallBehaviorAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CallBehaviorAction-_ownedComment.0" body="A CallBehaviorAction is a CallAction that invokes a Behavior directly. The argument values of the CallBehaviorAction are passed on the input Parameters of the invoked Behavior. If the call is synchronous, the execution of the CallBehaviorAction waits until the execution of the invoked Behavior completes and the values of output Parameters of the Behavior are placed on the result OutputPins. If the call is asynchronous, the CallBehaviorAction completes immediately and no results values can be provided.">
<annotatedElement xmi:idref="CallBehaviorAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallBehaviorAction-no_onport" name="no_onport">
<constrainedElement xmi:idref="CallBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallBehaviorAction-no_onport-_ownedComment.0" body="A CallBehaviorAction may not specify onPort.">
<annotatedElement xmi:idref="CallBehaviorAction-no_onport"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallBehaviorAction-no_onport-_specification">
<body>onPort=null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CallBehaviorAction-_generalization.0" general="CallAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallBehaviorAction-behavior" name="behavior" type="Behavior" association="A_behavior_callBehaviorAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CallBehaviorAction-behavior-_ownedComment.0" body="The Behavior being invoked.">
<annotatedElement xmi:idref="CallBehaviorAction-behavior"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallBehaviorAction-outputParameters" name="outputParameters" isQuery="true" bodyCondition="CallBehaviorAction-outputParameters-spec">
<redefinedOperation xmi:idref="CallAction-outputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallBehaviorAction-outputParameters-_ownedComment.0" body="Return the inout, out and return ownedParameters of the Behavior being called.">
<annotatedElement xmi:idref="CallBehaviorAction-outputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallBehaviorAction-outputParameters-spec" name="spec">
<constrainedElement xmi:idref="CallBehaviorAction-outputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallBehaviorAction-outputParameters-spec-_specification">
<body>result = (behavior.outputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallBehaviorAction-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallBehaviorAction-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallBehaviorAction-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallBehaviorAction-inputParameters" name="inputParameters" isQuery="true" bodyCondition="CallBehaviorAction-inputParameters-spec">
<redefinedOperation xmi:idref="CallAction-inputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallBehaviorAction-inputParameters-_ownedComment.0" body="Return the in and inout ownedParameters of the Behavior being called.">
<annotatedElement xmi:idref="CallBehaviorAction-inputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallBehaviorAction-inputParameters-spec" name="spec">
<constrainedElement xmi:idref="CallBehaviorAction-inputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallBehaviorAction-inputParameters-spec-_specification">
<body>result = (behavior.inputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallBehaviorAction-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallBehaviorAction-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallBehaviorAction-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CallOperationAction" name="CallOperationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-_ownedComment.0" body="A CallOperationAction is a CallAction that transmits an Operation call request to the target object, where it may cause the invocation of associated Behavior. The argument values of the CallOperationAction are passed on the input Parameters of the Operation. If call is synchronous, the execution of the CallOperationAction waits until the execution of the invoked Operation completes and the values of output Parameters of the Operation are placed on the result OutputPins. If the call is asynchronous, the CallOperationAction completes immediately and no results values can be provided.">
<annotatedElement xmi:idref="CallOperationAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallOperationAction-type_target_pin" name="type_target_pin">
<constrainedElement xmi:idref="CallOperationAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-type_target_pin-_ownedComment.0" body="If onPort has no value, the operation must be an owned or inherited feature of the type of the target InputPin, otherwise the Port given by onPort must be an owned or inherited feature of the type of the target InputPin, and the Port must have a required or provided Interface with the operation as an owned or inherited feature.">
<annotatedElement xmi:idref="CallOperationAction-type_target_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallOperationAction-type_target_pin-_specification">
<body>if onPort=null then target.type.oclAsType(Classifier).allFeatures()->includes(operation) else target.type.oclAsType(Classifier).allFeatures()->includes(onPort) and onPort.provided->union(onPort.required).allFeatures()->includes(operation) endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CallOperationAction-_generalization.0" general="CallAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallOperationAction-operation" name="operation" type="Operation" association="A_operation_callOperationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-operation-_ownedComment.0" body="The Operation being invoked.">
<annotatedElement xmi:idref="CallOperationAction-operation"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CallOperationAction-target" name="target" aggregation="composite" type="InputPin" association="A_target_callOperationAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-target-_ownedComment.0" body="The InputPin that provides the target object to which the Operation call request is sent.">
<annotatedElement xmi:idref="CallOperationAction-target"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallOperationAction-outputParameters" name="outputParameters" isQuery="true" bodyCondition="CallOperationAction-outputParameters-spec">
<redefinedOperation xmi:idref="CallAction-outputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-outputParameters-_ownedComment.0" body="Return the inout, out and return ownedParameters of the Operation being called.">
<annotatedElement xmi:idref="CallOperationAction-outputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallOperationAction-outputParameters-spec" name="spec">
<constrainedElement xmi:idref="CallOperationAction-outputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallOperationAction-outputParameters-spec-_specification">
<body>result = (operation.outputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallOperationAction-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallOperationAction-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallOperationAction-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="CallOperationAction-inputParameters" name="inputParameters" isQuery="true" bodyCondition="CallOperationAction-inputParameters-spec">
<redefinedOperation xmi:idref="CallAction-inputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CallOperationAction-inputParameters-_ownedComment.0" body="Return the in and inout ownedParameters of the Operation being called.">
<annotatedElement xmi:idref="CallOperationAction-inputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CallOperationAction-inputParameters-spec" name="spec">
<constrainedElement xmi:idref="CallOperationAction-inputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CallOperationAction-inputParameters-spec-_specification">
<body>result = (operation.inputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="CallOperationAction-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CallOperationAction-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CallOperationAction-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Clause" name="Clause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-_ownedComment.0" body="A Clause is an Element that represents a single branch of a ConditionalNode, including a test and a body section. The body section is executed only if (but not necessarily if) the test section evaluates to true.">
<annotatedElement xmi:idref="Clause"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Clause-body_output_pins" name="body_output_pins">
<constrainedElement xmi:idref="Clause"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-body_output_pins-_ownedComment.0" body="The bodyOutput Pins are OutputPins on Actions in the body of the Clause.">
<annotatedElement xmi:idref="Clause-body_output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Clause-body_output_pins-_specification">
<body>_'body'.oclAsType(Action).allActions().output->includesAll(bodyOutput)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Clause-decider_output" name="decider_output">
<constrainedElement xmi:idref="Clause"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-decider_output-_ownedComment.0" body="The decider Pin must be on an Action in the test section of the Clause and must be of type Boolean with multiplicity 1..1.">
<annotatedElement xmi:idref="Clause-decider_output"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Clause-decider_output-_specification">
<body>test.oclAsType(Action).allActions().output->includes(decider) and decider.type = Boolean and decider.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Clause-test_and_body" name="test_and_body">
<constrainedElement xmi:idref="Clause"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-test_and_body-_ownedComment.0" body="The test and body parts of a ConditionalNode must be disjoint with each other.">
<annotatedElement xmi:idref="Clause-test_and_body"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Clause-test_and_body-_specification">
<body>test->intersection(_'body')->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Clause-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-body" name="body" type="ExecutableNode" association="A_body_clause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-body-_ownedComment.0" body="The set of ExecutableNodes that are executed if the test evaluates to true and the Clause is chosen over other Clauses within the ConditionalNode that also have tests that evaluate to true.">
<annotatedElement xmi:idref="Clause-body"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Clause-body-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Clause-body-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-bodyOutput" name="bodyOutput" isOrdered="true" type="OutputPin" association="A_bodyOutput_clause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-bodyOutput-_ownedComment.0" body="The OutputPins on Actions within the body section whose values are moved to the result OutputPins of the containing ConditionalNode after execution of the body.">
<annotatedElement xmi:idref="Clause-bodyOutput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Clause-bodyOutput-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Clause-bodyOutput-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-decider" name="decider" type="OutputPin" association="A_decider_clause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-decider-_ownedComment.0" body="An OutputPin on an Action in the test section whose Boolean value determines the result of the test.">
<annotatedElement xmi:idref="Clause-decider"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-predecessorClause" name="predecessorClause" type="Clause" association="A_predecessorClause_successorClause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-predecessorClause-_ownedComment.0" body="A set of Clauses whose tests must all evaluate to false before this Clause can evaluate its test.">
<annotatedElement xmi:idref="Clause-predecessorClause"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Clause-predecessorClause-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Clause-predecessorClause-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-successorClause" name="successorClause" type="Clause" association="A_predecessorClause_successorClause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-successorClause-_ownedComment.0" body="A set of Clauses that may not evaluate their tests unless the test for this Clause evaluates to false.">
<annotatedElement xmi:idref="Clause-successorClause"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="Clause-successorClause-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Clause-successorClause-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Clause-test" name="test" type="ExecutableNode" association="A_test_clause">
<ownedComment xmi:type="uml:Comment" xmi:id="Clause-test-_ownedComment.0" body="The set of ExecutableNodes that are executed in order to provide a test result for the Clause.">
<annotatedElement xmi:idref="Clause-test"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="Clause-test-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ClearAssociationAction" name="ClearAssociationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ClearAssociationAction-_ownedComment.0" body="A ClearAssociationAction is an Action that destroys all links of an Association in which a particular object participates.">
<annotatedElement xmi:idref="ClearAssociationAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClearAssociationAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ClearAssociationAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearAssociationAction-multiplicity-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1.">
<annotatedElement xmi:idref="ClearAssociationAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClearAssociationAction-multiplicity-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClearAssociationAction-same_type" name="same_type">
<constrainedElement xmi:idref="ClearAssociationAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearAssociationAction-same_type-_ownedComment.0" body="The type of the InputPin must conform to the type of at least one of the memberEnds of the association.">
<annotatedElement xmi:idref="ClearAssociationAction-same_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClearAssociationAction-same_type-_specification">
<body>association.memberEnd->exists(self.object.type.conformsTo(type))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ClearAssociationAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClearAssociationAction-association" name="association" type="Association" association="A_association_clearAssociationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ClearAssociationAction-association-_ownedComment.0" body="The Association to be cleared.">
<annotatedElement xmi:idref="ClearAssociationAction-association"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClearAssociationAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_clearAssociationAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearAssociationAction-object-_ownedComment.0" body="The InputPin that gives the object whose participation in the Association is to be cleared.">
<annotatedElement xmi:idref="ClearAssociationAction-object"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ClearStructuralFeatureAction" name="ClearStructuralFeatureAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ClearStructuralFeatureAction-_ownedComment.0" body="A ClearStructuralFeatureAction is a StructuralFeatureAction that removes all values of a StructuralFeature.">
<annotatedElement xmi:idref="ClearStructuralFeatureAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClearStructuralFeatureAction-type_of_result" name="type_of_result">
<constrainedElement xmi:idref="ClearStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearStructuralFeatureAction-type_of_result-_ownedComment.0" body="The type of the result OutputPin is the same as the type of the inherited object InputPin.">
<annotatedElement xmi:idref="ClearStructuralFeatureAction-type_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClearStructuralFeatureAction-type_of_result-_specification">
<body>result<>null implies result.type = object.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ClearStructuralFeatureAction-multiplicity_of_result" name="multiplicity_of_result">
<constrainedElement xmi:idref="ClearStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearStructuralFeatureAction-multiplicity_of_result-_ownedComment.0" body="The multiplicity of the result OutputPin must be 1..1.">
<annotatedElement xmi:idref="ClearStructuralFeatureAction-multiplicity_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ClearStructuralFeatureAction-multiplicity_of_result-_specification">
<body>result<>null implies result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ClearStructuralFeatureAction-_generalization.0" general="StructuralFeatureAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ClearStructuralFeatureAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_clearStructuralFeatureAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ClearStructuralFeatureAction-result-_ownedComment.0" body="The OutputPin on which is put the input object as modified by the ClearStructuralFeatureAction.">
<annotatedElement xmi:idref="ClearStructuralFeatureAction-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ClearStructuralFeatureAction-result-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ClearVariableAction" name="ClearVariableAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ClearVariableAction-_ownedComment.0" body="A ClearVariableAction is a VariableAction that removes all values of a Variable.">
<annotatedElement xmi:idref="ClearVariableAction"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ClearVariableAction-_generalization.0" general="VariableAction"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ConditionalNode" name="ConditionalNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-_ownedComment.0" body="A ConditionalNode is a StructuredActivityNode that chooses one among some number of alternative collections of ExecutableNodes to execute.">
<annotatedElement xmi:idref="ConditionalNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-result_no_incoming" name="result_no_incoming">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-result_no_incoming-_ownedComment.0" body="The result OutputPins have no incoming edges.">
<annotatedElement xmi:idref="ConditionalNode-result_no_incoming"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-result_no_incoming-_specification">
<body>result.incoming->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-no_input_pins" name="no_input_pins">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-no_input_pins-_ownedComment.0" body="A ConditionalNode has no InputPins.">
<annotatedElement xmi:idref="ConditionalNode-no_input_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-no_input_pins-_specification">
<body>input->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-one_clause_with_executable_node" name="one_clause_with_executable_node">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-one_clause_with_executable_node-_ownedComment.0" body="No ExecutableNode in the ConditionNode may appear in the test or body part of more than one clause of a ConditionalNode.">
<annotatedElement xmi:idref="ConditionalNode-one_clause_with_executable_node"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-one_clause_with_executable_node-_specification">
<body>node->select(oclIsKindOf(ExecutableNode)).oclAsType(ExecutableNode)->forAll(n | self.clause->select(test->union(_'body')->includes(n))->size()=1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-matching_output_pins" name="matching_output_pins">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-matching_output_pins-_ownedComment.0" body="Each clause of a ConditionalNode must have the same number of bodyOutput pins as the ConditionalNode has result OutputPins, and each clause bodyOutput Pin must be compatible with the corresponding result OutputPin (by positional order) in type, multiplicity, ordering, and uniqueness.">
<annotatedElement xmi:idref="ConditionalNode-matching_output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-matching_output_pins-_specification">
<body>clause->forAll( bodyOutput->size()=self.result->size() and Sequence{1..self.result->size()}->forAll(i | bodyOutput->at(i).type.conformsTo(result->at(i).type) and bodyOutput->at(i).isOrdered = result->at(i).isOrdered and bodyOutput->at(i).isUnique = result->at(i).isUnique and bodyOutput->at(i).compatibleWith(result->at(i))))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-executable_nodes" name="executable_nodes">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-executable_nodes-_ownedComment.0" body="The union of the ExecutableNodes in the test and body parts of all clauses must be the same as the subset of nodes contained in the ConditionalNode (considered as a StructuredActivityNode) that are ExecutableNodes.">
<annotatedElement xmi:idref="ConditionalNode-executable_nodes"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-executable_nodes-_specification">
<body>clause.test->union(clause._'body') = node->select(oclIsKindOf(ExecutableNode)).oclAsType(ExecutableNode)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-clause_no_predecessor" name="clause_no_predecessor">
<constrainedElement xmi:idref="ConditionalNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-clause_no_predecessor-_ownedComment.0" body="No two clauses within a ConditionalNode may be predecessorClauses of each other, either directly or indirectly.">
<annotatedElement xmi:idref="ConditionalNode-clause_no_predecessor"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-clause_no_predecessor-_specification">
<body>clause->closure(predecessorClause)->intersection(clause)->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ConditionalNode-_generalization.0" general="StructuredActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConditionalNode-clause" name="clause" aggregation="composite" type="Clause" association="A_clause_conditionalNode">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-clause-_ownedComment.0" body="The set of Clauses composing the ConditionalNode.">
<annotatedElement xmi:idref="ConditionalNode-clause"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConditionalNode-clause-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConditionalNode-isAssured" name="isAssured">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-isAssured-_ownedComment.0" body="If true, the modeler asserts that the test for at least one Clause of the ConditionalNode will succeed.">
<annotatedElement xmi:idref="ConditionalNode-isAssured"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ConditionalNode-isAssured-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConditionalNode-isDeterminate" name="isDeterminate">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-isDeterminate-_ownedComment.0" body="If true, the modeler asserts that the test for at most one Clause of the ConditionalNode will succeed.">
<annotatedElement xmi:idref="ConditionalNode-isDeterminate"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ConditionalNode-isDeterminate-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ConditionalNode-result" name="result" isOrdered="true" aggregation="composite" type="OutputPin" association="A_result_conditionalNode">
<redefinedProperty xmi:idref="StructuredActivityNode-structuredNodeOutput"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-result-_ownedComment.0" body="The OutputPins that onto which are moved values from the bodyOutputs of the Clause selected for execution.">
<annotatedElement xmi:idref="ConditionalNode-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConditionalNode-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConditionalNode-result-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ConditionalNode-allActions" name="allActions" isQuery="true" bodyCondition="ConditionalNode-allActions-spec">
<redefinedOperation xmi:idref="Action-allActions"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ConditionalNode-allActions-_ownedComment.0" body="Return only this ConditionalNode. This prevents Actions within the ConditionalNode from having their OutputPins used as bodyOutputs or decider Pins in containing LoopNodes or ConditionalNodes.">
<annotatedElement xmi:idref="ConditionalNode-allActions"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ConditionalNode-allActions-spec" name="spec">
<constrainedElement xmi:idref="ConditionalNode-allActions"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ConditionalNode-allActions-spec-_specification">
<body>result = (self->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ConditionalNode-allActions-result" name="result" direction="return" type="Action">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ConditionalNode-allActions-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ConditionalNode-allActions-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CreateLinkAction" name="CreateLinkAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkAction-_ownedComment.0" body="A CreateLinkAction is a WriteLinkAction for creating links.">
<annotatedElement xmi:idref="CreateLinkAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateLinkAction-association_not_abstract" name="association_not_abstract">
<constrainedElement xmi:idref="CreateLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkAction-association_not_abstract-_ownedComment.0" body="The Association cannot be an abstract Classifier.">
<annotatedElement xmi:idref="CreateLinkAction-association_not_abstract"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateLinkAction-association_not_abstract-_specification">
<body>not self.association().isAbstract</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CreateLinkAction-_generalization.0" general="WriteLinkAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CreateLinkAction-endData" name="endData" aggregation="composite" type="LinkEndCreationData" association="A_endData_createLinkAction">
<redefinedProperty xmi:idref="LinkAction-endData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkAction-endData-_ownedComment.0" body="The LinkEndData that specifies the values to be placed on the Association ends for the new link.">
<annotatedElement xmi:idref="CreateLinkAction-endData"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="CreateLinkAction-endData-_lowerValue" value="2"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="CreateLinkAction-endData-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CreateLinkObjectAction" name="CreateLinkObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkObjectAction-_ownedComment.0" body="A CreateLinkObjectAction is a CreateLinkAction for creating link objects (AssociationClasse instances).">
<annotatedElement xmi:idref="CreateLinkObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateLinkObjectAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="CreateLinkObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkObjectAction-multiplicity-_ownedComment.0" body="The multiplicity of the OutputPin is 1..1.">
<annotatedElement xmi:idref="CreateLinkObjectAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateLinkObjectAction-multiplicity-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateLinkObjectAction-type_of_result" name="type_of_result">
<constrainedElement xmi:idref="CreateLinkObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkObjectAction-type_of_result-_ownedComment.0" body="The type of the result OutputPin must be the same as the Association of the CreateLinkObjectAction.">
<annotatedElement xmi:idref="CreateLinkObjectAction-type_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateLinkObjectAction-type_of_result-_specification">
<body>result.type = association()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateLinkObjectAction-association_class" name="association_class">
<constrainedElement xmi:idref="CreateLinkObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkObjectAction-association_class-_ownedComment.0" body="The Association must be an AssociationClass.">
<annotatedElement xmi:idref="CreateLinkObjectAction-association_class"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateLinkObjectAction-association_class-_specification">
<body>self.association().oclIsKindOf(AssociationClass)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CreateLinkObjectAction-_generalization.0" general="CreateLinkAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CreateLinkObjectAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_createLinkObjectAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateLinkObjectAction-result-_ownedComment.0" body="The output pin on which the newly created link object is placed.">
<annotatedElement xmi:idref="CreateLinkObjectAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="CreateObjectAction" name="CreateObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-_ownedComment.0" body="A CreateObjectAction is an Action that creates an instance of the specified Classifier.">
<annotatedElement xmi:idref="CreateObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateObjectAction-classifier_not_abstract" name="classifier_not_abstract">
<constrainedElement xmi:idref="CreateObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-classifier_not_abstract-_ownedComment.0" body="The classifier cannot be abstract.">
<annotatedElement xmi:idref="CreateObjectAction-classifier_not_abstract"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateObjectAction-classifier_not_abstract-_specification">
<body>not classifier.isAbstract </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateObjectAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="CreateObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-multiplicity-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1.">
<annotatedElement xmi:idref="CreateObjectAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateObjectAction-multiplicity-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateObjectAction-classifier_not_association_class" name="classifier_not_association_class">
<constrainedElement xmi:idref="CreateObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-classifier_not_association_class-_ownedComment.0" body="The classifier cannot be an AssociationClass.">
<annotatedElement xmi:idref="CreateObjectAction-classifier_not_association_class"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateObjectAction-classifier_not_association_class-_specification">
<body>not classifier.oclIsKindOf(AssociationClass)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="CreateObjectAction-same_type" name="same_type">
<constrainedElement xmi:idref="CreateObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-same_type-_ownedComment.0" body="The type of the result OutputPin must be the same as the classifier of the CreateObjectAction.">
<annotatedElement xmi:idref="CreateObjectAction-same_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="CreateObjectAction-same_type-_specification">
<body>result.type = classifier</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="CreateObjectAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="CreateObjectAction-classifier" name="classifier" type="Classifier" association="A_classifier_createObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-classifier-_ownedComment.0" body="The Classifier to be instantiated.">
<annotatedElement xmi:idref="CreateObjectAction-classifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="CreateObjectAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_createObjectAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="CreateObjectAction-result-_ownedComment.0" body="The OutputPin on which the newly created object is placed.">
<annotatedElement xmi:idref="CreateObjectAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DestroyLinkAction" name="DestroyLinkAction">
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyLinkAction-_ownedComment.0" body="A DestroyLinkAction is a WriteLinkAction that destroys links (including link objects).">
<annotatedElement xmi:idref="DestroyLinkAction"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="DestroyLinkAction-_generalization.0" general="WriteLinkAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DestroyLinkAction-endData" name="endData" aggregation="composite" type="LinkEndDestructionData" association="A_endData_destroyLinkAction">
<redefinedProperty xmi:idref="LinkAction-endData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyLinkAction-endData-_ownedComment.0" body="The LinkEndData that the values of the Association ends for the links to be destroyed.">
<annotatedElement xmi:idref="DestroyLinkAction-endData"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="DestroyLinkAction-endData-_lowerValue" value="2"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="DestroyLinkAction-endData-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="DestroyObjectAction" name="DestroyObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-_ownedComment.0" body="A DestroyObjectAction is an Action that destroys objects.">
<annotatedElement xmi:idref="DestroyObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="DestroyObjectAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="DestroyObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-multiplicity-_ownedComment.0" body="The multiplicity of the targe IinputPin is 1..1.">
<annotatedElement xmi:idref="DestroyObjectAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DestroyObjectAction-multiplicity-_specification">
<body>target.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="DestroyObjectAction-no_type" name="no_type">
<constrainedElement xmi:idref="DestroyObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-no_type-_ownedComment.0" body="The target InputPin has no type.">
<annotatedElement xmi:idref="DestroyObjectAction-no_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="DestroyObjectAction-no_type-_specification">
<body>target.type= null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="DestroyObjectAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="DestroyObjectAction-isDestroyLinks" name="isDestroyLinks">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-isDestroyLinks-_ownedComment.0" body="Specifies whether links in which the object participates are destroyed along with the object.">
<annotatedElement xmi:idref="DestroyObjectAction-isDestroyLinks"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="DestroyObjectAction-isDestroyLinks-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DestroyObjectAction-isDestroyOwnedObjects" name="isDestroyOwnedObjects">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-isDestroyOwnedObjects-_ownedComment.0" body="Specifies whether objects owned by the object (via composition) are destroyed along with the object.">
<annotatedElement xmi:idref="DestroyObjectAction-isDestroyOwnedObjects"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="DestroyObjectAction-isDestroyOwnedObjects-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="DestroyObjectAction-target" name="target" aggregation="composite" type="InputPin" association="A_target_destroyObjectAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="DestroyObjectAction-target-_ownedComment.0" body="The InputPin providing the object to be destroyed.">
<annotatedElement xmi:idref="DestroyObjectAction-target"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExpansionNode" name="ExpansionNode">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionNode-_ownedComment.0" body="An ExpansionNode is an ObjectNode used to indicate a collection input or output for an ExpansionRegion. A collection input of an ExpansionRegion contains a collection that is broken into its individual elements inside the region, whose content is executed once per element. A collection output of an ExpansionRegion combines individual elements produced by the execution of the region into a collection for use outside the region.">
<annotatedElement xmi:idref="ExpansionNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ExpansionNode-region_as_input_or_output" name="region_as_input_or_output">
<constrainedElement xmi:idref="ExpansionNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionNode-region_as_input_or_output-_ownedComment.0" body="One of regionAsInput or regionAsOutput must be non-empty, but not both.">
<annotatedElement xmi:idref="ExpansionNode-region_as_input_or_output"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ExpansionNode-region_as_input_or_output-_specification">
<body>regionAsInput->notEmpty() xor regionAsOutput->notEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ExpansionNode-_generalization.0" general="ObjectNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExpansionNode-regionAsInput" name="regionAsInput" type="ExpansionRegion" association="A_inputElement_regionAsInput">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionNode-regionAsInput-_ownedComment.0" body="The ExpansionRegion for which the ExpansionNode is an input.">
<annotatedElement xmi:idref="ExpansionNode-regionAsInput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExpansionNode-regionAsInput-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExpansionNode-regionAsOutput" name="regionAsOutput" type="ExpansionRegion" association="A_outputElement_regionAsOutput">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionNode-regionAsOutput-_ownedComment.0" body="The ExpansionRegion for which the ExpansionNode is an output.">
<annotatedElement xmi:idref="ExpansionNode-regionAsOutput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExpansionNode-regionAsOutput-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ExpansionRegion" name="ExpansionRegion">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionRegion-_ownedComment.0" body="An ExpansionRegion is a StructuredActivityNode that executes its content multiple times corresponding to elements of input collection(s).">
<annotatedElement xmi:idref="ExpansionRegion"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="ExpansionRegion-_generalization.0" general="StructuredActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExpansionRegion-inputElement" name="inputElement" type="ExpansionNode" association="A_inputElement_regionAsInput">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionRegion-inputElement-_ownedComment.0" body="The ExpansionNodes that hold the input collections for the ExpansionRegion.">
<annotatedElement xmi:idref="ExpansionRegion-inputElement"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ExpansionRegion-inputElement-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExpansionRegion-mode" name="mode" type="ExpansionKind">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionRegion-mode-_ownedComment.0" body="The mode in which the ExpansionRegion executes its contents. If parallel, executions are concurrent. If iterative, executions are sequential. If stream, a stream of values flows into a single execution.">
<annotatedElement xmi:idref="ExpansionRegion-mode"/>
</ownedComment>
<defaultValue xmi:type="uml:InstanceValue" xmi:id="ExpansionRegion-mode-_defaultValue" type="ExpansionKind" instance="ExpansionKind-iterative"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ExpansionRegion-outputElement" name="outputElement" type="ExpansionNode" association="A_outputElement_regionAsOutput">
<ownedComment xmi:type="uml:Comment" xmi:id="ExpansionRegion-outputElement-_ownedComment.0" body="The ExpansionNodes that form the output collections of the ExpansionRegion.">
<annotatedElement xmi:idref="ExpansionRegion-outputElement"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ExpansionRegion-outputElement-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ExpansionRegion-outputElement-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InputPin" name="InputPin">
<ownedComment xmi:type="uml:Comment" xmi:id="InputPin-_ownedComment.0" body="An InputPin is a Pin that holds input values to be consumed by an Action.">
<annotatedElement xmi:idref="InputPin"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="InputPin-outgoing_edges_structured_only" name="outgoing_edges_structured_only">
<constrainedElement xmi:idref="InputPin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InputPin-outgoing_edges_structured_only-_ownedComment.0" body="An InputPin may have outgoing ActivityEdges only when it is owned by a StructuredActivityNode, and these edges must target a node contained (directly or indirectly) in the owning StructuredActivityNode.">
<annotatedElement xmi:idref="InputPin-outgoing_edges_structured_only"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="InputPin-outgoing_edges_structured_only-_specification">
<body>outgoing->notEmpty() implies action<>null and action.oclIsKindOf(StructuredActivityNode) and action.oclAsType(StructuredActivityNode).allOwnedNodes()->includesAll(outgoing.target)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="InputPin-_generalization.0" general="Pin"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="InvocationAction" name="InvocationAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="InvocationAction-_ownedComment.0" body="InvocationAction is an abstract class for the various actions that request Behavior invocation. ">
<annotatedElement xmi:idref="InvocationAction"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="InvocationAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="InvocationAction-argument" name="argument" isOrdered="true" aggregation="composite" type="InputPin" association="A_argument_invocationAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="InvocationAction-argument-_ownedComment.0" body="The InputPins that provide the argument values passed in the invocation request.">
<annotatedElement xmi:idref="InvocationAction-argument"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InvocationAction-argument-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="InvocationAction-argument-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="InvocationAction-onPort" name="onPort" type="Port" association="A_onPort_invocationAction">
<ownedComment xmi:type="uml:Comment" xmi:id="InvocationAction-onPort-_ownedComment.0" body="For CallOperationActions, SendSignalActions, and SendObjectActions, an optional Port of the target object through which the invocation request is sent.">
<annotatedElement xmi:idref="InvocationAction-onPort"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="InvocationAction-onPort-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LinkAction" name="LinkAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-_ownedComment.0" body="LinkAction is an abstract class for all Actions that identify the links to be acted on using LinkEndData.">
<annotatedElement xmi:idref="LinkAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkAction-same_pins" name="same_pins">
<constrainedElement xmi:idref="LinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-same_pins-_ownedComment.0" body="The inputValue InputPins is the same as the union of all the InputPins referenced by the endData.">
<annotatedElement xmi:idref="LinkAction-same_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkAction-same_pins-_specification">
<body>inputValue->asBag()=endData.allPins()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkAction-same_association" name="same_association">
<constrainedElement xmi:idref="LinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-same_association-_ownedComment.0" body="The ends of the endData must all be from the same Association and include all and only the memberEnds of that association.">
<annotatedElement xmi:idref="LinkAction-same_association"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkAction-same_association-_specification">
<body>endData.end = self.association().memberEnd->asBag()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkAction-not_static" name="not_static">
<constrainedElement xmi:idref="LinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-not_static-_ownedComment.0" body="The ends of the endData must not be static.">
<annotatedElement xmi:idref="LinkAction-not_static"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkAction-not_static-_specification">
<body>endData->forAll(not end.isStatic)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="LinkAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkAction-endData" name="endData" aggregation="composite" type="LinkEndData" association="A_endData_linkAction">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-endData-_ownedComment.0" body="The LinkEndData identifying the values on the ends of the links acting on by this LinkAction.">
<annotatedElement xmi:idref="LinkAction-endData"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkAction-endData-_lowerValue" value="2"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkAction-endData-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkAction-inputValue" name="inputValue" aggregation="composite" type="InputPin" association="A_inputValue_linkAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-inputValue-_ownedComment.0" body="InputPins used by the LinkEndData of the LinkAction.">
<annotatedElement xmi:idref="LinkAction-inputValue"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkAction-inputValue-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LinkAction-association" name="association" isQuery="true" bodyCondition="LinkAction-association-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkAction-association-_ownedComment.0" body="Returns the Association acted on by this LinkAction.">
<annotatedElement xmi:idref="LinkAction-association"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkAction-association-spec" name="spec">
<constrainedElement xmi:idref="LinkAction-association"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkAction-association-spec-_specification">
<body>result = (endData->asSequence()->first().end.association)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LinkAction-association-result" name="result" direction="return" type="Association"/>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LinkEndCreationData" name="LinkEndCreationData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndCreationData-_ownedComment.0" body="LinkEndCreationData is LinkEndData used to provide values for one end of a link to be created by a CreateLinkAction.">
<annotatedElement xmi:idref="LinkEndCreationData"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndCreationData-insertAt_pin" name="insertAt_pin">
<constrainedElement xmi:idref="LinkEndCreationData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndCreationData-insertAt_pin-_ownedComment.0" body="LinkEndCreationData for ordered Association ends must have a single insertAt InputPin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, if isReplaceAll=false, and must have no InputPin for the insertion point when the association ends are unordered.">
<annotatedElement xmi:idref="LinkEndCreationData-insertAt_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndCreationData-insertAt_pin-_specification">
<body>if not end.isOrdered then insertAt = null else not isReplaceAll=false implies insertAt <> null and insertAt->forAll(type=UnlimitedNatural and is(1,1)) endif </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="LinkEndCreationData-_generalization.0" general="LinkEndData"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndCreationData-insertAt" name="insertAt" type="InputPin" association="A_insertAt_linkEndCreationData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndCreationData-insertAt-_ownedComment.0" body="For ordered Association ends, the InputPin that provides the position where the new link should be inserted or where an existing link should be moved to. The type of the insertAt InputPin is UnlimitedNatural, but the input cannot be zero. It is omitted for Association ends that are not ordered.">
<annotatedElement xmi:idref="LinkEndCreationData-insertAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndCreationData-insertAt-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndCreationData-isReplaceAll" name="isReplaceAll">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndCreationData-isReplaceAll-_ownedComment.0" body="Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link.">
<annotatedElement xmi:idref="LinkEndCreationData-isReplaceAll"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="LinkEndCreationData-isReplaceAll-_defaultValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LinkEndCreationData-allPins" name="allPins" isQuery="true" bodyCondition="LinkEndCreationData-allPins-spec">
<redefinedOperation xmi:idref="LinkEndData-allPins"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndCreationData-allPins-_ownedComment.0" body="Adds the insertAt InputPin (if any) to the set of all Pins.">
<annotatedElement xmi:idref="LinkEndCreationData-allPins"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndCreationData-allPins-spec" name="spec">
<constrainedElement xmi:idref="LinkEndCreationData-allPins"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndCreationData-allPins-spec-_specification">
<body>result = (self.LinkEndData::allPins()->including(insertAt))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LinkEndCreationData-allPins-result" isUnique="false" name="result" direction="return" type="InputPin">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndCreationData-allPins-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkEndCreationData-allPins-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LinkEndData" name="LinkEndData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-_ownedComment.0" body="LinkEndData is an Element that identifies on end of a link to be read or written by a LinkAction. As a link (that is not a link object) cannot be passed as a runtime value to or from an Action, it is instead identified by its end objects and qualifier values, if any. A LinkEndData instance provides these values for a single Association end.">
<annotatedElement xmi:idref="LinkEndData"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-same_type" name="same_type">
<constrainedElement xmi:idref="LinkEndData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-same_type-_ownedComment.0" body="The type of the value InputPin conforms to the type of the Association end.">
<annotatedElement xmi:idref="LinkEndData-same_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-same_type-_specification">
<body>value<>null implies value.type.conformsTo(end.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="LinkEndData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-multiplicity-_ownedComment.0" body="The multiplicity of the value InputPin must be 1..1.">
<annotatedElement xmi:idref="LinkEndData-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-multiplicity-_specification">
<body>value<>null implies value.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-end_object_input_pin" name="end_object_input_pin">
<constrainedElement xmi:idref="LinkEndData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-end_object_input_pin-_ownedComment.0" body="The value InputPin is not also the qualifier value InputPin.">
<annotatedElement xmi:idref="LinkEndData-end_object_input_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-end_object_input_pin-_specification">
<body>value->excludesAll(qualifier.value)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-property_is_association_end" name="property_is_association_end">
<constrainedElement xmi:idref="LinkEndData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-property_is_association_end-_ownedComment.0" body="The Property must be an Association memberEnd.">
<annotatedElement xmi:idref="LinkEndData-property_is_association_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-property_is_association_end-_specification">
<body>end.association <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-qualifiers" name="qualifiers">
<constrainedElement xmi:idref="LinkEndData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-qualifiers-_ownedComment.0" body="The qualifiers must be qualifiers of the Association end.">
<annotatedElement xmi:idref="LinkEndData-qualifiers"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-qualifiers-_specification">
<body>end.qualifier->includesAll(qualifier.qualifier)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="LinkEndData-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndData-end" name="end" type="Property" association="A_end_linkEndData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-end-_ownedComment.0" body="The Association end for which this LinkEndData specifies values.">
<annotatedElement xmi:idref="LinkEndData-end"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndData-qualifier" name="qualifier" aggregation="composite" type="QualifierValue" association="A_qualifier_linkEndData">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-qualifier-_ownedComment.0" body="A set of QualifierValues used to provide values for the qualifiers of the end.">
<annotatedElement xmi:idref="LinkEndData-qualifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndData-qualifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkEndData-qualifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndData-value" name="value" type="InputPin" association="A_value_linkEndData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-value-_ownedComment.0" body="The InputPin that provides the specified value for the given end. This InputPin is omitted if the LinkEndData specifies the "open" end for a ReadLinkAction.">
<annotatedElement xmi:idref="LinkEndData-value"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndData-value-_lowerValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LinkEndData-allPins" name="allPins" isQuery="true" bodyCondition="LinkEndData-allPins-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndData-allPins-_ownedComment.0" body="Returns all the InputPins referenced by this LinkEndData. By default this includes the value and qualifier InputPins, but subclasses may override the operation to add other InputPins.">
<annotatedElement xmi:idref="LinkEndData-allPins"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndData-allPins-spec" name="spec">
<constrainedElement xmi:idref="LinkEndData-allPins"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndData-allPins-spec-_specification">
<body>result = (value->asBag()->union(qualifier.value))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LinkEndData-allPins-result" isUnique="false" name="result" direction="return" type="InputPin">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndData-allPins-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkEndData-allPins-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LinkEndDestructionData" name="LinkEndDestructionData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndDestructionData-_ownedComment.0" body="LinkEndDestructionData is LinkEndData used to provide values for one end of a link to be destroyed by a DestroyLinkAction.">
<annotatedElement xmi:idref="LinkEndDestructionData"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndDestructionData-destroyAt_pin" name="destroyAt_pin">
<constrainedElement xmi:idref="LinkEndDestructionData"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndDestructionData-destroyAt_pin-_ownedComment.0" body="LinkEndDestructionData for ordered, nonunique Association ends must have a single destroyAt InputPin if isDestroyDuplicates is false, which must be of type UnlimitedNatural and have a multiplicity of 1..1. Otherwise, the action has no destroyAt input pin.">
<annotatedElement xmi:idref="LinkEndDestructionData-destroyAt_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndDestructionData-destroyAt_pin-_specification">
<body>if not end.isOrdered or end.isUnique or isDestroyDuplicates then destroyAt = null else destroyAt <> null and destroyAt->forAll(type=UnlimitedNatural and is(1,1)) endif </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="LinkEndDestructionData-_generalization.0" general="LinkEndData"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndDestructionData-destroyAt" name="destroyAt" type="InputPin" association="A_destroyAt_linkEndDestructionData">
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndDestructionData-destroyAt-_ownedComment.0" body="The InputPin that provides the position of an existing link to be destroyed in an ordered, nonunique Association end. The type of the destroyAt InputPin is UnlimitedNatural, but the value cannot be zero or unlimited.">
<annotatedElement xmi:idref="LinkEndDestructionData-destroyAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndDestructionData-destroyAt-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LinkEndDestructionData-isDestroyDuplicates" name="isDestroyDuplicates">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndDestructionData-isDestroyDuplicates-_ownedComment.0" body="Specifies whether to destroy duplicates of the value in nonunique Association ends.">
<annotatedElement xmi:idref="LinkEndDestructionData-isDestroyDuplicates"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="LinkEndDestructionData-isDestroyDuplicates-_defaultValue"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LinkEndDestructionData-allPins" name="allPins" isQuery="true" bodyCondition="LinkEndDestructionData-allPins-spec">
<redefinedOperation xmi:idref="LinkEndData-allPins"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LinkEndDestructionData-allPins-_ownedComment.0" body="Adds the destroyAt InputPin (if any) to the set of all Pins.">
<annotatedElement xmi:idref="LinkEndDestructionData-allPins"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LinkEndDestructionData-allPins-spec" name="spec">
<constrainedElement xmi:idref="LinkEndDestructionData-allPins"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LinkEndDestructionData-allPins-spec-_specification">
<body>result = (self.LinkEndData::allPins()->including(destroyAt))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LinkEndDestructionData-allPins-result" isUnique="false" name="result" direction="return" type="InputPin">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LinkEndDestructionData-allPins-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LinkEndDestructionData-allPins-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="LoopNode" name="LoopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-_ownedComment.0" body="A LoopNode is a StructuredActivityNode that represents an iterative loop with setup, test, and body sections.">
<annotatedElement xmi:idref="LoopNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-result_no_incoming" name="result_no_incoming">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-result_no_incoming-_ownedComment.0" body="The result OutputPins have no incoming edges.">
<annotatedElement xmi:idref="LoopNode-result_no_incoming"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-result_no_incoming-_specification">
<body>result.incoming->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-input_edges" name="input_edges">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-input_edges-_ownedComment.0" body="The loopVariableInputs must not have outgoing edges.">
<annotatedElement xmi:idref="LoopNode-input_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-input_edges-_specification">
<body>loopVariableInput.outgoing->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-executable_nodes" name="executable_nodes">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-executable_nodes-_ownedComment.0" body="The union of the ExecutableNodes in the setupPart, test and bodyPart of a LoopNode must be the same as the subset of nodes contained in the LoopNode (considered as a StructuredActivityNode) that are ExecutableNodes.">
<annotatedElement xmi:idref="LoopNode-executable_nodes"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-executable_nodes-_specification">
<body>setupPart->union(test)->union(bodyPart)=node->select(oclIsKindOf(ExecutableNode)).oclAsType(ExecutableNode)->asSet()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-body_output_pins" name="body_output_pins">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-body_output_pins-_ownedComment.0" body="The bodyOutput pins are OutputPins on Actions in the body of the LoopNode.">
<annotatedElement xmi:idref="LoopNode-body_output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-body_output_pins-_specification">
<body>bodyPart.oclAsType(Action).allActions().output->includesAll(bodyOutput)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-setup_test_and_body" name="setup_test_and_body">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-setup_test_and_body-_ownedComment.0" body="The test and body parts of a ConditionalNode must be disjoint with each other.">
<annotatedElement xmi:idref="LoopNode-setup_test_and_body"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-setup_test_and_body-_specification">
<body>setupPart->intersection(test)->isEmpty() and setupPart->intersection(bodyPart)->isEmpty() and test->intersection(bodyPart)->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-matching_output_pins" name="matching_output_pins">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-matching_output_pins-_ownedComment.0" body="A LoopNode must have the same number of bodyOutput Pins as loopVariables, and each bodyOutput Pin must be compatible with the corresponding loopVariable (by positional order) in type, multiplicity, ordering and uniqueness.">
<annotatedElement xmi:idref="LoopNode-matching_output_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-matching_output_pins-_specification">
<body>bodyOutput->size()=loopVariable->size() and Sequence{1..loopVariable->size()}->forAll(i | bodyOutput->at(i).type.conformsTo(loopVariable->at(i).type) and bodyOutput->at(i).isOrdered = loopVariable->at(i).isOrdered and bodyOutput->at(i).isUnique = loopVariable->at(i).isUnique and loopVariable->at(i).includesMultiplicity(bodyOutput->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-matching_loop_variables" name="matching_loop_variables">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-matching_loop_variables-_ownedComment.0" body="A LoopNode must have the same number of loopVariableInputs and loopVariables, and they must match in type, uniqueness and multiplicity.">
<annotatedElement xmi:idref="LoopNode-matching_loop_variables"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-matching_loop_variables-_specification">
<body>loopVariableInput->size()=loopVariable->size() and loopVariableInput.type=loopVariable.type and loopVariableInput.isUnique=loopVariable.isUnique and loopVariableInput.lower=loopVariable.lower and loopVariableInput.upper=loopVariable.upper</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-matching_result_pins" name="matching_result_pins">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-matching_result_pins-_ownedComment.0" body="A LoopNode must have the same number of result OutputPins and loopVariables, and they must match in type, uniqueness and multiplicity.">
<annotatedElement xmi:idref="LoopNode-matching_result_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-matching_result_pins-_specification">
<body>result->size()=loopVariable->size() and result.type=loopVariable.type and result.isUnique=loopVariable.isUnique and result.lower=loopVariable.lower and result.upper=loopVariable.upper</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-loop_variable_outgoing" name="loop_variable_outgoing">
<constrainedElement xmi:idref="LoopNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-loop_variable_outgoing-_ownedComment.0" body="All ActivityEdges outgoing from loopVariable OutputPins must have targets within the LoopNode.">
<annotatedElement xmi:idref="LoopNode-loop_variable_outgoing"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-loop_variable_outgoing-_specification">
<body>allOwnedNodes()->includesAll(loopVariable.outgoing.target)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="LoopNode-_generalization.0" general="StructuredActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-bodyOutput" name="bodyOutput" isOrdered="true" type="OutputPin" association="A_bodyOutput_loopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-bodyOutput-_ownedComment.0" body="The OutputPins on Actions within the bodyPart, the values of which are moved to the loopVariable OutputPins after the completion of each execution of the bodyPart, before the next iteration of the loop begins or before the loop exits.">
<annotatedElement xmi:idref="LoopNode-bodyOutput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-bodyOutput-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-bodyOutput-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-bodyPart" name="bodyPart" type="ExecutableNode" association="A_bodyPart_loopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-bodyPart-_ownedComment.0" body="The set of ExecutableNodes that perform the repetitive computations of the loop. The bodyPart is executed as long as the test section produces a true value.">
<annotatedElement xmi:idref="LoopNode-bodyPart"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-bodyPart-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-bodyPart-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-decider" name="decider" type="OutputPin" association="A_decider_loopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-decider-_ownedComment.0" body="An OutputPin on an Action in the test section whose Boolean value determines whether to continue executing the loop bodyPart.">
<annotatedElement xmi:idref="LoopNode-decider"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-isTestedFirst" name="isTestedFirst">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-isTestedFirst-_ownedComment.0" body="If true, the test is performed before the first execution of the bodyPart. If false, the bodyPart is executed once before the test is performed.">
<annotatedElement xmi:idref="LoopNode-isTestedFirst"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="LoopNode-isTestedFirst-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-loopVariable" name="loopVariable" isOrdered="true" aggregation="composite" type="OutputPin" association="A_loopVariable_loopNode">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-loopVariable-_ownedComment.0" body="A list of OutputPins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are moved to the result OutputPins of the loop.">
<annotatedElement xmi:idref="LoopNode-loopVariable"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-loopVariable-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-loopVariable-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-loopVariableInput" name="loopVariableInput" isOrdered="true" aggregation="composite" type="InputPin" association="A_loopVariableInput_loopNode">
<redefinedProperty xmi:idref="StructuredActivityNode-structuredNodeInput"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-loopVariableInput-_ownedComment.0" body="A list of InputPins whose values are moved into the loopVariable Pins before the first iteration of the loop.">
<annotatedElement xmi:idref="LoopNode-loopVariableInput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-loopVariableInput-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-loopVariableInput-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-result" name="result" isOrdered="true" aggregation="composite" type="OutputPin" association="A_result_loopNode">
<redefinedProperty xmi:idref="StructuredActivityNode-structuredNodeOutput"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-result-_ownedComment.0" body="A list of OutputPins that receive the loopVariable values after the last iteration of the loop and constitute the output of the LoopNode.">
<annotatedElement xmi:idref="LoopNode-result"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-result-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-setupPart" name="setupPart" type="ExecutableNode" association="A_setupPart_loopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-setupPart-_ownedComment.0" body="The set of ExecutableNodes executed before the first iteration of the loop, in order to initialize values or perform other setup computations.">
<annotatedElement xmi:idref="LoopNode-setupPart"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-setupPart-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-setupPart-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="LoopNode-test" name="test" type="ExecutableNode" association="A_test_loopNode">
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-test-_ownedComment.0" body="The set of ExecutableNodes executed in order to provide the test result for the loop.">
<annotatedElement xmi:idref="LoopNode-test"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-test-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="LoopNode-allActions" name="allActions" isQuery="true" bodyCondition="LoopNode-allActions-spec">
<redefinedOperation xmi:idref="Action-allActions"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-allActions-_ownedComment.0" body="Return only this LoopNode. This prevents Actions within the LoopNode from having their OutputPins used as bodyOutputs or decider Pins in containing LoopNodes or ConditionalNodes.">
<annotatedElement xmi:idref="LoopNode-allActions"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-allActions-spec" name="spec">
<constrainedElement xmi:idref="LoopNode-allActions"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-allActions-spec-_specification">
<body>result = (self->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LoopNode-allActions-result" name="result" direction="return" type="Action">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-allActions-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-allActions-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="LoopNode-sourceNodes" name="sourceNodes" isQuery="true" bodyCondition="LoopNode-sourceNodes-spec">
<redefinedOperation xmi:idref="StructuredActivityNode-sourceNodes"/>
<ownedComment xmi:type="uml:Comment" xmi:id="LoopNode-sourceNodes-_ownedComment.0" body="Return the loopVariable OutputPins in addition to other source nodes for the LoopNode as a StructuredActivityNode.">
<annotatedElement xmi:idref="LoopNode-sourceNodes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="LoopNode-sourceNodes-spec" name="spec">
<constrainedElement xmi:idref="LoopNode-sourceNodes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="LoopNode-sourceNodes-spec-_specification">
<body>result = (self.StructuredActivityNode::sourceNodes()->union(loopVariable))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="LoopNode-sourceNodes-result" name="result" direction="return" type="ActivityNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="LoopNode-sourceNodes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="LoopNode-sourceNodes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OpaqueAction" name="OpaqueAction">
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-_ownedComment.0" body="An OpaqueAction is an Action whose functionality is not specified within UML.">
<annotatedElement xmi:idref="OpaqueAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OpaqueAction-language_body_size" name="language_body_size">
<constrainedElement xmi:idref="OpaqueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-language_body_size-_ownedComment.0" body="If the language attribute is not empty, then the size of the body and language lists must be the same.">
<annotatedElement xmi:idref="OpaqueAction-language_body_size"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OpaqueAction-language_body_size-_specification">
<body>language->notEmpty() implies (_'body'->size() = language->size())</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="OpaqueAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueAction-body" name="body" isOrdered="true" isUnique="false">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-body-_ownedComment.0" body="Provides a textual specification of the functionality of the Action, in one or more languages other than UML.">
<annotatedElement xmi:idref="OpaqueAction-body"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueAction-body-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueAction-body-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueAction-inputValue" name="inputValue" aggregation="composite" type="InputPin" association="A_inputValue_opaqueAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-inputValue-_ownedComment.0" body="The InputPins providing inputs to the OpaqueAction.">
<annotatedElement xmi:idref="OpaqueAction-inputValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueAction-inputValue-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueAction-inputValue-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueAction-language" name="language" isOrdered="true">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-language-_ownedComment.0" body="If provided, a specification of the language used for each of the body Strings.">
<annotatedElement xmi:idref="OpaqueAction-language"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueAction-language-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueAction-language-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="OpaqueAction-outputValue" name="outputValue" aggregation="composite" type="OutputPin" association="A_outputValue_opaqueAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OpaqueAction-outputValue-_ownedComment.0" body="The OutputPins on which the OpaqueAction provides outputs.">
<annotatedElement xmi:idref="OpaqueAction-outputValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="OpaqueAction-outputValue-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="OpaqueAction-outputValue-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="OutputPin" name="OutputPin">
<ownedComment xmi:type="uml:Comment" xmi:id="OutputPin-_ownedComment.0" body="An OutputPin is a Pin that holds output values produced by an Action.">
<annotatedElement xmi:idref="OutputPin"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="OutputPin-incoming_edges_structured_only" name="incoming_edges_structured_only">
<constrainedElement xmi:idref="OutputPin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="OutputPin-incoming_edges_structured_only-_ownedComment.0" body="An OutputPin may have incoming ActivityEdges only when it is owned by a StructuredActivityNode, and these edges must have sources contained (directly or indirectly) in the owning StructuredActivityNode.">
<annotatedElement xmi:idref="OutputPin-incoming_edges_structured_only"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="OutputPin-incoming_edges_structured_only-_specification">
<body>incoming->notEmpty() implies action<>null and action.oclIsKindOf(StructuredActivityNode) and action.oclAsType(StructuredActivityNode).allOwnedNodes()->includesAll(incoming.source)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="OutputPin-_generalization.0" general="Pin"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="Pin" name="Pin" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="Pin-_ownedComment.0" body="A Pin is an ObjectNode and MultiplicityElement that provides input values to an Action or accepts output values from an Action.">
<annotatedElement xmi:idref="Pin"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pin-control_pins" name="control_pins">
<constrainedElement xmi:idref="Pin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pin-control_pins-_ownedComment.0" body="A control Pin has a control type.">
<annotatedElement xmi:idref="Pin-control_pins"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pin-control_pins-_specification">
<body>isControl implies isControlType</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="Pin-not_unique" name="not_unique">
<constrainedElement xmi:idref="Pin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pin-not_unique-_ownedComment.0" body="Pin multiplicity is not unique.">
<annotatedElement xmi:idref="Pin-not_unique"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="Pin-not_unique-_specification">
<body>not isUnique</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="Pin-_generalization.1" general="ObjectNode"/>
<generalization xmi:type="uml:Generalization" xmi:id="Pin-_generalization.0" general="MultiplicityElement"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Pin-isControl" name="isControl">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="Pin-isControl-_ownedComment.0" body="Indicates whether the Pin provides data to the Action or just controls how the Action executes.">
<annotatedElement xmi:idref="Pin-isControl"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="Pin-isControl-_defaultValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="QualifierValue" name="QualifierValue">
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-_ownedComment.0" body="A QualifierValue is an Element that is used as part of LinkEndData to provide the value for a single qualifier of the end given by the LinkEndData.">
<annotatedElement xmi:idref="QualifierValue"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="QualifierValue-multiplicity_of_qualifier" name="multiplicity_of_qualifier">
<constrainedElement xmi:idref="QualifierValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-multiplicity_of_qualifier-_ownedComment.0" body="The multiplicity of the value InputPin is 1..1.">
<annotatedElement xmi:idref="QualifierValue-multiplicity_of_qualifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="QualifierValue-multiplicity_of_qualifier-_specification">
<body>value.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="QualifierValue-type_of_qualifier" name="type_of_qualifier">
<constrainedElement xmi:idref="QualifierValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-type_of_qualifier-_ownedComment.0" body="The type of the value InputPin conforms to the type of the qualifier Property.">
<annotatedElement xmi:idref="QualifierValue-type_of_qualifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="QualifierValue-type_of_qualifier-_specification">
<body>value.type.conformsTo(qualifier.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="QualifierValue-qualifier_attribute" name="qualifier_attribute">
<constrainedElement xmi:idref="QualifierValue"/>
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-qualifier_attribute-_ownedComment.0" body="The qualifier must be a qualifier of the Association end of the linkEndData that owns this QualifierValue.">
<annotatedElement xmi:idref="QualifierValue-qualifier_attribute"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="QualifierValue-qualifier_attribute-_specification">
<body>linkEndData.end.qualifier->includes(qualifier)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="QualifierValue-_generalization.0" general="Element"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="QualifierValue-qualifier" name="qualifier" type="Property" association="A_qualifier_qualifierValue">
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-qualifier-_ownedComment.0" body="The qualifier Property for which the value is to be specified.">
<annotatedElement xmi:idref="QualifierValue-qualifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="QualifierValue-value" name="value" type="InputPin" association="A_value_qualifierValue">
<ownedComment xmi:type="uml:Comment" xmi:id="QualifierValue-value-_ownedComment.0" body="The InputPin from which the specified value for the qualifier is taken.">
<annotatedElement xmi:idref="QualifierValue-value"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="RaiseExceptionAction" name="RaiseExceptionAction">
<ownedComment xmi:type="uml:Comment" xmi:id="RaiseExceptionAction-_ownedComment.0" body="A RaiseExceptionAction is an Action that causes an exception to occur. The input value becomes the exception object.">
<annotatedElement xmi:idref="RaiseExceptionAction"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="RaiseExceptionAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="RaiseExceptionAction-exception" name="exception" aggregation="composite" type="InputPin" association="A_exception_raiseExceptionAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RaiseExceptionAction-exception-_ownedComment.0" body="An InputPin whose value becomes the exception object.">
<annotatedElement xmi:idref="RaiseExceptionAction-exception"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadExtentAction" name="ReadExtentAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadExtentAction-_ownedComment.0" body="A ReadExtentAction is an Action that retrieves the current instances of a Classifier.">
<annotatedElement xmi:idref="ReadExtentAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadExtentAction-type_is_classifier" name="type_is_classifier">
<constrainedElement xmi:idref="ReadExtentAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadExtentAction-type_is_classifier-_ownedComment.0" body="The type of the result OutputPin is the classifier.">
<annotatedElement xmi:idref="ReadExtentAction-type_is_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadExtentAction-type_is_classifier-_specification">
<body>result.type = classifier</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadExtentAction-multiplicity_of_result" name="multiplicity_of_result">
<constrainedElement xmi:idref="ReadExtentAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadExtentAction-multiplicity_of_result-_ownedComment.0" body="The multiplicity of the result OutputPin is 0..*.">
<annotatedElement xmi:idref="ReadExtentAction-multiplicity_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadExtentAction-multiplicity_of_result-_specification">
<body>result.is(0,*)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadExtentAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadExtentAction-classifier" name="classifier" type="Classifier" association="A_classifier_readExtentAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadExtentAction-classifier-_ownedComment.0" body="The Classifier whose instances are to be retrieved.">
<annotatedElement xmi:idref="ReadExtentAction-classifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadExtentAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readExtentAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadExtentAction-result-_ownedComment.0" body="The OutputPin on which the Classifier instances are placed.">
<annotatedElement xmi:idref="ReadExtentAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadIsClassifiedObjectAction" name="ReadIsClassifiedObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-_ownedComment.0" body="A ReadIsClassifiedObjectAction is an Action that determines whether an object is classified by a given Classifier.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadIsClassifiedObjectAction-no_type" name="no_type">
<constrainedElement xmi:idref="ReadIsClassifiedObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-no_type-_ownedComment.0" body="The object InputPin has no type.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-no_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadIsClassifiedObjectAction-no_type-_specification">
<body>object.type = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_output" name="multiplicity_of_output">
<constrainedElement xmi:idref="ReadIsClassifiedObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_output-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-multiplicity_of_output"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_output-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadIsClassifiedObjectAction-boolean_result" name="boolean_result">
<constrainedElement xmi:idref="ReadIsClassifiedObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-boolean_result-_ownedComment.0" body="The type of the result OutputPin is Boolean.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-boolean_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadIsClassifiedObjectAction-boolean_result-_specification">
<body>result.type = Boolean</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_input" name="multiplicity_of_input">
<constrainedElement xmi:idref="ReadIsClassifiedObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_input-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-multiplicity_of_input"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadIsClassifiedObjectAction-multiplicity_of_input-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadIsClassifiedObjectAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadIsClassifiedObjectAction-classifier" name="classifier" type="Classifier" association="A_classifier_readIsClassifiedObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-classifier-_ownedComment.0" body="The Classifier against which the classification of the input object is tested.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-classifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadIsClassifiedObjectAction-isDirect" name="isDirect">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-isDirect-_ownedComment.0" body="Indicates whether the input object must be directly classified by the given Classifier or whether it may also be an instance of a specialization of the given Classifier.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-isDirect"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ReadIsClassifiedObjectAction-isDirect-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadIsClassifiedObjectAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_readIsClassifiedObjectAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-object-_ownedComment.0" body="The InputPin that holds the object whose classification is to be tested.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadIsClassifiedObjectAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readIsClassifiedObjectAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadIsClassifiedObjectAction-result-_ownedComment.0" body="The OutputPin that holds the Boolean result of the test.">
<annotatedElement xmi:idref="ReadIsClassifiedObjectAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadLinkAction" name="ReadLinkAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-_ownedComment.0" body="A ReadLinkAction is a LinkAction that navigates across an Association to retrieve the objects on one end.">
<annotatedElement xmi:idref="ReadLinkAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-type_and_ordering" name="type_and_ordering">
<constrainedElement xmi:idref="ReadLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-type_and_ordering-_ownedComment.0" body="The type and ordering of the result OutputPin are same as the type and ordering of the open Association end.">
<annotatedElement xmi:idref="ReadLinkAction-type_and_ordering"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-type_and_ordering-_specification">
<body>self.openEnd()->forAll(type=result.type and isOrdered=result.isOrdered) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-compatible_multiplicity" name="compatible_multiplicity">
<constrainedElement xmi:idref="ReadLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-compatible_multiplicity-_ownedComment.0" body="The multiplicity of the open Association end must be compatible with the multiplicity of the result OutputPin.">
<annotatedElement xmi:idref="ReadLinkAction-compatible_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-compatible_multiplicity-_specification">
<body>self.openEnd()->first().compatibleWith(result) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-visibility" name="visibility">
<constrainedElement xmi:idref="ReadLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-visibility-_ownedComment.0" body="Visibility of the open end must allow access from the object performing the action.">
<annotatedElement xmi:idref="ReadLinkAction-visibility"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-visibility-_specification">
<body>let openEnd : Property = self.openEnd()->first() in openEnd.visibility = VisibilityKind::public or endData->exists(oed | oed.end<>openEnd and (_'context' = oed.end.type or (openEnd.visibility = VisibilityKind::protected and _'context'.conformsTo(oed.end.type.oclAsType(Classifier))))) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-one_open_end" name="one_open_end">
<constrainedElement xmi:idref="ReadLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-one_open_end-_ownedComment.0" body="Exactly one linkEndData specification (corresponding to the "open" end) must not have an value InputPin.">
<annotatedElement xmi:idref="ReadLinkAction-one_open_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-one_open_end-_specification">
<body>self.openEnd()->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-navigable_open_end" name="navigable_open_end">
<constrainedElement xmi:idref="ReadLinkAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-navigable_open_end-_ownedComment.0" body="The open end must be navigable.">
<annotatedElement xmi:idref="ReadLinkAction-navigable_open_end"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-navigable_open_end-_specification">
<body>self.openEnd()->first().isNavigable() </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadLinkAction-_generalization.0" general="LinkAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readLinkAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-result-_ownedComment.0" body="The OutputPin on which the objects retrieved from the "open" end of those links whose values on other ends are given by the endData.">
<annotatedElement xmi:idref="ReadLinkAction-result"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="ReadLinkAction-openEnd" name="openEnd" isQuery="true" bodyCondition="ReadLinkAction-openEnd-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkAction-openEnd-_ownedComment.0" body="Returns the ends corresponding to endData with no value InputPin. (A well-formed ReadLinkAction is constrained to have only one of these.)">
<annotatedElement xmi:idref="ReadLinkAction-openEnd"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkAction-openEnd-spec" name="spec">
<constrainedElement xmi:idref="ReadLinkAction-openEnd"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkAction-openEnd-spec-_specification">
<body>result = (endData->select(value=null).end->asOrderedSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="ReadLinkAction-openEnd-result" isOrdered="true" name="result" direction="return" type="Property">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ReadLinkAction-openEnd-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ReadLinkAction-openEnd-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadLinkObjectEndAction" name="ReadLinkObjectEndAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-_ownedComment.0" body="A ReadLinkObjectEndAction is an Action that retrieves an end object from a link object.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-property" name="property">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-property-_ownedComment.0" body="The end Property must be an Association memberEnd.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-property"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-property-_specification">
<body>end.association <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-multiplicity_of_object" name="multiplicity_of_object">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-multiplicity_of_object-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-multiplicity_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-multiplicity_of_object-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-ends_of_association" name="ends_of_association">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-ends_of_association-_ownedComment.0" body="The ends of the association must not be static.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-ends_of_association"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-ends_of_association-_specification">
<body>end.association.memberEnd->forAll(e | not e.isStatic)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-type_of_result" name="type_of_result">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-type_of_result-_ownedComment.0" body="The type of the result OutputPin is the same as the type of the end Property.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-type_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-type_of_result-_specification">
<body>result.type = end.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-multiplicity_of_result" name="multiplicity_of_result">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-multiplicity_of_result-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-multiplicity_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-multiplicity_of_result-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-type_of_object" name="type_of_object">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-type_of_object-_ownedComment.0" body="The type of the object InputPin is the AssociationClass that owns the end Property.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-type_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-type_of_object-_specification">
<body>object.type = end.association</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndAction-association_of_association" name="association_of_association">
<constrainedElement xmi:idref="ReadLinkObjectEndAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-association_of_association-_ownedComment.0" body="The association of the end must be an AssociationClass.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-association_of_association"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndAction-association_of_association-_specification">
<body>end.association.oclIsKindOf(AssociationClass)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadLinkObjectEndAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndAction-end" name="end" type="Property" association="A_end_readLinkObjectEndAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-end-_ownedComment.0" body="The Association end to be read.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-end"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_readLinkObjectEndAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-object-_ownedComment.0" body="The input pin from which the link object is obtained.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readLinkObjectEndAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndAction-result-_ownedComment.0" body="The OutputPin where the result value is placed.">
<annotatedElement xmi:idref="ReadLinkObjectEndAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadLinkObjectEndQualifierAction" name="ReadLinkObjectEndQualifierAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-_ownedComment.0" body="A ReadLinkObjectEndQualifierAction is an Action that retrieves a qualifier end value from a link object.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_object" name="multiplicity_of_object">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_object-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-multiplicity_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_object-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-type_of_object" name="type_of_object">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-type_of_object-_ownedComment.0" body="The type of the object InputPin is the AssociationClass that owns the Association end that has the given qualifier Property.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-type_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-type_of_object-_specification">
<body>object.type = qualifier.associationEnd.association</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_qualifier" name="multiplicity_of_qualifier">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_qualifier-_ownedComment.0" body="The multiplicity of the qualifier Property is 1..1.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-multiplicity_of_qualifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_qualifier-_specification">
<body>qualifier.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-ends_of_association" name="ends_of_association">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-ends_of_association-_ownedComment.0" body="The ends of the Association must not be static.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-ends_of_association"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-ends_of_association-_specification">
<body>qualifier.associationEnd.association.memberEnd->forAll(e | not e.isStatic)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_result" name="multiplicity_of_result">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_result-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-multiplicity_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-multiplicity_of_result-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-same_type" name="same_type">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-same_type-_ownedComment.0" body="The type of the result OutputPin is the same as the type of the qualifier Property.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-same_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-same_type-_specification">
<body>result.type = qualifier.type</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-association_of_association" name="association_of_association">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-association_of_association-_ownedComment.0" body="The association of the Association end of the qualifier Property must be an AssociationClass.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-association_of_association"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-association_of_association-_specification">
<body>qualifier.associationEnd.association.oclIsKindOf(AssociationClass)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadLinkObjectEndQualifierAction-qualifier_attribute" name="qualifier_attribute">
<constrainedElement xmi:idref="ReadLinkObjectEndQualifierAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-qualifier_attribute-_ownedComment.0" body="The qualifier Property must be a qualifier of an Association end.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-qualifier_attribute"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadLinkObjectEndQualifierAction-qualifier_attribute-_specification">
<body>qualifier.associationEnd <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadLinkObjectEndQualifierAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndQualifierAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_readLinkObjectEndQualifierAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-object-_ownedComment.0" body="The InputPin from which the link object is obtained.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndQualifierAction-qualifier" name="qualifier" type="Property" association="A_qualifier_readLinkObjectEndQualifierAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-qualifier-_ownedComment.0" body="The qualifier Property to be read.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-qualifier"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadLinkObjectEndQualifierAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readLinkObjectEndQualifierAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadLinkObjectEndQualifierAction-result-_ownedComment.0" body="The OutputPin where the result value is placed.">
<annotatedElement xmi:idref="ReadLinkObjectEndQualifierAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadSelfAction" name="ReadSelfAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-_ownedComment.0" body="A ReadSelfAction is an Action that retrieves the context object of the Behavior execution within which the ReadSelfAction execution is taking place.">
<annotatedElement xmi:idref="ReadSelfAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadSelfAction-contained" name="contained">
<constrainedElement xmi:idref="ReadSelfAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-contained-_ownedComment.0" body="A ReadSelfAction must have a context Classifier.">
<annotatedElement xmi:idref="ReadSelfAction-contained"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadSelfAction-contained-_specification">
<body>_'context' <> null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadSelfAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ReadSelfAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-multiplicity-_ownedComment.0" body="The multiplicity of the result OutputPin is 1..1.">
<annotatedElement xmi:idref="ReadSelfAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadSelfAction-multiplicity-_specification">
<body>result.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadSelfAction-not_static" name="not_static">
<constrainedElement xmi:idref="ReadSelfAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-not_static-_ownedComment.0" body="If the ReadSelfAction is contained in an Behavior that is acting as a method, then the Operation of the method must not be static.">
<annotatedElement xmi:idref="ReadSelfAction-not_static"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadSelfAction-not_static-_specification">
<body>let behavior: Behavior = self.containingBehavior() in behavior.specification<>null implies not behavior.specification.isStatic</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadSelfAction-type" name="type">
<constrainedElement xmi:idref="ReadSelfAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-type-_ownedComment.0" body="The type of the result OutputPin is the context Classifier.">
<annotatedElement xmi:idref="ReadSelfAction-type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadSelfAction-type-_specification">
<body>result.type = _'context'</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadSelfAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadSelfAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readSelfAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadSelfAction-result-_ownedComment.0" body="The OutputPin on which the context object is placed.">
<annotatedElement xmi:idref="ReadSelfAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadStructuralFeatureAction" name="ReadStructuralFeatureAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadStructuralFeatureAction-_ownedComment.0" body="A ReadStructuralFeatureAction is a StructuralFeatureAction that retrieves the values of a StructuralFeature.">
<annotatedElement xmi:idref="ReadStructuralFeatureAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadStructuralFeatureAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ReadStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadStructuralFeatureAction-multiplicity-_ownedComment.0" body="The multiplicity of the StructuralFeature must be compatible with the multiplicity of the result OutputPin.">
<annotatedElement xmi:idref="ReadStructuralFeatureAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadStructuralFeatureAction-multiplicity-_specification">
<body>structuralFeature.compatibleWith(result)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadStructuralFeatureAction-type_and_ordering" name="type_and_ordering">
<constrainedElement xmi:idref="ReadStructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadStructuralFeatureAction-type_and_ordering-_ownedComment.0" body="The type and ordering of the result OutputPin are the same as the type and ordering of the StructuralFeature.">
<annotatedElement xmi:idref="ReadStructuralFeatureAction-type_and_ordering"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadStructuralFeatureAction-type_and_ordering-_specification">
<body>result.type =structuralFeature.type and result.isOrdered = structuralFeature.isOrdered </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadStructuralFeatureAction-_generalization.0" general="StructuralFeatureAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadStructuralFeatureAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readStructuralFeatureAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadStructuralFeatureAction-result-_ownedComment.0" body="The OutputPin on which the result values are placed.">
<annotatedElement xmi:idref="ReadStructuralFeatureAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReadVariableAction" name="ReadVariableAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReadVariableAction-_ownedComment.0" body="A ReadVariableAction is a VariableAction that retrieves the values of a Variable.">
<annotatedElement xmi:idref="ReadVariableAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadVariableAction-type_and_ordering" name="type_and_ordering">
<constrainedElement xmi:idref="ReadVariableAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadVariableAction-type_and_ordering-_ownedComment.0" body="The type and ordering of the result OutputPin are the same as the type and ordering of the variable.">
<annotatedElement xmi:idref="ReadVariableAction-type_and_ordering"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadVariableAction-type_and_ordering-_specification">
<body>result.type =variable.type and result.isOrdered = variable.isOrdered </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReadVariableAction-compatible_multiplicity" name="compatible_multiplicity">
<constrainedElement xmi:idref="ReadVariableAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadVariableAction-compatible_multiplicity-_ownedComment.0" body="The multiplicity of the variable must be compatible with the multiplicity of the output pin.">
<annotatedElement xmi:idref="ReadVariableAction-compatible_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReadVariableAction-compatible_multiplicity-_specification">
<body>variable.compatibleWith(result)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReadVariableAction-_generalization.0" general="VariableAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReadVariableAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_readVariableAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReadVariableAction-result-_ownedComment.0" body="The OutputPin on which the result values are placed.">
<annotatedElement xmi:idref="ReadVariableAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReclassifyObjectAction" name="ReclassifyObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-_ownedComment.0" body="A ReclassifyObjectAction is an Action that changes the Classifiers that classify an object.">
<annotatedElement xmi:idref="ReclassifyObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReclassifyObjectAction-input_pin" name="input_pin">
<constrainedElement xmi:idref="ReclassifyObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-input_pin-_ownedComment.0" body="The object InputPin has no type.">
<annotatedElement xmi:idref="ReclassifyObjectAction-input_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReclassifyObjectAction-input_pin-_specification">
<body>object.type = null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReclassifyObjectAction-classifier_not_abstract" name="classifier_not_abstract">
<constrainedElement xmi:idref="ReclassifyObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-classifier_not_abstract-_ownedComment.0" body="None of the newClassifiers may be abstract.">
<annotatedElement xmi:idref="ReclassifyObjectAction-classifier_not_abstract"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReclassifyObjectAction-classifier_not_abstract-_specification">
<body>not newClassifier->exists(isAbstract)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReclassifyObjectAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="ReclassifyObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-multiplicity-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1.">
<annotatedElement xmi:idref="ReclassifyObjectAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReclassifyObjectAction-multiplicity-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReclassifyObjectAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReclassifyObjectAction-isReplaceAll" name="isReplaceAll">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-isReplaceAll-_ownedComment.0" body="Specifies whether existing Classifiers should be removed before adding the new Classifiers.">
<annotatedElement xmi:idref="ReclassifyObjectAction-isReplaceAll"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ReclassifyObjectAction-isReplaceAll-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReclassifyObjectAction-newClassifier" name="newClassifier" type="Classifier" association="A_newClassifier_reclassifyObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-newClassifier-_ownedComment.0" body="A set of Classifiers to be added to the Classifiers of the given object.">
<annotatedElement xmi:idref="ReclassifyObjectAction-newClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ReclassifyObjectAction-newClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ReclassifyObjectAction-newClassifier-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReclassifyObjectAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_reclassifyObjectAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-object-_ownedComment.0" body="The InputPin that holds the object to be reclassified.">
<annotatedElement xmi:idref="ReclassifyObjectAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReclassifyObjectAction-oldClassifier" name="oldClassifier" type="Classifier" association="A_oldClassifier_reclassifyObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReclassifyObjectAction-oldClassifier-_ownedComment.0" body="A set of Classifiers to be removed from the Classifiers of the given object.">
<annotatedElement xmi:idref="ReclassifyObjectAction-oldClassifier"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ReclassifyObjectAction-oldClassifier-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ReclassifyObjectAction-oldClassifier-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReduceAction" name="ReduceAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-_ownedComment.0" body="A ReduceAction is an Action that reduces a collection to a single value by repeatedly combining the elements of the collection using a reducer Behavior.">
<annotatedElement xmi:idref="ReduceAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReduceAction-reducer_inputs_output" name="reducer_inputs_output">
<constrainedElement xmi:idref="ReduceAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-reducer_inputs_output-_ownedComment.0" body="The reducer Behavior must have two input ownedParameters and one output ownedParameter, where the type of the output Parameter and the type of elements of the input collection conform to the types of the input Parameters.">
<annotatedElement xmi:idref="ReduceAction-reducer_inputs_output"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReduceAction-reducer_inputs_output-_specification">
<body>let inputs: OrderedSet(Parameter) = reducer.inputParameters() in let outputs: OrderedSet(Parameter) = reducer.outputParameters() in inputs->size()=2 and outputs->size()=1 and inputs.type->forAll(t | outputs.type->forAll(conformsTo(t)) and -- Note that the following only checks the case when the collection is via multiple tokens. collection.upperBound()>1 implies collection.type.conformsTo(t))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReduceAction-input_type_is_collection" name="input_type_is_collection">
<constrainedElement xmi:idref="ReduceAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-input_type_is_collection-_ownedComment.0" body="The type of the collection InputPin must be a collection.">
<annotatedElement xmi:idref="ReduceAction-input_type_is_collection"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReduceAction-input_type_is_collection-_specification"/>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReduceAction-output_types_are_compatible" name="output_types_are_compatible">
<constrainedElement xmi:idref="ReduceAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-output_types_are_compatible-_ownedComment.0" body="The type of the output of the reducer Behavior must conform to the type of the result OutputPin.">
<annotatedElement xmi:idref="ReduceAction-output_types_are_compatible"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReduceAction-output_types_are_compatible-_specification">
<body>reducer.outputParameters().type->forAll(conformsTo(result.type))</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReduceAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReduceAction-collection" name="collection" aggregation="composite" type="InputPin" association="A_collection_reduceAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-collection-_ownedComment.0" body="The InputPin that provides the collection to be reduced.">
<annotatedElement xmi:idref="ReduceAction-collection"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReduceAction-isOrdered" name="isOrdered">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-isOrdered-_ownedComment.0" body="Indicates whether the order of the input collection should determine the order in which the reducer Behavior is applied to its elements.">
<annotatedElement xmi:idref="ReduceAction-isOrdered"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="ReduceAction-isOrdered-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReduceAction-reducer" name="reducer" type="Behavior" association="A_reducer_reduceAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-reducer-_ownedComment.0" body="A Behavior that is repreatedly applied to two elements of the input collection to produce a value that is of the same type as elements of the collection.">
<annotatedElement xmi:idref="ReduceAction-reducer"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReduceAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_reduceAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReduceAction-result-_ownedComment.0" body="The output pin on which the result value is placed.">
<annotatedElement xmi:idref="ReduceAction-result"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="RemoveStructuralFeatureValueAction" name="RemoveStructuralFeatureValueAction">
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveStructuralFeatureValueAction-_ownedComment.0" body="A RemoveStructuralFeatureValueAction is a WriteStructuralFeatureAction that removes values from a StructuralFeature.">
<annotatedElement xmi:idref="RemoveStructuralFeatureValueAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RemoveStructuralFeatureValueAction-removeAt_and_value" name="removeAt_and_value">
<constrainedElement xmi:idref="RemoveStructuralFeatureValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveStructuralFeatureValueAction-removeAt_and_value-_ownedComment.0" body="RemoveStructuralFeatureValueActions removing a value from ordered, non-unique StructuralFeatures must have a single removeAt InputPin and no value InputPin, if isRemoveDuplicates is false. The removeAt InputPin must be of type Unlimited Natural with multiplicity 1..1. Otherwise, the Action has a value InputPin and no removeAt InputPin.">
<annotatedElement xmi:idref="RemoveStructuralFeatureValueAction-removeAt_and_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RemoveStructuralFeatureValueAction-removeAt_and_value-_specification">
<body>if structuralFeature.isOrdered and not structuralFeature.isUnique and not isRemoveDuplicates then value = null and removeAt <> null and removeAt.type = UnlimitedNatural and removeAt.is(1,1) else removeAt = null and value <> null endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="RemoveStructuralFeatureValueAction-_generalization.0" general="WriteStructuralFeatureAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="RemoveStructuralFeatureValueAction-isRemoveDuplicates" name="isRemoveDuplicates">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveStructuralFeatureValueAction-isRemoveDuplicates-_ownedComment.0" body="Specifies whether to remove duplicates of the value in nonunique StructuralFeatures.">
<annotatedElement xmi:idref="RemoveStructuralFeatureValueAction-isRemoveDuplicates"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="RemoveStructuralFeatureValueAction-isRemoveDuplicates-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RemoveStructuralFeatureValueAction-removeAt" name="removeAt" aggregation="composite" type="InputPin" association="A_removeAt_removeStructuralFeatureValueAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveStructuralFeatureValueAction-removeAt-_ownedComment.0" body="An InputPin that provides the position of an existing value to remove in ordered, nonunique structural features. The type of the removeAt InputPin is UnlimitedNatural, but the value cannot be zero or unlimited.">
<annotatedElement xmi:idref="RemoveStructuralFeatureValueAction-removeAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RemoveStructuralFeatureValueAction-removeAt-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="RemoveVariableValueAction" name="RemoveVariableValueAction">
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveVariableValueAction-_ownedComment.0" body="A RemoveVariableValueAction is a WriteVariableAction that removes values from a Variables.">
<annotatedElement xmi:idref="RemoveVariableValueAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="RemoveVariableValueAction-removeAt_and_value" name="removeAt_and_value">
<constrainedElement xmi:idref="RemoveVariableValueAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveVariableValueAction-removeAt_and_value-_ownedComment.0" body="ReadVariableActions removing a value from ordered, non-unique Variables must have a single removeAt InputPin and no value InputPin, if isRemoveDuplicates is false. The removeAt InputPin must be of type Unlimited Natural with multiplicity 1..1. Otherwise, the Action has a value InputPin and no removeAt InputPin.">
<annotatedElement xmi:idref="RemoveVariableValueAction-removeAt_and_value"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="RemoveVariableValueAction-removeAt_and_value-_specification">
<body>if variable.isOrdered and not variable.isUnique and not isRemoveDuplicates then value = null and removeAt <> null and removeAt.type = UnlimitedNatural and removeAt.is(1,1) else removeAt = null and value <> null endif</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="RemoveVariableValueAction-_generalization.0" general="WriteVariableAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="RemoveVariableValueAction-isRemoveDuplicates" name="isRemoveDuplicates">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveVariableValueAction-isRemoveDuplicates-_ownedComment.0" body="Specifies whether to remove duplicates of the value in nonunique Variables.">
<annotatedElement xmi:idref="RemoveVariableValueAction-isRemoveDuplicates"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="RemoveVariableValueAction-isRemoveDuplicates-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="RemoveVariableValueAction-removeAt" name="removeAt" aggregation="composite" type="InputPin" association="A_removeAt_removeVariableValueAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="RemoveVariableValueAction-removeAt-_ownedComment.0" body="An InputPin that provides the position of an existing value to remove in ordered, nonunique Variables. The type of the removeAt InputPin is UnlimitedNatural, but the value cannot be zero or unlimited.">
<annotatedElement xmi:idref="RemoveVariableValueAction-removeAt"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="RemoveVariableValueAction-removeAt-_lowerValue"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ReplyAction" name="ReplyAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-_ownedComment.0" body="A ReplyAction is an Action that accepts a set of reply values and a value containing return information produced by a previous AcceptCallAction. The ReplyAction returns the values to the caller of the previous call, completing execution of the call.">
<annotatedElement xmi:idref="ReplyAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReplyAction-pins_match_parameter" name="pins_match_parameter">
<constrainedElement xmi:idref="ReplyAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-pins_match_parameter-_ownedComment.0" body="The replyValue InputPins must match the output (return, out, and inout) parameters of the operation of the event of the replyToCall Trigger in number, type, ordering, and multiplicity.">
<annotatedElement xmi:idref="ReplyAction-pins_match_parameter"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReplyAction-pins_match_parameter-_specification">
<body>let parameter:OrderedSet(Parameter) = replyToCall.event.oclAsType(CallEvent).operation.outputParameters() in replyValue->size()=parameter->size() and Sequence{1..replyValue->size()}->forAll(i | replyValue->at(i).type.conformsTo(parameter->at(i).type) and replyValue->at(i).isOrdered=parameter->at(i).isOrdered and replyValue->at(i).compatibleWith(parameter->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ReplyAction-event_on_reply_to_call_trigger" name="event_on_reply_to_call_trigger">
<constrainedElement xmi:idref="ReplyAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-event_on_reply_to_call_trigger-_ownedComment.0" body="The event of the replyToCall Trigger must be a CallEvent.">
<annotatedElement xmi:idref="ReplyAction-event_on_reply_to_call_trigger"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ReplyAction-event_on_reply_to_call_trigger-_specification">
<body>replyToCall.event.oclIsKindOf(CallEvent)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ReplyAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReplyAction-replyToCall" name="replyToCall" type="Trigger" association="A_replyToCall_replyAction">
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-replyToCall-_ownedComment.0" body="The Trigger specifying the Operation whose call is being replied to.">
<annotatedElement xmi:idref="ReplyAction-replyToCall"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReplyAction-replyValue" name="replyValue" isOrdered="true" aggregation="composite" type="InputPin" association="A_replyValue_replyAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-replyValue-_ownedComment.0" body="A list of InputPins providing the values for the output (inout, out, and return) Parameters of the Operation. These values are returned to the caller.">
<annotatedElement xmi:idref="ReplyAction-replyValue"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="ReplyAction-replyValue-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="ReplyAction-replyValue-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="ReplyAction-returnInformation" name="returnInformation" aggregation="composite" type="InputPin" association="A_returnInformation_replyAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ReplyAction-returnInformation-_ownedComment.0" body="An InputPin that holds the return information value produced by an earlier AcceptCallAction.">
<annotatedElement xmi:idref="ReplyAction-returnInformation"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="SendObjectAction" name="SendObjectAction">
<ownedComment xmi:type="uml:Comment" xmi:id="SendObjectAction-_ownedComment.0" body="A SendObjectAction is an InvocationAction that transmits an input object to the target object, which is handled as a request message by the target object. The requestor continues execution immediately after the object is sent out and cannot receive reply values.">
<annotatedElement xmi:idref="SendObjectAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="SendObjectAction-type_target_pin" name="type_target_pin">
<constrainedElement xmi:idref="SendObjectAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendObjectAction-type_target_pin-_ownedComment.0" body="If onPort is not empty, the Port given by onPort must be an owned or inherited feature of the type of the target InputPin.">
<annotatedElement xmi:idref="SendObjectAction-type_target_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="SendObjectAction-type_target_pin-_specification">
<body>onPort<>null implies target.type.oclAsType(Classifier).allFeatures()->includes(onPort)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="SendObjectAction-_generalization.0" general="InvocationAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="SendObjectAction-request" name="request" aggregation="composite" type="InputPin" association="A_request_sendObjectAction">
<redefinedProperty xmi:idref="InvocationAction-argument"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendObjectAction-request-_ownedComment.0" body="The request object, which is transmitted to the target object. The object may be copied in transmission, so identity might not be preserved.">
<annotatedElement xmi:idref="SendObjectAction-request"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="SendObjectAction-target" name="target" aggregation="composite" type="InputPin" association="A_target_sendObjectAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendObjectAction-target-_ownedComment.0" body="The target object to which the object is sent.">
<annotatedElement xmi:idref="SendObjectAction-target"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="SendSignalAction" name="SendSignalAction">
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-_ownedComment.0" body="A SendSignalAction is an InvocationAction that creates a Signal instance and transmits it to the target object. Values from the argument InputPins are used to provide values for the attributes of the Signal. The requestor continues execution immediately after the Signal instance is sent out and cannot receive reply values.">
<annotatedElement xmi:idref="SendSignalAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="SendSignalAction-type_ordering_multiplicity" name="type_ordering_multiplicity">
<constrainedElement xmi:idref="SendSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-type_ordering_multiplicity-_ownedComment.0" body="The type, ordering, and multiplicity of an argument InputPin must be the same as the corresponding attribute of the signal.">
<annotatedElement xmi:idref="SendSignalAction-type_ordering_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="SendSignalAction-type_ordering_multiplicity-_specification">
<body>let attribute: OrderedSet(Property) = signal.allAttributes() in Sequence{1..argument->size()}->forAll(i | argument->at(i).type.conformsTo(attribute->at(i).type) and argument->at(i).isOrdered = attribute->at(i).isOrdered and argument->at(i).compatibleWith(attribute->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="SendSignalAction-number_order" name="number_order">
<constrainedElement xmi:idref="SendSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-number_order-_ownedComment.0" body="The number and order of argument InputPins must be the same as the number and order of attributes of the signal.">
<annotatedElement xmi:idref="SendSignalAction-number_order"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="SendSignalAction-number_order-_specification">
<body>argument->size()=signal.allAttributes()->size()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="SendSignalAction-type_target_pin" name="type_target_pin">
<constrainedElement xmi:idref="SendSignalAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-type_target_pin-_ownedComment.0" body="If onPort is not empty, the Port given by onPort must be an owned or inherited feature of the type of the target InputPin.">
<annotatedElement xmi:idref="SendSignalAction-type_target_pin"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="SendSignalAction-type_target_pin-_specification">
<body>not onPort->isEmpty() implies target.type.oclAsType(Classifier).allFeatures()->includes(onPort) </body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="SendSignalAction-_generalization.0" general="InvocationAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="SendSignalAction-signal" name="signal" type="Signal" association="A_signal_sendSignalAction">
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-signal-_ownedComment.0" body="The Signal whose instance is transmitted to the target.">
<annotatedElement xmi:idref="SendSignalAction-signal"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="SendSignalAction-target" name="target" aggregation="composite" type="InputPin" association="A_target_sendSignalAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SendSignalAction-target-_ownedComment.0" body="The InputPin that provides the target object to which the Signal instance is sent.">
<annotatedElement xmi:idref="SendSignalAction-target"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="SequenceNode" name="SequenceNode">
<ownedComment xmi:type="uml:Comment" xmi:id="SequenceNode-_ownedComment.0" body="A SequenceNode is a StructuredActivityNode that executes a sequence of ExecutableNodes in order.">
<annotatedElement xmi:idref="SequenceNode"/>
</ownedComment>
<generalization xmi:type="uml:Generalization" xmi:id="SequenceNode-_generalization.0" general="StructuredActivityNode"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="SequenceNode-executableNode" name="executableNode" isOrdered="true" aggregation="composite" type="ExecutableNode" association="A_executableNode_sequenceNode">
<redefinedProperty xmi:idref="StructuredActivityNode-node"/>
<ownedComment xmi:type="uml:Comment" xmi:id="SequenceNode-executableNode-_ownedComment.0" body="The ordered set of ExecutableNodes to be sequenced.">
<annotatedElement xmi:idref="SequenceNode-executableNode"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="SequenceNode-executableNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="SequenceNode-executableNode-_upperValue" value="*"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StartClassifierBehaviorAction" name="StartClassifierBehaviorAction">
<ownedComment xmi:type="uml:Comment" xmi:id="StartClassifierBehaviorAction-_ownedComment.0" body="A StartClassifierBehaviorAction is an Action that starts the classifierBehavior of the input object.">
<annotatedElement xmi:idref="StartClassifierBehaviorAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartClassifierBehaviorAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="StartClassifierBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartClassifierBehaviorAction-multiplicity-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1">
<annotatedElement xmi:idref="StartClassifierBehaviorAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartClassifierBehaviorAction-multiplicity-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartClassifierBehaviorAction-type_has_classifier" name="type_has_classifier">
<constrainedElement xmi:idref="StartClassifierBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartClassifierBehaviorAction-type_has_classifier-_ownedComment.0" body="If the InputPin has a type, then the type or one of its ancestors must have a classifierBehavior.">
<annotatedElement xmi:idref="StartClassifierBehaviorAction-type_has_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartClassifierBehaviorAction-type_has_classifier-_specification">
<body>object.type->notEmpty() implies (object.type.oclIsKindOf(BehavioredClassifier) and object.type.oclAsType(BehavioredClassifier).classifierBehavior<>null)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StartClassifierBehaviorAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StartClassifierBehaviorAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_startClassifierBehaviorAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartClassifierBehaviorAction-object-_ownedComment.0" body="The InputPin that holds the object whose classifierBehavior is to be started.">
<annotatedElement xmi:idref="StartClassifierBehaviorAction-object"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StartObjectBehaviorAction" name="StartObjectBehaviorAction">
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-_ownedComment.0" body="A StartObjectBehaviorAction is an InvocationAction that starts the execution either of a directly instantiated Behavior or of the classifierBehavior of an object. Argument values may be supplied for the input Parameters of the Behavior. If the Behavior is invoked synchronously, then output values may be obtained for output Parameters.">
<annotatedElement xmi:idref="StartObjectBehaviorAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-multiplicity_of_object" name="multiplicity_of_object">
<constrainedElement xmi:idref="StartObjectBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-multiplicity_of_object-_ownedComment.0" body="The multiplicity of the object InputPin must be 1..1.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-multiplicity_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-multiplicity_of_object-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-type_of_object" name="type_of_object">
<constrainedElement xmi:idref="StartObjectBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-type_of_object-_ownedComment.0" body="The type of the object InputPin must be either a Behavior or a BehavioredClassifier with a classifierBehavior.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-type_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-type_of_object-_specification">
<body>self.behavior()<>null</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-no_onport" name="no_onport">
<constrainedElement xmi:idref="StartObjectBehaviorAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-no_onport-_ownedComment.0" body="A StartObjectBehaviorAction may not specify onPort.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-no_onport"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-no_onport-_specification">
<body>onPort->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StartObjectBehaviorAction-_generalization.0" general="CallAction"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StartObjectBehaviorAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_startObjectBehaviorAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-object-_ownedComment.0" body="An InputPin that holds the object that is either a Behavior to be started or has a classifierBehavior to be started.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="StartObjectBehaviorAction-outputParameters" name="outputParameters" isQuery="true" bodyCondition="StartObjectBehaviorAction-outputParameters-spec">
<redefinedOperation xmi:idref="CallAction-outputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-outputParameters-_ownedComment.0" body="Return the inout, out and return ownedParameters of the Behavior being called.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-outputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-outputParameters-spec" name="spec">
<constrainedElement xmi:idref="StartObjectBehaviorAction-outputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-outputParameters-spec-_specification">
<body>result = (self.behavior().outputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StartObjectBehaviorAction-outputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StartObjectBehaviorAction-outputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StartObjectBehaviorAction-outputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StartObjectBehaviorAction-inputParameters" name="inputParameters" isQuery="true" bodyCondition="StartObjectBehaviorAction-inputParameters-spec">
<redefinedOperation xmi:idref="CallAction-inputParameters"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-inputParameters-_ownedComment.0" body="Return the in and inout ownedParameters of the Behavior being called.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-inputParameters"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-inputParameters-spec" name="spec">
<constrainedElement xmi:idref="StartObjectBehaviorAction-inputParameters"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-inputParameters-spec-_specification">
<body>result = (self.behavior().inputParameters())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StartObjectBehaviorAction-inputParameters-result" isOrdered="true" name="result" direction="return" type="Parameter">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StartObjectBehaviorAction-inputParameters-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StartObjectBehaviorAction-inputParameters-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StartObjectBehaviorAction-behavior" name="behavior" isQuery="true" bodyCondition="StartObjectBehaviorAction-behavior-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StartObjectBehaviorAction-behavior-_ownedComment.0" body="If the type of the object InputPin is a Behavior, then that Behavior. Otherwise, if the type of the object InputPin is a BehavioredClassifier, then the classifierBehavior of that BehavioredClassifier.">
<annotatedElement xmi:idref="StartObjectBehaviorAction-behavior"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StartObjectBehaviorAction-behavior-spec" name="spec">
<constrainedElement xmi:idref="StartObjectBehaviorAction-behavior"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StartObjectBehaviorAction-behavior-spec-_specification">
<body>result = (if object.type.oclIsKindOf(Behavior) then object.type.oclAsType(Behavior) else if object.type.oclIsKindOf(BehavioredClassifier) then object.type.oclAsType(BehavioredClassifier).classifierBehavior else null endif endif)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StartObjectBehaviorAction-behavior-result" name="result" direction="return" type="Behavior">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StartObjectBehaviorAction-behavior-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StructuralFeatureAction" name="StructuralFeatureAction" isAbstract="true">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-_ownedComment.0" body="StructuralFeatureAction is an abstract class for all Actions that operate on StructuralFeatures.">
<annotatedElement xmi:idref="StructuralFeatureAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuralFeatureAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="StructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-multiplicity-_ownedComment.0" body="The multiplicity of the object InputPin must be 1..1.">
<annotatedElement xmi:idref="StructuralFeatureAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuralFeatureAction-multiplicity-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuralFeatureAction-object_type" name="object_type">
<constrainedElement xmi:idref="StructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-object_type-_ownedComment.0" body="The structuralFeature must either be an owned or inherited feature of the type of the object InputPin, or it must be an owned end of a binary Association whose opposite end had as a type to which the type of the object InputPin conforms.">
<annotatedElement xmi:idref="StructuralFeatureAction-object_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuralFeatureAction-object_type-_specification">
<body>object.type.oclAsType(Classifier).allFeatures()->includes(structuralFeature) or object.type.conformsTo(structuralFeature.oclAsType(Property).opposite.type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuralFeatureAction-visibility" name="visibility">
<constrainedElement xmi:idref="StructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-visibility-_ownedComment.0" body="The visibility of the structuralFeature must allow access from the object performing the ReadStructuralFeatureAction.">
<annotatedElement xmi:idref="StructuralFeatureAction-visibility"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuralFeatureAction-visibility-_specification">
<body>structuralFeature.visibility = VisibilityKind::public or _'context'.allFeatures()->includes(structuralFeature) or structuralFeature.visibility=VisibilityKind::protected and _'context'.conformsTo(structuralFeature.oclAsType(Property).opposite.type.oclAsType(Classifier)) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuralFeatureAction-not_static" name="not_static">
<constrainedElement xmi:idref="StructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-not_static-_ownedComment.0" body="The structuralFeature must not be static.">
<annotatedElement xmi:idref="StructuralFeatureAction-not_static"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuralFeatureAction-not_static-_specification">
<body>not structuralFeature.isStatic</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuralFeatureAction-one_featuring_classifier" name="one_featuring_classifier">
<constrainedElement xmi:idref="StructuralFeatureAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-one_featuring_classifier-_ownedComment.0" body="The structuralFeature must have exactly one featuringClassifier.">
<annotatedElement xmi:idref="StructuralFeatureAction-one_featuring_classifier"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuralFeatureAction-one_featuring_classifier-_specification">
<body>structuralFeature.featuringClassifier->size() = 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StructuralFeatureAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuralFeatureAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_structuralFeatureAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-object-_ownedComment.0" body="The InputPin from which the object whose StructuralFeature is to be read or written is obtained.">
<annotatedElement xmi:idref="StructuralFeatureAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuralFeatureAction-structuralFeature" name="structuralFeature" type="StructuralFeature" association="A_structuralFeature_structuralFeatureAction">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuralFeatureAction-structuralFeature-_ownedComment.0" body="The StructuralFeature to be read or written.">
<annotatedElement xmi:idref="StructuralFeatureAction-structuralFeature"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="StructuredActivityNode" name="StructuredActivityNode">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-_ownedComment.0" body="A StructuredActivityNode is an Action that is also an ActivityGroup and whose behavior is specified by the ActivityNodes and ActivityEdges it so contains. Unlike other kinds of ActivityGroup, a StructuredActivityNode owns the ActivityNodes and ActivityEdges it contains, and so a node or edge can only be directly contained in one StructuredActivityNode, though StructuredActivityNodes may be nested.">
<annotatedElement xmi:idref="StructuredActivityNode"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-output_pin_edges" name="output_pin_edges">
<constrainedElement xmi:idref="StructuredActivityNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-output_pin_edges-_ownedComment.0" body="The outgoing ActivityEdges of the OutputPins of a StructuredActivityNode must have targets that are not within the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-output_pin_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-output_pin_edges-_specification">
<body>output.outgoing.target->excludesAll(allOwnedNodes()-input)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-edges" name="edges">
<constrainedElement xmi:idref="StructuredActivityNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-edges-_ownedComment.0" body="The edges of a StructuredActivityNode are all the ActivityEdges with source and target ActivityNodes contained directly or indirectly within the StructuredActivityNode and at least one of the source or target not contained in any more deeply nested StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-edges-_specification">
<body>edge=self.sourceNodes().outgoing->intersection(self.allOwnedNodes().incoming)-> union(self.targetNodes().incoming->intersection(self.allOwnedNodes().outgoing))->asSet()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-input_pin_edges" name="input_pin_edges">
<constrainedElement xmi:idref="StructuredActivityNode"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-input_pin_edges-_ownedComment.0" body="The incoming ActivityEdges of an InputPin of a StructuredActivityNode must have sources that are not within the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-input_pin_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-input_pin_edges-_specification">
<body>input.incoming.source->excludesAll(allOwnedNodes()-output)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="StructuredActivityNode-_generalization.0" general="Namespace"/>
<generalization xmi:type="uml:Generalization" xmi:id="StructuredActivityNode-_generalization.2" general="ActivityGroup"/>
<generalization xmi:type="uml:Generalization" xmi:id="StructuredActivityNode-_generalization.1" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-activity" name="activity" type="Activity" association="A_structuredNode_activity">
<redefinedProperty xmi:idref="ActivityGroup-inActivity"/>
<redefinedProperty xmi:idref="ActivityNode-activity"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-activity-_ownedComment.0" body="The Activity immediately containing the StructuredActivityNode, if it is not contained in another StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-activity"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-activity-_lowerValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-edge" name="edge" aggregation="composite" type="ActivityEdge" association="A_edge_inStructuredNode">
<subsettedProperty xmi:idref="ActivityGroup-containedEdge"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-edge-_ownedComment.0" body="The ActivityEdges immediately contained in the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-edge"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-edge-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-edge-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-mustIsolate" name="mustIsolate">
<type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-mustIsolate-_ownedComment.0" body="If true, then any object used by an Action within the StructuredActivityNode cannot be accessed by any Action outside the node until the StructuredActivityNode 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 StructuredActivityNode. ">
<annotatedElement xmi:idref="StructuredActivityNode-mustIsolate"/>
</ownedComment>
<defaultValue xmi:type="uml:LiteralBoolean" xmi:id="StructuredActivityNode-mustIsolate-_defaultValue"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-node" name="node" aggregation="composite" type="ActivityNode" association="A_node_inStructuredNode">
<subsettedProperty xmi:idref="ActivityGroup-containedNode"/>
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-node-_ownedComment.0" body="The ActivityNodes immediately contained in the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-node"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-node-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-node-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-structuredNodeInput" name="structuredNodeInput" aggregation="composite" type="InputPin" association="A_structuredNodeInput_structuredActivityNode">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-structuredNodeInput-_ownedComment.0" body="The InputPins owned by the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-structuredNodeInput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-structuredNodeInput-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-structuredNodeInput-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-structuredNodeOutput" name="structuredNodeOutput" aggregation="composite" type="OutputPin" association="A_structuredNodeOutput_structuredActivityNode">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-structuredNodeOutput-_ownedComment.0" body="The OutputPins owned by the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-structuredNodeOutput"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-structuredNodeOutput-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-structuredNodeOutput-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="StructuredActivityNode-variable" name="variable" aggregation="composite" type="Variable" association="A_variable_scope">
<subsettedProperty xmi:idref="Namespace-ownedMember"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-variable-_ownedComment.0" body="The Variables defined in the scope of the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-variable"/>
</ownedComment>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-variable-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-variable-_upperValue" value="*"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredActivityNode-allActions" name="allActions" isQuery="true" bodyCondition="StructuredActivityNode-allActions-spec">
<redefinedOperation xmi:idref="Action-allActions"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-allActions-_ownedComment.0" body="Returns this StructuredActivityNode and all Actions contained in it.">
<annotatedElement xmi:idref="StructuredActivityNode-allActions"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-allActions-spec" name="spec">
<constrainedElement xmi:idref="StructuredActivityNode-allActions"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-allActions-spec-_specification">
<body>result = (node->select(oclIsKindOf(Action)).oclAsType(Action).allActions()->including(self)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredActivityNode-allActions-result" name="result" direction="return" type="Action">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-allActions-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-allActions-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredActivityNode-allOwnedNodes" name="allOwnedNodes" isQuery="true" bodyCondition="StructuredActivityNode-allOwnedNodes-spec">
<redefinedOperation xmi:idref="Action-allOwnedNodes"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-allOwnedNodes-_ownedComment.0" body="Returns all the ActivityNodes contained directly or indirectly within this StructuredActivityNode, in addition to the Pins of the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-allOwnedNodes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-allOwnedNodes-spec" name="spec">
<constrainedElement xmi:idref="StructuredActivityNode-allOwnedNodes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-allOwnedNodes-spec-_specification">
<body>result = (self.Action::allOwnedNodes()->union(node)->union(node->select(oclIsKindOf(Action)).oclAsType(Action).allOwnedNodes())->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredActivityNode-allOwnedNodes-result" name="result" direction="return" type="ActivityNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-allOwnedNodes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-allOwnedNodes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredActivityNode-sourceNodes" name="sourceNodes" isQuery="true" bodyCondition="StructuredActivityNode-sourceNodes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-sourceNodes-_ownedComment.0" body="Return those ActivityNodes contained immediately within the StructuredActivityNode that may act as sources of edges owned by the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-sourceNodes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-sourceNodes-spec" name="spec">
<constrainedElement xmi:idref="StructuredActivityNode-sourceNodes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-sourceNodes-spec-_specification">
<body>result = (node->union(input.oclAsType(ActivityNode)->asSet())-> union(node->select(oclIsKindOf(Action)).oclAsType(Action).output)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredActivityNode-sourceNodes-result" name="result" direction="return" type="ActivityNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-sourceNodes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-sourceNodes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredActivityNode-targetNodes" name="targetNodes" isQuery="true" bodyCondition="StructuredActivityNode-targetNodes-spec">
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-targetNodes-_ownedComment.0" body="Return those ActivityNodes contained immediately within the StructuredActivityNode that may act as targets of edges owned by the StructuredActivityNode.">
<annotatedElement xmi:idref="StructuredActivityNode-targetNodes"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-targetNodes-spec" name="spec">
<constrainedElement xmi:idref="StructuredActivityNode-targetNodes"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-targetNodes-spec-_specification">
<body>result = (node->union(output.oclAsType(ActivityNode)->asSet())-> union(node->select(oclIsKindOf(Action)).oclAsType(Action).input)->asSet())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredActivityNode-targetNodes-result" name="result" direction="return" type="ActivityNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-targetNodes-result-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="StructuredActivityNode-targetNodes-result-_upperValue" value="*"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:type="uml:Operation" xmi:id="StructuredActivityNode-containingActivity" name="containingActivity" isQuery="true" bodyCondition="StructuredActivityNode-containingActivity-spec">
<redefinedOperation xmi:idref="ActivityGroup-containingActivity"/>
<redefinedOperation xmi:idref="ActivityNode-containingActivity"/>
<ownedComment xmi:type="uml:Comment" xmi:id="StructuredActivityNode-containingActivity-_ownedComment.0" body="The Activity that directly or indirectly contains this StructuredActivityNode (considered as an Action).">
<annotatedElement xmi:idref="StructuredActivityNode-containingActivity"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="StructuredActivityNode-containingActivity-spec" name="spec">
<constrainedElement xmi:idref="StructuredActivityNode-containingActivity"/>
<specification xmi:type="uml:OpaqueExpression" xmi:id="StructuredActivityNode-containingActivity-spec-_specification">
<body>result = (self.Action::containingActivity())</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedParameter xmi:type="uml:Parameter" xmi:id="StructuredActivityNode-containingActivity-result" name="result" direction="return" type="Activity">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="StructuredActivityNode-containingActivity-result-_lowerValue"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="TestIdentityAction" name="TestIdentityAction">
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-_ownedComment.0" body="A TestIdentityAction is an Action that tests if two values are identical objects.">
<annotatedElement xmi:idref="TestIdentityAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="TestIdentityAction-multiplicity" name="multiplicity">
<constrainedElement xmi:idref="TestIdentityAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-multiplicity-_ownedComment.0" body="The multiplicity of the InputPins is 1..1.">
<annotatedElement xmi:idref="TestIdentityAction-multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TestIdentityAction-multiplicity-_specification">
<body>first.is(1,1) and second.is(1,1) </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="TestIdentityAction-no_type" name="no_type">
<constrainedElement xmi:idref="TestIdentityAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-no_type-_ownedComment.0" body="The InputPins have no type.">
<annotatedElement xmi:idref="TestIdentityAction-no_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TestIdentityAction-no_type-_specification">
<body>first.type= null and second.type = null </body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="TestIdentityAction-result_is_boolean" name="result_is_boolean">
<constrainedElement xmi:idref="TestIdentityAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-result_is_boolean-_ownedComment.0" body="The type of the result OutputPin is Boolean. ">
<annotatedElement xmi:idref="TestIdentityAction-result_is_boolean"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="TestIdentityAction-result_is_boolean-_specification">
<body>result.type=Boolean</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="TestIdentityAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="TestIdentityAction-first" name="first" aggregation="composite" type="InputPin" association="A_first_testIdentityAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-first-_ownedComment.0" body="The InputPin on which the first input object is placed.">
<annotatedElement xmi:idref="TestIdentityAction-first"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TestIdentityAction-result" name="result" aggregation="composite" type="OutputPin" association="A_result_testIdentityAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-result-_ownedComment.0" body="The OutputPin whose Boolean value indicates whether the two input objects are identical.">
<annotatedElement xmi:idref="TestIdentityAction-result"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="TestIdentityAction-second" name="second" aggregation="composite" type="InputPin" association="A_second_testIdentityAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="TestIdentityAction-second-_ownedComment.0" body="The OutputPin on which the second input object is placed.">
<annotatedElement xmi:idref="TestIdentityAction-second"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="UnmarshallAction" name="UnmarshallAction">
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-_ownedComment.0" body="An UnmarshallAction is an Action that retrieves the values of the StructuralFeatures of an object and places them on OutputPins. ">
<annotatedElement xmi:idref="UnmarshallAction"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="UnmarshallAction-structural_feature" name="structural_feature">
<constrainedElement xmi:idref="UnmarshallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-structural_feature-_ownedComment.0" body="The unmarshallType must have at least one StructuralFeature.">
<annotatedElement xmi:idref="UnmarshallAction-structural_feature"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UnmarshallAction-structural_feature-_specification">
<body>unmarshallType.allAttributes()->size() >= 1</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UnmarshallAction-number_of_result" name="number_of_result">
<constrainedElement xmi:idref="UnmarshallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-number_of_result-_ownedComment.0" body="The number of result outputPins must be the same as the number of attributes of the unmarshallType.">
<annotatedElement xmi:idref="UnmarshallAction-number_of_result"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UnmarshallAction-number_of_result-_specification">
<body>unmarshallType.allAttributes()->size() = result->size()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UnmarshallAction-type_ordering_and_multiplicity" name="type_ordering_and_multiplicity">
<constrainedElement xmi:idref="UnmarshallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-type_ordering_and_multiplicity-_ownedComment.0" body="The type, ordering and multiplicity of each attribute of the unmarshallType must be compatible with the type, ordering and multiplicity of the corresponding result OutputPin.">
<annotatedElement xmi:idref="UnmarshallAction-type_ordering_and_multiplicity"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UnmarshallAction-type_ordering_and_multiplicity-_specification">
<body>let attribute:OrderedSet(Property) = unmarshallType.allAttributes() in Sequence{1..result->size()}->forAll(i | attribute->at(i).type.conformsTo(result->at(i).type) and attribute->at(i).isOrdered=result->at(i).isOrdered and attribute->at(i).compatibleWith(result->at(i)))</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UnmarshallAction-multiplicity_of_object" name="multiplicity_of_object">
<constrainedElement xmi:idref="UnmarshallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-multiplicity_of_object-_ownedComment.0" body="The multiplicity of the object InputPin is 1..1">
<annotatedElement xmi:idref="UnmarshallAction-multiplicity_of_object"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UnmarshallAction-multiplicity_of_object-_specification">
<body>object.is(1,1)</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="UnmarshallAction-object_type" name="object_type">
<constrainedElement xmi:idref="UnmarshallAction"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-object_type-_ownedComment.0" body="The type of the object InputPin conform to the unmarshallType.">
<annotatedElement xmi:idref="UnmarshallAction-object_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="UnmarshallAction-object_type-_specification">
<body>object.type.conformsTo(unmarshallType)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="UnmarshallAction-_generalization.0" general="Action"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="UnmarshallAction-object" name="object" aggregation="composite" type="InputPin" association="A_object_unmarshallAction">
<subsettedProperty xmi:idref="Action-input"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-object-_ownedComment.0" body="The InputPin that gives the object to be unmarshalled.">
<annotatedElement xmi:idref="UnmarshallAction-object"/>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="UnmarshallAction-result" name="result" isOrdered="true" aggregation="composite" type="OutputPin" association="A_result_unmarshallAction">
<subsettedProperty xmi:idref="Action-output"/>
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-result-_ownedComment.0" body="The OutputPins on which are placed the values of the StructuralFeatures of the input object.">
<annotatedElement xmi:idref="UnmarshallAction-result"/>
</ownedComment>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="UnmarshallAction-result-_upperValue" value="*"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="UnmarshallAction-unmarshallType" name="unmarshallType" type="Classifier" association="A_unmarshallType_unmarshallAction">
<ownedComment xmi:type="uml:Comment" xmi:id="UnmarshallAction-unmarshallType-_ownedComment.0" body="The type of the object to be unmarshalled.">
<annotatedElement xmi:idref="UnmarshallAction-unmarshallType"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="ValuePin" name="ValuePin">
<ownedComment xmi:type="uml:Comment" xmi:id="ValuePin-_ownedComment.0" body="A ValuePin is an InputPin that provides a value by evaluating a ValueSpecification.">
<annotatedElement xmi:idref="ValuePin"/>
</ownedComment>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValuePin-no_incoming_edges" name="no_incoming_edges">
<constrainedElement xmi:idref="ValuePin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValuePin-no_incoming_edges-_ownedComment.0" body="A ValuePin may have no incoming ActivityEdges.">
<annotatedElement xmi:idref="ValuePin-no_incoming_edges"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValuePin-no_incoming_edges-_specification">
<body>incoming->isEmpty()</body>
<language>OCL</language>
</specification>
</ownedRule>
<ownedRule xmi:type="uml:Constraint" xmi:id="ValuePin-compatible_type" name="compatible_type">
<constrainedElement xmi:idref="ValuePin"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValuePin-compatible_type-_ownedComment.0" body="The type of the value ValueSpecification must conform to the type of the ValuePin.">
<annotatedElement xmi:idref="ValuePin-compatible_type"/>
</ownedComment>
<specification xmi:type="uml:OpaqueExpression" xmi:id="ValuePin-compatible_type-_specification">
<body>value.type.conformsTo(type)</body>
<language>OCL</language>
</specification>
</ownedRule>
<generalization xmi:type="uml:Generalization" xmi:id="ValuePin-_generalization.0" general="InputPin"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="ValuePin-value" name="value" aggregation="composite" type="ValueSpecification" association="A_value_valuePin">
<subsettedProperty xmi:idref="Element-ownedElement"/>
<ownedComment xmi:type="uml:Comment" xmi:id="ValuePin-value-_ownedComment.0" body="The ValueSpecification that is evaluated to obtain the value that the ValuePin will provide.">
<annotatedElement xmi:idref="ValuePin-value"/>
</ownedComment>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_valuePin" name="A_value_valuePin">
<memberEnd xmi:idref="ValuePin-value"/>
<memberEnd xmi:idref="A_value_valuePin-valuePin"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_valuePin-valuePin" name="valuePin" type="ValuePin" association="A_value_valuePin">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_valuePin-valuePin-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_unmarshallAction" name="A_result_unmarshallAction">
<memberEnd xmi:idref="UnmarshallAction-result"/>
<memberEnd xmi:idref="A_result_unmarshallAction-unmarshallAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_unmarshallAction-unmarshallAction" name="unmarshallAction" type="UnmarshallAction" association="A_result_unmarshallAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_unmarshallAction-unmarshallAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_unmarshallType_unmarshallAction" name="A_unmarshallType_unmarshallAction">
<memberEnd xmi:idref="UnmarshallAction-unmarshallType"/>
<memberEnd xmi:idref="A_unmarshallType_unmarshallAction-unmarshallAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_unmarshallType_unmarshallAction-unmarshallAction" name="unmarshallAction" type="UnmarshallAction" association="A_unmarshallType_unmarshallAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_unmarshallType_unmarshallAction-unmarshallAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_unmarshallType_unmarshallAction-unmarshallAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_unmarshallAction" name="A_object_unmarshallAction">
<memberEnd xmi:idref="UnmarshallAction-object"/>
<memberEnd xmi:idref="A_object_unmarshallAction-unmarshallAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_unmarshallAction-unmarshallAction" name="unmarshallAction" type="UnmarshallAction" association="A_object_unmarshallAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_unmarshallAction-unmarshallAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_first_testIdentityAction" name="A_first_testIdentityAction">
<memberEnd xmi:idref="TestIdentityAction-first"/>
<memberEnd xmi:idref="A_first_testIdentityAction-testIdentityAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_first_testIdentityAction-testIdentityAction" name="testIdentityAction" type="TestIdentityAction" association="A_first_testIdentityAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_first_testIdentityAction-testIdentityAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_second_testIdentityAction" name="A_second_testIdentityAction">
<memberEnd xmi:idref="TestIdentityAction-second"/>
<memberEnd xmi:idref="A_second_testIdentityAction-testIdentityAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_second_testIdentityAction-testIdentityAction" name="testIdentityAction" type="TestIdentityAction" association="A_second_testIdentityAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_second_testIdentityAction-testIdentityAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_testIdentityAction" name="A_result_testIdentityAction">
<memberEnd xmi:idref="TestIdentityAction-result"/>
<memberEnd xmi:idref="A_result_testIdentityAction-testIdentityAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_testIdentityAction-testIdentityAction" name="testIdentityAction" type="TestIdentityAction" association="A_result_testIdentityAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_testIdentityAction-testIdentityAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_structuredNodeOutput_structuredActivityNode" name="A_structuredNodeOutput_structuredActivityNode">
<memberEnd xmi:idref="StructuredActivityNode-structuredNodeOutput"/>
<memberEnd xmi:idref="A_structuredNodeOutput_structuredActivityNode-structuredActivityNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_structuredNodeOutput_structuredActivityNode-structuredActivityNode" name="structuredActivityNode" type="StructuredActivityNode" association="A_structuredNodeOutput_structuredActivityNode">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_structuredNodeOutput_structuredActivityNode-structuredActivityNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_structuredNodeInput_structuredActivityNode" name="A_structuredNodeInput_structuredActivityNode">
<memberEnd xmi:idref="StructuredActivityNode-structuredNodeInput"/>
<memberEnd xmi:idref="A_structuredNodeInput_structuredActivityNode-structuredActivityNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_structuredNodeInput_structuredActivityNode-structuredActivityNode" name="structuredActivityNode" type="StructuredActivityNode" association="A_structuredNodeInput_structuredActivityNode">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_structuredNodeInput_structuredActivityNode-structuredActivityNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_edge_inStructuredNode" name="A_edge_inStructuredNode">
<memberEnd xmi:idref="StructuredActivityNode-edge"/>
<memberEnd xmi:idref="ActivityEdge-inStructuredNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_node_inStructuredNode" name="A_node_inStructuredNode">
<memberEnd xmi:idref="StructuredActivityNode-node"/>
<memberEnd xmi:idref="ActivityNode-inStructuredNode"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_variable_scope" name="A_variable_scope">
<memberEnd xmi:idref="StructuredActivityNode-variable"/>
<memberEnd xmi:idref="Variable-scope"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_structuralFeatureAction" name="A_object_structuralFeatureAction">
<memberEnd xmi:idref="StructuralFeatureAction-object"/>
<memberEnd xmi:idref="A_object_structuralFeatureAction-structuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_structuralFeatureAction-structuralFeatureAction" name="structuralFeatureAction" type="StructuralFeatureAction" association="A_object_structuralFeatureAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_structuralFeatureAction-structuralFeatureAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_structuralFeature_structuralFeatureAction" name="A_structuralFeature_structuralFeatureAction">
<memberEnd xmi:idref="StructuralFeatureAction-structuralFeature"/>
<memberEnd xmi:idref="A_structuralFeature_structuralFeatureAction-structuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_structuralFeature_structuralFeatureAction-structuralFeatureAction" name="structuralFeatureAction" type="StructuralFeatureAction" association="A_structuralFeature_structuralFeatureAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_structuralFeature_structuralFeatureAction-structuralFeatureAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_structuralFeature_structuralFeatureAction-structuralFeatureAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_startObjectBehaviorAction" name="A_object_startObjectBehaviorAction">
<memberEnd xmi:idref="StartObjectBehaviorAction-object"/>
<memberEnd xmi:idref="A_object_startObjectBehaviorAction-startObjectBehaviorAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_startObjectBehaviorAction-startObjectBehaviorAction" name="startObjectBehaviorAction" type="StartObjectBehaviorAction" association="A_object_startObjectBehaviorAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_startObjectBehaviorAction-startObjectBehaviorAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_startClassifierBehaviorAction" name="A_object_startClassifierBehaviorAction">
<memberEnd xmi:idref="StartClassifierBehaviorAction-object"/>
<memberEnd xmi:idref="A_object_startClassifierBehaviorAction-startClassifierBehaviorAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_startClassifierBehaviorAction-startClassifierBehaviorAction" name="startClassifierBehaviorAction" type="StartClassifierBehaviorAction" association="A_object_startClassifierBehaviorAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_startClassifierBehaviorAction-startClassifierBehaviorAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_executableNode_sequenceNode" name="A_executableNode_sequenceNode">
<memberEnd xmi:idref="SequenceNode-executableNode"/>
<memberEnd xmi:idref="A_executableNode_sequenceNode-sequenceNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_executableNode_sequenceNode-sequenceNode" name="sequenceNode" type="SequenceNode" association="A_executableNode_sequenceNode">
<subsettedProperty xmi:idref="ActivityNode-inStructuredNode"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_executableNode_sequenceNode-sequenceNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signal_sendSignalAction" name="A_signal_sendSignalAction">
<memberEnd xmi:idref="SendSignalAction-signal"/>
<memberEnd xmi:idref="A_signal_sendSignalAction-sendSignalAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signal_sendSignalAction-sendSignalAction" name="sendSignalAction" type="SendSignalAction" association="A_signal_sendSignalAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signal_sendSignalAction-sendSignalAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signal_sendSignalAction-sendSignalAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_target_sendSignalAction" name="A_target_sendSignalAction">
<memberEnd xmi:idref="SendSignalAction-target"/>
<memberEnd xmi:idref="A_target_sendSignalAction-sendSignalAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_target_sendSignalAction-sendSignalAction" name="sendSignalAction" type="SendSignalAction" association="A_target_sendSignalAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_target_sendSignalAction-sendSignalAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_request_sendObjectAction" name="A_request_sendObjectAction">
<memberEnd xmi:idref="SendObjectAction-request"/>
<memberEnd xmi:idref="A_request_sendObjectAction-sendObjectAction"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_request_sendObjectAction-_generalization.0" general="A_argument_invocationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_request_sendObjectAction-sendObjectAction" name="sendObjectAction" type="SendObjectAction" association="A_request_sendObjectAction">
<redefinedProperty xmi:idref="A_argument_invocationAction-invocationAction"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_request_sendObjectAction-sendObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_target_sendObjectAction" name="A_target_sendObjectAction">
<memberEnd xmi:idref="SendObjectAction-target"/>
<memberEnd xmi:idref="A_target_sendObjectAction-sendObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_target_sendObjectAction-sendObjectAction" name="sendObjectAction" type="SendObjectAction" association="A_target_sendObjectAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_target_sendObjectAction-sendObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_returnInformation_replyAction" name="A_returnInformation_replyAction">
<memberEnd xmi:idref="ReplyAction-returnInformation"/>
<memberEnd xmi:idref="A_returnInformation_replyAction-replyAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_returnInformation_replyAction-replyAction" name="replyAction" type="ReplyAction" association="A_returnInformation_replyAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_returnInformation_replyAction-replyAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_replyToCall_replyAction" name="A_replyToCall_replyAction">
<memberEnd xmi:idref="ReplyAction-replyToCall"/>
<memberEnd xmi:idref="A_replyToCall_replyAction-replyAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_replyToCall_replyAction-replyAction" name="replyAction" type="ReplyAction" association="A_replyToCall_replyAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_replyToCall_replyAction-replyAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_replyValue_replyAction" name="A_replyValue_replyAction">
<memberEnd xmi:idref="ReplyAction-replyValue"/>
<memberEnd xmi:idref="A_replyValue_replyAction-replyAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_replyValue_replyAction-replyAction" name="replyAction" type="ReplyAction" association="A_replyValue_replyAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_replyValue_replyAction-replyAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_removeAt_removeVariableValueAction" name="A_removeAt_removeVariableValueAction">
<memberEnd xmi:idref="RemoveVariableValueAction-removeAt"/>
<memberEnd xmi:idref="A_removeAt_removeVariableValueAction-removeVariableValueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_removeAt_removeVariableValueAction-removeVariableValueAction" name="removeVariableValueAction" type="RemoveVariableValueAction" association="A_removeAt_removeVariableValueAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_removeAt_removeVariableValueAction-removeVariableValueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_removeAt_removeStructuralFeatureValueAction" name="A_removeAt_removeStructuralFeatureValueAction">
<memberEnd xmi:idref="RemoveStructuralFeatureValueAction-removeAt"/>
<memberEnd xmi:idref="A_removeAt_removeStructuralFeatureValueAction-removeStructuralFeatureValueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_removeAt_removeStructuralFeatureValueAction-removeStructuralFeatureValueAction" name="removeStructuralFeatureValueAction" type="RemoveStructuralFeatureValueAction" association="A_removeAt_removeStructuralFeatureValueAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_removeAt_removeStructuralFeatureValueAction-removeStructuralFeatureValueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_collection_reduceAction" name="A_collection_reduceAction">
<memberEnd xmi:idref="ReduceAction-collection"/>
<memberEnd xmi:idref="A_collection_reduceAction-reduceAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_collection_reduceAction-reduceAction" name="reduceAction" type="ReduceAction" association="A_collection_reduceAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_collection_reduceAction-reduceAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_reducer_reduceAction" name="A_reducer_reduceAction">
<memberEnd xmi:idref="ReduceAction-reducer"/>
<memberEnd xmi:idref="A_reducer_reduceAction-reduceAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_reducer_reduceAction-reduceAction" name="reduceAction" type="ReduceAction" association="A_reducer_reduceAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_reducer_reduceAction-reduceAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_reducer_reduceAction-reduceAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_reduceAction" name="A_result_reduceAction">
<memberEnd xmi:idref="ReduceAction-result"/>
<memberEnd xmi:idref="A_result_reduceAction-reduceAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_reduceAction-reduceAction" name="reduceAction" type="ReduceAction" association="A_result_reduceAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_reduceAction-reduceAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_reclassifyObjectAction" name="A_object_reclassifyObjectAction">
<memberEnd xmi:idref="ReclassifyObjectAction-object"/>
<memberEnd xmi:idref="A_object_reclassifyObjectAction-reclassifyObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_reclassifyObjectAction-reclassifyObjectAction" name="reclassifyObjectAction" type="ReclassifyObjectAction" association="A_object_reclassifyObjectAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_reclassifyObjectAction-reclassifyObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_newClassifier_reclassifyObjectAction" name="A_newClassifier_reclassifyObjectAction">
<memberEnd xmi:idref="ReclassifyObjectAction-newClassifier"/>
<memberEnd xmi:idref="A_newClassifier_reclassifyObjectAction-reclassifyObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_newClassifier_reclassifyObjectAction-reclassifyObjectAction" name="reclassifyObjectAction" type="ReclassifyObjectAction" association="A_newClassifier_reclassifyObjectAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_newClassifier_reclassifyObjectAction-reclassifyObjectAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_newClassifier_reclassifyObjectAction-reclassifyObjectAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_oldClassifier_reclassifyObjectAction" name="A_oldClassifier_reclassifyObjectAction">
<memberEnd xmi:idref="ReclassifyObjectAction-oldClassifier"/>
<memberEnd xmi:idref="A_oldClassifier_reclassifyObjectAction-reclassifyObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_oldClassifier_reclassifyObjectAction-reclassifyObjectAction" name="reclassifyObjectAction" type="ReclassifyObjectAction" association="A_oldClassifier_reclassifyObjectAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_oldClassifier_reclassifyObjectAction-reclassifyObjectAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_oldClassifier_reclassifyObjectAction-reclassifyObjectAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readVariableAction" name="A_result_readVariableAction">
<memberEnd xmi:idref="ReadVariableAction-result"/>
<memberEnd xmi:idref="A_result_readVariableAction-readVariableAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readVariableAction-readVariableAction" name="readVariableAction" type="ReadVariableAction" association="A_result_readVariableAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readVariableAction-readVariableAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readStructuralFeatureAction" name="A_result_readStructuralFeatureAction">
<memberEnd xmi:idref="ReadStructuralFeatureAction-result"/>
<memberEnd xmi:idref="A_result_readStructuralFeatureAction-readStructuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readStructuralFeatureAction-readStructuralFeatureAction" name="readStructuralFeatureAction" type="ReadStructuralFeatureAction" association="A_result_readStructuralFeatureAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readStructuralFeatureAction-readStructuralFeatureAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readSelfAction" name="A_result_readSelfAction">
<memberEnd xmi:idref="ReadSelfAction-result"/>
<memberEnd xmi:idref="A_result_readSelfAction-readSelfAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readSelfAction-readSelfAction" name="readSelfAction" type="ReadSelfAction" association="A_result_readSelfAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readSelfAction-readSelfAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_qualifier_readLinkObjectEndQualifierAction" name="A_qualifier_readLinkObjectEndQualifierAction">
<memberEnd xmi:idref="ReadLinkObjectEndQualifierAction-qualifier"/>
<memberEnd xmi:idref="A_qualifier_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_qualifier_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction" name="readLinkObjectEndQualifierAction" type="ReadLinkObjectEndQualifierAction" association="A_qualifier_readLinkObjectEndQualifierAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_qualifier_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_readLinkObjectEndQualifierAction" name="A_object_readLinkObjectEndQualifierAction">
<memberEnd xmi:idref="ReadLinkObjectEndQualifierAction-object"/>
<memberEnd xmi:idref="A_object_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction" name="readLinkObjectEndQualifierAction" type="ReadLinkObjectEndQualifierAction" association="A_object_readLinkObjectEndQualifierAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readLinkObjectEndQualifierAction" name="A_result_readLinkObjectEndQualifierAction">
<memberEnd xmi:idref="ReadLinkObjectEndQualifierAction-result"/>
<memberEnd xmi:idref="A_result_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction" name="readLinkObjectEndQualifierAction" type="ReadLinkObjectEndQualifierAction" association="A_result_readLinkObjectEndQualifierAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readLinkObjectEndQualifierAction-readLinkObjectEndQualifierAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_readLinkObjectEndAction" name="A_object_readLinkObjectEndAction">
<memberEnd xmi:idref="ReadLinkObjectEndAction-object"/>
<memberEnd xmi:idref="A_object_readLinkObjectEndAction-readLinkObjectEndAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_readLinkObjectEndAction-readLinkObjectEndAction" name="readLinkObjectEndAction" type="ReadLinkObjectEndAction" association="A_object_readLinkObjectEndAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_readLinkObjectEndAction-readLinkObjectEndAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_end_readLinkObjectEndAction" name="A_end_readLinkObjectEndAction">
<memberEnd xmi:idref="ReadLinkObjectEndAction-end"/>
<memberEnd xmi:idref="A_end_readLinkObjectEndAction-readLinkObjectEndAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_end_readLinkObjectEndAction-readLinkObjectEndAction" name="readLinkObjectEndAction" type="ReadLinkObjectEndAction" association="A_end_readLinkObjectEndAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_end_readLinkObjectEndAction-readLinkObjectEndAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readLinkObjectEndAction" name="A_result_readLinkObjectEndAction">
<memberEnd xmi:idref="ReadLinkObjectEndAction-result"/>
<memberEnd xmi:idref="A_result_readLinkObjectEndAction-readLinkObjectEndAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readLinkObjectEndAction-readLinkObjectEndAction" name="readLinkObjectEndAction" type="ReadLinkObjectEndAction" association="A_result_readLinkObjectEndAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readLinkObjectEndAction-readLinkObjectEndAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readLinkAction" name="A_result_readLinkAction">
<memberEnd xmi:idref="ReadLinkAction-result"/>
<memberEnd xmi:idref="A_result_readLinkAction-readLinkAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readLinkAction-readLinkAction" name="readLinkAction" type="ReadLinkAction" association="A_result_readLinkAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readLinkAction-readLinkAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_readIsClassifiedObjectAction" name="A_classifier_readIsClassifiedObjectAction">
<memberEnd xmi:idref="ReadIsClassifiedObjectAction-classifier"/>
<memberEnd xmi:idref="A_classifier_readIsClassifiedObjectAction-readIsClassifiedObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifier_readIsClassifiedObjectAction-readIsClassifiedObjectAction" name="readIsClassifiedObjectAction" type="ReadIsClassifiedObjectAction" association="A_classifier_readIsClassifiedObjectAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifier_readIsClassifiedObjectAction-readIsClassifiedObjectAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_classifier_readIsClassifiedObjectAction-readIsClassifiedObjectAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readIsClassifiedObjectAction" name="A_result_readIsClassifiedObjectAction">
<memberEnd xmi:idref="ReadIsClassifiedObjectAction-result"/>
<memberEnd xmi:idref="A_result_readIsClassifiedObjectAction-readIsClassifiedObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readIsClassifiedObjectAction-readIsClassifiedObjectAction" name="readIsClassifiedObjectAction" type="ReadIsClassifiedObjectAction" association="A_result_readIsClassifiedObjectAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readIsClassifiedObjectAction-readIsClassifiedObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_readIsClassifiedObjectAction" name="A_object_readIsClassifiedObjectAction">
<memberEnd xmi:idref="ReadIsClassifiedObjectAction-object"/>
<memberEnd xmi:idref="A_object_readIsClassifiedObjectAction-readIsClassifiedObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_readIsClassifiedObjectAction-readIsClassifiedObjectAction" name="readIsClassifiedObjectAction" type="ReadIsClassifiedObjectAction" association="A_object_readIsClassifiedObjectAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_readIsClassifiedObjectAction-readIsClassifiedObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_readExtentAction" name="A_result_readExtentAction">
<memberEnd xmi:idref="ReadExtentAction-result"/>
<memberEnd xmi:idref="A_result_readExtentAction-readExtentAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_readExtentAction-readExtentAction" name="readExtentAction" type="ReadExtentAction" association="A_result_readExtentAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_readExtentAction-readExtentAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_readExtentAction" name="A_classifier_readExtentAction">
<memberEnd xmi:idref="ReadExtentAction-classifier"/>
<memberEnd xmi:idref="A_classifier_readExtentAction-readExtentAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifier_readExtentAction-readExtentAction" name="readExtentAction" type="ReadExtentAction" association="A_classifier_readExtentAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifier_readExtentAction-readExtentAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_exception_raiseExceptionAction" name="A_exception_raiseExceptionAction">
<memberEnd xmi:idref="RaiseExceptionAction-exception"/>
<memberEnd xmi:idref="A_exception_raiseExceptionAction-raiseExceptionAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_exception_raiseExceptionAction-raiseExceptionAction" name="raiseExceptionAction" type="RaiseExceptionAction" association="A_exception_raiseExceptionAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_exception_raiseExceptionAction-raiseExceptionAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_qualifier_qualifierValue" name="A_qualifier_qualifierValue">
<memberEnd xmi:idref="QualifierValue-qualifier"/>
<memberEnd xmi:idref="A_qualifier_qualifierValue-qualifierValue"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_qualifier_qualifierValue-qualifierValue" name="qualifierValue" type="QualifierValue" association="A_qualifier_qualifierValue">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_qualifier_qualifierValue-qualifierValue-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_qualifier_qualifierValue-qualifierValue-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_qualifierValue" name="A_value_qualifierValue">
<memberEnd xmi:idref="QualifierValue-value"/>
<memberEnd xmi:idref="A_value_qualifierValue-qualifierValue"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_qualifierValue-qualifierValue" name="qualifierValue" type="QualifierValue" association="A_value_qualifierValue">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_qualifierValue-qualifierValue-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_outputValue_opaqueAction" name="A_outputValue_opaqueAction">
<memberEnd xmi:idref="OpaqueAction-outputValue"/>
<memberEnd xmi:idref="A_outputValue_opaqueAction-opaqueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_outputValue_opaqueAction-opaqueAction" name="opaqueAction" type="OpaqueAction" association="A_outputValue_opaqueAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_outputValue_opaqueAction-opaqueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inputValue_opaqueAction" name="A_inputValue_opaqueAction">
<memberEnd xmi:idref="OpaqueAction-inputValue"/>
<memberEnd xmi:idref="A_inputValue_opaqueAction-opaqueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_inputValue_opaqueAction-opaqueAction" name="opaqueAction" type="OpaqueAction" association="A_inputValue_opaqueAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_inputValue_opaqueAction-opaqueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_setupPart_loopNode" name="A_setupPart_loopNode">
<memberEnd xmi:idref="LoopNode-setupPart"/>
<memberEnd xmi:idref="A_setupPart_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_setupPart_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_setupPart_loopNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_setupPart_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_bodyPart_loopNode" name="A_bodyPart_loopNode">
<memberEnd xmi:idref="LoopNode-bodyPart"/>
<memberEnd xmi:idref="A_bodyPart_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_bodyPart_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_bodyPart_loopNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_bodyPart_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_loopVariable_loopNode" name="A_loopVariable_loopNode">
<memberEnd xmi:idref="LoopNode-loopVariable"/>
<memberEnd xmi:idref="A_loopVariable_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_loopVariable_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_loopVariable_loopNode">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_loopVariable_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_loopNode" name="A_result_loopNode">
<memberEnd xmi:idref="LoopNode-result"/>
<memberEnd xmi:idref="A_result_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_result_loopNode">
<subsettedProperty xmi:idref="A_structuredNodeOutput_structuredActivityNode-structuredActivityNode"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_bodyOutput_loopNode" name="A_bodyOutput_loopNode">
<memberEnd xmi:idref="LoopNode-bodyOutput"/>
<memberEnd xmi:idref="A_bodyOutput_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_bodyOutput_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_bodyOutput_loopNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_bodyOutput_loopNode-loopNode-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_bodyOutput_loopNode-loopNode-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_loopVariableInput_loopNode" name="A_loopVariableInput_loopNode">
<memberEnd xmi:idref="LoopNode-loopVariableInput"/>
<memberEnd xmi:idref="A_loopVariableInput_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_loopVariableInput_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_loopVariableInput_loopNode">
<subsettedProperty xmi:idref="A_structuredNodeInput_structuredActivityNode-structuredActivityNode"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_loopVariableInput_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_test_loopNode" name="A_test_loopNode">
<memberEnd xmi:idref="LoopNode-test"/>
<memberEnd xmi:idref="A_test_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_test_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_test_loopNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_test_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_decider_loopNode" name="A_decider_loopNode">
<memberEnd xmi:idref="LoopNode-decider"/>
<memberEnd xmi:idref="A_decider_loopNode-loopNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_decider_loopNode-loopNode" name="loopNode" type="LoopNode" association="A_decider_loopNode">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_decider_loopNode-loopNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_destroyAt_linkEndDestructionData" name="A_destroyAt_linkEndDestructionData">
<memberEnd xmi:idref="LinkEndDestructionData-destroyAt"/>
<memberEnd xmi:idref="A_destroyAt_linkEndDestructionData-linkEndDestructionData"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_destroyAt_linkEndDestructionData-linkEndDestructionData" name="linkEndDestructionData" type="LinkEndDestructionData" association="A_destroyAt_linkEndDestructionData">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_destroyAt_linkEndDestructionData-linkEndDestructionData-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_linkEndData" name="A_value_linkEndData">
<memberEnd xmi:idref="LinkEndData-value"/>
<memberEnd xmi:idref="A_value_linkEndData-linkEndData"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_linkEndData-linkEndData" name="linkEndData" type="LinkEndData" association="A_value_linkEndData">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_linkEndData-linkEndData-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_end_linkEndData" name="A_end_linkEndData">
<memberEnd xmi:idref="LinkEndData-end"/>
<memberEnd xmi:idref="A_end_linkEndData-linkEndData"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_end_linkEndData-linkEndData" name="linkEndData" type="LinkEndData" association="A_end_linkEndData">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_end_linkEndData-linkEndData-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_end_linkEndData-linkEndData-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_qualifier_linkEndData" name="A_qualifier_linkEndData">
<memberEnd xmi:idref="LinkEndData-qualifier"/>
<memberEnd xmi:idref="A_qualifier_linkEndData-linkEndData"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_qualifier_linkEndData-linkEndData" name="linkEndData" type="LinkEndData" association="A_qualifier_linkEndData">
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_insertAt_linkEndCreationData" name="A_insertAt_linkEndCreationData">
<memberEnd xmi:idref="LinkEndCreationData-insertAt"/>
<memberEnd xmi:idref="A_insertAt_linkEndCreationData-linkEndCreationData"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_insertAt_linkEndCreationData-linkEndCreationData" name="linkEndCreationData" type="LinkEndCreationData" association="A_insertAt_linkEndCreationData">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_insertAt_linkEndCreationData-linkEndCreationData-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inputValue_linkAction" name="A_inputValue_linkAction">
<memberEnd xmi:idref="LinkAction-inputValue"/>
<memberEnd xmi:idref="A_inputValue_linkAction-linkAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_inputValue_linkAction-linkAction" name="linkAction" type="LinkAction" association="A_inputValue_linkAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_inputValue_linkAction-linkAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_endData_linkAction" name="A_endData_linkAction">
<memberEnd xmi:idref="LinkAction-endData"/>
<memberEnd xmi:idref="A_endData_linkAction-linkAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_endData_linkAction-linkAction" name="linkAction" type="LinkAction" association="A_endData_linkAction">
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_argument_invocationAction" name="A_argument_invocationAction">
<memberEnd xmi:idref="InvocationAction-argument"/>
<memberEnd xmi:idref="A_argument_invocationAction-invocationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_argument_invocationAction-invocationAction" name="invocationAction" type="InvocationAction" association="A_argument_invocationAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_argument_invocationAction-invocationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_onPort_invocationAction" name="A_onPort_invocationAction">
<memberEnd xmi:idref="InvocationAction-onPort"/>
<memberEnd xmi:idref="A_onPort_invocationAction-invocationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_onPort_invocationAction-invocationAction" name="invocationAction" type="InvocationAction" association="A_onPort_invocationAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_onPort_invocationAction-invocationAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_onPort_invocationAction-invocationAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_inputElement_regionAsInput" name="A_inputElement_regionAsInput">
<memberEnd xmi:idref="ExpansionRegion-inputElement"/>
<memberEnd xmi:idref="ExpansionNode-regionAsInput"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_outputElement_regionAsOutput" name="A_outputElement_regionAsOutput">
<memberEnd xmi:idref="ExpansionRegion-outputElement"/>
<memberEnd xmi:idref="ExpansionNode-regionAsOutput"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_target_destroyObjectAction" name="A_target_destroyObjectAction">
<memberEnd xmi:idref="DestroyObjectAction-target"/>
<memberEnd xmi:idref="A_target_destroyObjectAction-destroyObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_target_destroyObjectAction-destroyObjectAction" name="destroyObjectAction" type="DestroyObjectAction" association="A_target_destroyObjectAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_target_destroyObjectAction-destroyObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_endData_destroyLinkAction" name="A_endData_destroyLinkAction">
<memberEnd xmi:idref="DestroyLinkAction-endData"/>
<memberEnd xmi:idref="A_endData_destroyLinkAction-destroyLinkAction"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_endData_destroyLinkAction-_generalization.0" general="A_endData_linkAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_endData_destroyLinkAction-destroyLinkAction" name="destroyLinkAction" type="DestroyLinkAction" association="A_endData_destroyLinkAction">
<redefinedProperty xmi:idref="A_endData_linkAction-linkAction"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_classifier_createObjectAction" name="A_classifier_createObjectAction">
<memberEnd xmi:idref="CreateObjectAction-classifier"/>
<memberEnd xmi:idref="A_classifier_createObjectAction-createObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_classifier_createObjectAction-createObjectAction" name="createObjectAction" type="CreateObjectAction" association="A_classifier_createObjectAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_classifier_createObjectAction-createObjectAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_classifier_createObjectAction-createObjectAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_createObjectAction" name="A_result_createObjectAction">
<memberEnd xmi:idref="CreateObjectAction-result"/>
<memberEnd xmi:idref="A_result_createObjectAction-createObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_createObjectAction-createObjectAction" name="createObjectAction" type="CreateObjectAction" association="A_result_createObjectAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_createObjectAction-createObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_createLinkObjectAction" name="A_result_createLinkObjectAction">
<memberEnd xmi:idref="CreateLinkObjectAction-result"/>
<memberEnd xmi:idref="A_result_createLinkObjectAction-createLinkObjectAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_createLinkObjectAction-createLinkObjectAction" name="createLinkObjectAction" type="CreateLinkObjectAction" association="A_result_createLinkObjectAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_createLinkObjectAction-createLinkObjectAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_endData_createLinkAction" name="A_endData_createLinkAction">
<memberEnd xmi:idref="CreateLinkAction-endData"/>
<memberEnd xmi:idref="A_endData_createLinkAction-createLinkAction"/>
<generalization xmi:type="uml:Generalization" xmi:id="A_endData_createLinkAction-_generalization.0" general="A_endData_linkAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_endData_createLinkAction-createLinkAction" name="createLinkAction" type="CreateLinkAction" association="A_endData_createLinkAction">
<redefinedProperty xmi:idref="A_endData_linkAction-linkAction"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_clause_conditionalNode" name="A_clause_conditionalNode">
<memberEnd xmi:idref="ConditionalNode-clause"/>
<memberEnd xmi:idref="A_clause_conditionalNode-conditionalNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_clause_conditionalNode-conditionalNode" name="conditionalNode" type="ConditionalNode" association="A_clause_conditionalNode">
<subsettedProperty xmi:idref="Element-owner"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_conditionalNode" name="A_result_conditionalNode">
<memberEnd xmi:idref="ConditionalNode-result"/>
<memberEnd xmi:idref="A_result_conditionalNode-conditionalNode"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_conditionalNode-conditionalNode" name="conditionalNode" type="ConditionalNode" association="A_result_conditionalNode">
<subsettedProperty xmi:idref="A_structuredNodeOutput_structuredActivityNode-structuredActivityNode"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_conditionalNode-conditionalNode-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_clearStructuralFeatureAction" name="A_result_clearStructuralFeatureAction">
<memberEnd xmi:idref="ClearStructuralFeatureAction-result"/>
<memberEnd xmi:idref="A_result_clearStructuralFeatureAction-clearStructuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_clearStructuralFeatureAction-clearStructuralFeatureAction" name="clearStructuralFeatureAction" type="ClearStructuralFeatureAction" association="A_result_clearStructuralFeatureAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_clearStructuralFeatureAction-clearStructuralFeatureAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_object_clearAssociationAction" name="A_object_clearAssociationAction">
<memberEnd xmi:idref="ClearAssociationAction-object"/>
<memberEnd xmi:idref="A_object_clearAssociationAction-clearAssociationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_object_clearAssociationAction-clearAssociationAction" name="clearAssociationAction" type="ClearAssociationAction" association="A_object_clearAssociationAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_object_clearAssociationAction-clearAssociationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_association_clearAssociationAction" name="A_association_clearAssociationAction">
<memberEnd xmi:idref="ClearAssociationAction-association"/>
<memberEnd xmi:idref="A_association_clearAssociationAction-clearAssociationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_association_clearAssociationAction-clearAssociationAction" name="clearAssociationAction" type="ClearAssociationAction" association="A_association_clearAssociationAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_association_clearAssociationAction-clearAssociationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_decider_clause" name="A_decider_clause">
<memberEnd xmi:idref="Clause-decider"/>
<memberEnd xmi:idref="A_decider_clause-clause"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_decider_clause-clause" name="clause" type="Clause" association="A_decider_clause">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_decider_clause-clause-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_bodyOutput_clause" name="A_bodyOutput_clause">
<memberEnd xmi:idref="Clause-bodyOutput"/>
<memberEnd xmi:idref="A_bodyOutput_clause-clause"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_bodyOutput_clause-clause" name="clause" type="Clause" association="A_bodyOutput_clause">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_bodyOutput_clause-clause-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_bodyOutput_clause-clause-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_test_clause" name="A_test_clause">
<memberEnd xmi:idref="Clause-test"/>
<memberEnd xmi:idref="A_test_clause-clause"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_test_clause-clause" name="clause" type="Clause" association="A_test_clause">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_test_clause-clause-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_body_clause" name="A_body_clause">
<memberEnd xmi:idref="Clause-body"/>
<memberEnd xmi:idref="A_body_clause-clause"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_body_clause-clause" name="clause" type="Clause" association="A_body_clause">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_body_clause-clause-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_predecessorClause_successorClause" name="A_predecessorClause_successorClause">
<memberEnd xmi:idref="Clause-predecessorClause"/>
<memberEnd xmi:idref="Clause-successorClause"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_target_callOperationAction" name="A_target_callOperationAction">
<memberEnd xmi:idref="CallOperationAction-target"/>
<memberEnd xmi:idref="A_target_callOperationAction-callOperationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_target_callOperationAction-callOperationAction" name="callOperationAction" type="CallOperationAction" association="A_target_callOperationAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_target_callOperationAction-callOperationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_operation_callOperationAction" name="A_operation_callOperationAction">
<memberEnd xmi:idref="CallOperationAction-operation"/>
<memberEnd xmi:idref="A_operation_callOperationAction-callOperationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_operation_callOperationAction-callOperationAction" name="callOperationAction" type="CallOperationAction" association="A_operation_callOperationAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_operation_callOperationAction-callOperationAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_operation_callOperationAction-callOperationAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_behavior_callBehaviorAction" name="A_behavior_callBehaviorAction">
<memberEnd xmi:idref="CallBehaviorAction-behavior"/>
<memberEnd xmi:idref="A_behavior_callBehaviorAction-callBehaviorAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_behavior_callBehaviorAction-callBehaviorAction" name="callBehaviorAction" type="CallBehaviorAction" association="A_behavior_callBehaviorAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_behavior_callBehaviorAction-callBehaviorAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_behavior_callBehaviorAction-callBehaviorAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_callAction" name="A_result_callAction">
<memberEnd xmi:idref="CallAction-result"/>
<memberEnd xmi:idref="A_result_callAction-callAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_callAction-callAction" name="callAction" type="CallAction" association="A_result_callAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_callAction-callAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_signal_broadcastSignalAction" name="A_signal_broadcastSignalAction">
<memberEnd xmi:idref="BroadcastSignalAction-signal"/>
<memberEnd xmi:idref="A_signal_broadcastSignalAction-broadcastSignalAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_signal_broadcastSignalAction-broadcastSignalAction" name="broadcastSignalAction" type="BroadcastSignalAction" association="A_signal_broadcastSignalAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_signal_broadcastSignalAction-broadcastSignalAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_signal_broadcastSignalAction-broadcastSignalAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_insertAt_addVariableValueAction" name="A_insertAt_addVariableValueAction">
<memberEnd xmi:idref="AddVariableValueAction-insertAt"/>
<memberEnd xmi:idref="A_insertAt_addVariableValueAction-addVariableValueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_insertAt_addVariableValueAction-addVariableValueAction" name="addVariableValueAction" type="AddVariableValueAction" association="A_insertAt_addVariableValueAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_insertAt_addVariableValueAction-addVariableValueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_insertAt_addStructuralFeatureValueAction" name="A_insertAt_addStructuralFeatureValueAction">
<memberEnd xmi:idref="AddStructuralFeatureValueAction-insertAt"/>
<memberEnd xmi:idref="A_insertAt_addStructuralFeatureValueAction-addStructuralFeatureValueAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_insertAt_addStructuralFeatureValueAction-addStructuralFeatureValueAction" name="addStructuralFeatureValueAction" type="AddStructuralFeatureValueAction" association="A_insertAt_addStructuralFeatureValueAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_insertAt_addStructuralFeatureValueAction-addStructuralFeatureValueAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_fromAction_actionInputPin" name="A_fromAction_actionInputPin">
<memberEnd xmi:idref="ActionInputPin-fromAction"/>
<memberEnd xmi:idref="A_fromAction_actionInputPin-actionInputPin"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_fromAction_actionInputPin-actionInputPin" name="actionInputPin" type="ActionInputPin" association="A_fromAction_actionInputPin">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_fromAction_actionInputPin-actionInputPin-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_output_action" name="A_output_action" isDerived="true">
<memberEnd xmi:idref="Action-output"/>
<memberEnd xmi:idref="A_output_action-action"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_output_action-action" name="action" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Action" association="A_output_action">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_output_action-action-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_context_action" name="A_context_action" isDerived="true">
<memberEnd xmi:idref="Action-context"/>
<memberEnd xmi:idref="A_context_action-action"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_context_action-action" name="action" type="Action" association="A_context_action">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_context_action-action-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_context_action-action-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_input_action" name="A_input_action" isDerived="true">
<memberEnd xmi:idref="Action-input"/>
<memberEnd xmi:idref="A_input_action-action"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_input_action-action" name="action" isReadOnly="true" isDerived="true" isDerivedUnion="true" type="Action" association="A_input_action">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_input_action-action-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_localPrecondition_action" name="A_localPrecondition_action">
<memberEnd xmi:idref="Action-localPrecondition"/>
<memberEnd xmi:idref="A_localPrecondition_action-action"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_localPrecondition_action-action" name="action" type="Action" association="A_localPrecondition_action">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_localPrecondition_action-action-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_localPostcondition_action" name="A_localPostcondition_action">
<memberEnd xmi:idref="Action-localPostcondition"/>
<memberEnd xmi:idref="A_localPostcondition_action-action"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_localPostcondition_action-action" name="action" type="Action" association="A_localPostcondition_action">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_localPostcondition_action-action-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_trigger_acceptEventAction" name="A_trigger_acceptEventAction">
<memberEnd xmi:idref="AcceptEventAction-trigger"/>
<memberEnd xmi:idref="A_trigger_acceptEventAction-acceptEventAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_trigger_acceptEventAction-acceptEventAction" name="acceptEventAction" type="AcceptEventAction" association="A_trigger_acceptEventAction">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_trigger_acceptEventAction-acceptEventAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_acceptEventAction" name="A_result_acceptEventAction">
<memberEnd xmi:idref="AcceptEventAction-result"/>
<memberEnd xmi:idref="A_result_acceptEventAction-acceptEventAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_acceptEventAction-acceptEventAction" name="acceptEventAction" type="AcceptEventAction" association="A_result_acceptEventAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_acceptEventAction-acceptEventAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_returnInformation_acceptCallAction" name="A_returnInformation_acceptCallAction">
<memberEnd xmi:idref="AcceptCallAction-returnInformation"/>
<memberEnd xmi:idref="A_returnInformation_acceptCallAction-acceptCallAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_returnInformation_acceptCallAction-acceptCallAction" name="acceptCallAction" type="AcceptCallAction" association="A_returnInformation_acceptCallAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_returnInformation_acceptCallAction-acceptCallAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_writeVariableAction" name="A_value_writeVariableAction">
<memberEnd xmi:idref="WriteVariableAction-value"/>
<memberEnd xmi:idref="A_value_writeVariableAction-writeVariableAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_writeVariableAction-writeVariableAction" name="writeVariableAction" type="WriteVariableAction" association="A_value_writeVariableAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_writeVariableAction-writeVariableAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_writeStructuralFeatureAction" name="A_result_writeStructuralFeatureAction">
<memberEnd xmi:idref="WriteStructuralFeatureAction-result"/>
<memberEnd xmi:idref="A_result_writeStructuralFeatureAction-writeStructuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_writeStructuralFeatureAction-writeStructuralFeatureAction" name="writeStructuralFeatureAction" type="WriteStructuralFeatureAction" association="A_result_writeStructuralFeatureAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_writeStructuralFeatureAction-writeStructuralFeatureAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_writeStructuralFeatureAction" name="A_value_writeStructuralFeatureAction">
<memberEnd xmi:idref="WriteStructuralFeatureAction-value"/>
<memberEnd xmi:idref="A_value_writeStructuralFeatureAction-writeStructuralFeatureAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_writeStructuralFeatureAction-writeStructuralFeatureAction" name="writeStructuralFeatureAction" type="WriteStructuralFeatureAction" association="A_value_writeStructuralFeatureAction">
<subsettedProperty xmi:idref="A_input_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_writeStructuralFeatureAction-writeStructuralFeatureAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_variable_variableAction" name="A_variable_variableAction">
<memberEnd xmi:idref="VariableAction-variable"/>
<memberEnd xmi:idref="A_variable_variableAction-variableAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_variable_variableAction-variableAction" name="variableAction" type="VariableAction" association="A_variable_variableAction">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_variable_variableAction-variableAction-_lowerValue"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="A_variable_variableAction-variableAction-_upperValue" value="*"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_result_valueSpecificationAction" name="A_result_valueSpecificationAction">
<memberEnd xmi:idref="ValueSpecificationAction-result"/>
<memberEnd xmi:idref="A_result_valueSpecificationAction-valueSpecificationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_result_valueSpecificationAction-valueSpecificationAction" name="valueSpecificationAction" type="ValueSpecificationAction" association="A_result_valueSpecificationAction">
<subsettedProperty xmi:idref="A_output_action-action"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_result_valueSpecificationAction-valueSpecificationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="A_value_valueSpecificationAction" name="A_value_valueSpecificationAction">
<memberEnd xmi:idref="ValueSpecificationAction-value"/>
<memberEnd xmi:idref="A_value_valueSpecificationAction-valueSpecificationAction"/>
<ownedEnd xmi:type="uml:Property" xmi:id="A_value_valueSpecificationAction-valueSpecificationAction" name="valueSpecificationAction" type="ValueSpecificationAction" association="A_value_valueSpecificationAction">
<subsettedProperty xmi:idref="Element-owner"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="A_value_valueSpecificationAction-valueSpecificationAction-_lowerValue"/>
</ownedEnd>
</packagedElement>
</packagedElement>
</uml:Package>
<mofext:Tag xmi:id="UML_mofTag0" xmi:type="mofext:Tag" name="org.omg.xmi.nsPrefix" element="UML"/>
</xmi:XMI>