diff options
Diffstat (limited to 'Tests/ca.mcgill.ecse.dslreasoner.standalone.test')
42 files changed, 280 insertions, 1099 deletions
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.aird b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.aird index be45a301..518acc99 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.aird +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.aird | |||
@@ -2,7 +2,6 @@ | |||
2 | <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style"> | 2 | <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style"> |
3 | <viewpoint:DAnalysis uid="_e7vq8FybEemc87q3iJlCgw" selectedViews="_feFjAFybEemc87q3iJlCgw _feTlcFybEemc87q3iJlCgw _feUzkFybEemc87q3iJlCgw _feWBsFybEemc87q3iJlCgw" version="14.1.0.201810161215"> | 3 | <viewpoint:DAnalysis uid="_e7vq8FybEemc87q3iJlCgw" selectedViews="_feFjAFybEemc87q3iJlCgw _feTlcFybEemc87q3iJlCgw _feUzkFybEemc87q3iJlCgw _feWBsFybEemc87q3iJlCgw" version="14.1.0.201810161215"> |
4 | <semanticResources>yakindu.ecore</semanticResources> | 4 | <semanticResources>yakindu.ecore</semanticResources> |
5 | <semanticResources>yakindu.genmodel</semanticResources> | ||
6 | <ownedViews xmi:type="viewpoint:DView" uid="_feFjAFybEemc87q3iJlCgw"> | 5 | <ownedViews xmi:type="viewpoint:DView" uid="_feFjAFybEemc87q3iJlCgw"> |
7 | <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/> | 6 | <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/> |
8 | <ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_gE_K8FybEemc87q3iJlCgw" name="yakindu class diagram" repPath="#_gDD4UFybEemc87q3iJlCgw"> | 7 | <ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_gE_K8FybEemc87q3iJlCgw" name="yakindu class diagram" repPath="#_gDD4UFybEemc87q3iJlCgw"> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.ecore b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.ecore index 0c944db8..0e800e4a 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.ecore +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.ecore | |||
@@ -1,26 +1,33 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="yakindu" nsURI="YakinduMetamodel" nsPrefix="yakindu"> | 2 | <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | <eClassifiers xsi:type="ecore:EClass" name="Pseudostate" abstract="true" eSuperTypes="//Vertex"/> | 3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="yakindu" nsURI="YakinduMetamodel" nsPrefix="yakindu"> |
4 | <eClassifiers xsi:type="ecore:EClass" name="Pseudostate" abstract="true" eSuperTypes="#//Vertex"/> | ||
4 | <eClassifiers xsi:type="ecore:EClass" name="Vertex" abstract="true"> | 5 | <eClassifiers xsi:type="ecore:EClass" name="Vertex" abstract="true"> |
5 | <eStructuralFeatures xsi:type="ecore:EReference" name="incomingTransitions" ordered="false" upperBound="-1" eType="//Transition" eOpposite="//Transition/target"/> | 6 | <eStructuralFeatures xsi:type="ecore:EReference" name="incomingTransitions" ordered="false" |
6 | <eStructuralFeatures xsi:type="ecore:EReference" name="outgoingTransitions" ordered="false" upperBound="-1" eType="//Transition" containment="true" eOpposite="//Transition/source"/> | 7 | upperBound="-1" eType="#//Transition" eOpposite="#//Transition/target"/> |
8 | <eStructuralFeatures xsi:type="ecore:EReference" name="outgoingTransitions" ordered="false" | ||
9 | upperBound="-1" eType="#//Transition" containment="true" eOpposite="#//Transition/source"/> | ||
7 | </eClassifiers> | 10 | </eClassifiers> |
8 | <eClassifiers xsi:type="ecore:EClass" name="Region"> | 11 | <eClassifiers xsi:type="ecore:EClass" name="Region"> |
9 | <eStructuralFeatures xsi:type="ecore:EReference" name="vertices" ordered="false" upperBound="-1" eType="//Vertex" containment="true"/> | 12 | <eStructuralFeatures xsi:type="ecore:EReference" name="vertices" ordered="false" |
13 | upperBound="-1" eType="#//Vertex" containment="true"/> | ||
10 | </eClassifiers> | 14 | </eClassifiers> |
11 | <eClassifiers xsi:type="ecore:EClass" name="Transition"> | 15 | <eClassifiers xsi:type="ecore:EClass" name="Transition"> |
12 | <eStructuralFeatures xsi:type="ecore:EReference" name="target" ordered="false" lowerBound="1" eType="//Vertex" eOpposite="//Vertex/incomingTransitions"/> | 16 | <eStructuralFeatures xsi:type="ecore:EReference" name="target" ordered="false" |
13 | <eStructuralFeatures xsi:type="ecore:EReference" name="source" ordered="false" eType="//Vertex" eOpposite="//Vertex/outgoingTransitions"/> | 17 | lowerBound="1" eType="#//Vertex" eOpposite="#//Vertex/incomingTransitions"/> |
18 | <eStructuralFeatures xsi:type="ecore:EReference" name="source" ordered="false" | ||
19 | eType="#//Vertex" eOpposite="#//Vertex/outgoingTransitions"/> | ||
14 | </eClassifiers> | 20 | </eClassifiers> |
15 | <eClassifiers xsi:type="ecore:EClass" name="Statechart" eSuperTypes="//CompositeElement"/> | 21 | <eClassifiers xsi:type="ecore:EClass" name="Statechart" eSuperTypes="#//CompositeElement"/> |
16 | <eClassifiers xsi:type="ecore:EClass" name="Entry" eSuperTypes="//Pseudostate"/> | 22 | <eClassifiers xsi:type="ecore:EClass" name="Entry" eSuperTypes="#//Pseudostate"/> |
17 | <eClassifiers xsi:type="ecore:EClass" name="Synchronization" eSuperTypes="//Pseudostate"/> | 23 | <eClassifiers xsi:type="ecore:EClass" name="Synchronization" eSuperTypes="#//Pseudostate"/> |
18 | <eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="//RegularState //CompositeElement"/> | 24 | <eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="#//RegularState #//CompositeElement"/> |
19 | <eClassifiers xsi:type="ecore:EClass" name="RegularState" abstract="true" eSuperTypes="//Vertex"/> | 25 | <eClassifiers xsi:type="ecore:EClass" name="RegularState" abstract="true" eSuperTypes="#//Vertex"/> |
20 | <eClassifiers xsi:type="ecore:EClass" name="CompositeElement" abstract="true"> | 26 | <eClassifiers xsi:type="ecore:EClass" name="CompositeElement" abstract="true"> |
21 | <eStructuralFeatures xsi:type="ecore:EReference" name="regions" upperBound="-1" eType="//Region" containment="true"/> | 27 | <eStructuralFeatures xsi:type="ecore:EReference" name="regions" upperBound="-1" |
28 | eType="#//Region" containment="true"/> | ||
22 | </eClassifiers> | 29 | </eClassifiers> |
23 | <eClassifiers xsi:type="ecore:EClass" name="Choice" eSuperTypes="//Pseudostate"/> | 30 | <eClassifiers xsi:type="ecore:EClass" name="Choice" eSuperTypes="#//Pseudostate"/> |
24 | <eClassifiers xsi:type="ecore:EClass" name="Exit" eSuperTypes="//Pseudostate"/> | 31 | <eClassifiers xsi:type="ecore:EClass" name="Exit" eSuperTypes="#//Pseudostate"/> |
25 | <eClassifiers xsi:type="ecore:EClass" name="FinalState" eSuperTypes="//RegularState"/> | 32 | <eClassifiers xsi:type="ecore:EClass" name="FinalState" eSuperTypes="#//RegularState"/> |
26 | </ecore:EPackage> | 33 | </ecore:EPackage> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel index b1f75d76..46801b3e 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel | |||
@@ -5,7 +5,7 @@ | |||
5 | rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" importerID="org.eclipse.emf.importer.ecore" | 5 | rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" importerID="org.eclipse.emf.importer.ecore" |
6 | complianceLevel="8.0" copyrightFields="false" operationReflection="true" importOrganizing="true"> | 6 | complianceLevel="8.0" copyrightFields="false" operationReflection="true" importOrganizing="true"> |
7 | <foreignModel>yakindu.ecore</foreignModel> | 7 | <foreignModel>yakindu.ecore</foreignModel> |
8 | <genPackages prefix="yakindu" basePackage="ca.mcgill.ecse.dslreasoner.standalone.test" | 8 | <genPackages prefix="Yakindu" basePackage="ca.mcgill.ecse.dslreasoner.standalone.test" |
9 | disposableProviderFactory="true" ecorePackage="yakindu.ecore#/"> | 9 | disposableProviderFactory="true" ecorePackage="yakindu.ecore#/"> |
10 | <genClasses image="false" ecoreClass="yakindu.ecore#//Pseudostate"/> | 10 | <genClasses image="false" ecoreClass="yakindu.ecore#//Pseudostate"/> |
11 | <genClasses image="false" ecoreClass="yakindu.ecore#//Vertex"> | 11 | <genClasses image="false" ecoreClass="yakindu.ecore#//Vertex"> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel_ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel_ new file mode 100644 index 00000000..b1f75d76 --- /dev/null +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/metamodels/yakindu.genmodel_ | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" | ||
3 | xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/ca.mcgill.ecse.dslreasoner.standalone.test/src" | ||
4 | modelPluginID="ca.mcgill.ecse.dslreasoner.standalone.test" modelName="Yakindu" | ||
5 | rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" importerID="org.eclipse.emf.importer.ecore" | ||
6 | complianceLevel="8.0" copyrightFields="false" operationReflection="true" importOrganizing="true"> | ||
7 | <foreignModel>yakindu.ecore</foreignModel> | ||
8 | <genPackages prefix="yakindu" basePackage="ca.mcgill.ecse.dslreasoner.standalone.test" | ||
9 | disposableProviderFactory="true" ecorePackage="yakindu.ecore#/"> | ||
10 | <genClasses image="false" ecoreClass="yakindu.ecore#//Pseudostate"/> | ||
11 | <genClasses image="false" ecoreClass="yakindu.ecore#//Vertex"> | ||
12 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference yakindu.ecore#//Vertex/incomingTransitions"/> | ||
13 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference yakindu.ecore#//Vertex/outgoingTransitions"/> | ||
14 | </genClasses> | ||
15 | <genClasses ecoreClass="yakindu.ecore#//Region"> | ||
16 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference yakindu.ecore#//Region/vertices"/> | ||
17 | </genClasses> | ||
18 | <genClasses ecoreClass="yakindu.ecore#//Transition"> | ||
19 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference yakindu.ecore#//Transition/target"/> | ||
20 | <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference yakindu.ecore#//Transition/source"/> | ||
21 | </genClasses> | ||
22 | <genClasses ecoreClass="yakindu.ecore#//Statechart"/> | ||
23 | <genClasses ecoreClass="yakindu.ecore#//Entry"/> | ||
24 | <genClasses ecoreClass="yakindu.ecore#//Synchronization"/> | ||
25 | <genClasses ecoreClass="yakindu.ecore#//State"/> | ||
26 | <genClasses image="false" ecoreClass="yakindu.ecore#//RegularState"/> | ||
27 | <genClasses image="false" ecoreClass="yakindu.ecore#//CompositeElement"> | ||
28 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference yakindu.ecore#//CompositeElement/regions"/> | ||
29 | </genClasses> | ||
30 | <genClasses ecoreClass="yakindu.ecore#//Choice"/> | ||
31 | <genClasses ecoreClass="yakindu.ecore#//Exit"/> | ||
32 | <genClasses ecoreClass="yakindu.ecore#//FinalState"/> | ||
33 | </genPackages> | ||
34 | </genmodel:GenModel> | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/plugin.xml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/plugin.xml index a2a573fc..0335dc9f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/plugin.xml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/plugin.xml | |||
@@ -5,10 +5,6 @@ | |||
5 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.fam.famPackage" genModel="metamodels/fam.genmodel" uri="FamMetamodel"/> | 5 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.fam.famPackage" genModel="metamodels/fam.genmodel" uri="FamMetamodel"/> |
6 | </extension> | 6 | </extension> |
7 | <extension point="org.eclipse.emf.ecore.generated_package"> | 7 | <extension point="org.eclipse.emf.ecore.generated_package"> |
8 | <!-- @generated yakindu --> | ||
9 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage" genModel="metamodels/yakindu.genmodel" uri="YakinduMetamodel"/> | ||
10 | </extension> | ||
11 | <extension point="org.eclipse.emf.ecore.generated_package"> | ||
12 | <!-- @generated filesystem --> | 8 | <!-- @generated filesystem --> |
13 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.filesystemPackage" genModel="metamodels/filesystem.genmodel" uri="FileSystemMetamodel"/> | 9 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.filesystemPackage" genModel="metamodels/filesystem.genmodel" uri="FileSystemMetamodel"/> |
14 | </extension> | 10 | </extension> |
@@ -34,74 +30,6 @@ | |||
34 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.queries.contentInNotLive"/> | 30 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.queries.contentInNotLive"/> |
35 | </group> | 31 | </group> |
36 | </extension> | 32 | </extension> |
37 | <extension id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduMutatedPatterns" point="org.eclipse.viatra.query.runtime.queryspecification"> | ||
38 | <group group="org.eclipse.viatra.query.runtime.extensibility.SingletonExtensionFactory:ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduMutatedPatterns" id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduMutatedPatterns"> | ||
39 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.entryInRegion_M0"/> | ||
40 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.entryInRegion_M1"/> | ||
41 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.entryInRegion_M2"/> | ||
42 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M0"/> | ||
43 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M1"/> | ||
44 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M2"/> | ||
45 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M3"/> | ||
46 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M4"/> | ||
47 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noEntryInRegion_M5"/> | ||
48 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M0"/> | ||
49 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M1"/> | ||
50 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M2"/> | ||
51 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M3"/> | ||
52 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M4"/> | ||
53 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleEntryInRegion_M5"/> | ||
54 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.transition_M0"/> | ||
55 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.transition_M1"/> | ||
56 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.transition_M2"/> | ||
57 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.transition_M3"/> | ||
58 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.transition_M4"/> | ||
59 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_M0"/> | ||
60 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_1"/> | ||
61 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_2"/> | ||
62 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_3"/> | ||
63 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_4"/> | ||
64 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.incomingToEntry_5"/> | ||
65 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M0"/> | ||
66 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M1"/> | ||
67 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M2"/> | ||
68 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M3"/> | ||
69 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M4"/> | ||
70 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noOutgoingTransitionFromEntry_M5"/> | ||
71 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleTransitionFromEntry_M0"/> | ||
72 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleTransitionFromEntry_M1"/> | ||
73 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleTransitionFromEntry_M2"/> | ||
74 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleTransitionFromEntry_M3"/> | ||
75 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.multipleTransitionFromEntry_M4"/> | ||
76 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromExit_M0"/> | ||
77 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromExit_M1"/> | ||
78 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromExit_M2"/> | ||
79 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromFinal_M0"/> | ||
80 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromFinal_M1"/> | ||
81 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.outgoingFromFinal_M2"/> | ||
82 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noStateInRegion_M0"/> | ||
83 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noStateInRegion_M1"/> | ||
84 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noStateInRegion_M2"/> | ||
85 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noStateInRegion_M3"/> | ||
86 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.StateInRegion_M0"/> | ||
87 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.StateInRegion_M1"/> | ||
88 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.StateInRegion_M2"/> | ||
89 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M0"/> | ||
90 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M1"/> | ||
91 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M2"/> | ||
92 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M3"/> | ||
93 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M4"/> | ||
94 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M5"/> | ||
95 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoOutgoing_M6"/> | ||
96 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M0"/> | ||
97 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M1"/> | ||
98 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M2"/> | ||
99 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M3"/> | ||
100 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M4"/> | ||
101 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M5"/> | ||
102 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.choiceHasNoIncoming_M6"/> | ||
103 | </group> | ||
104 | </extension> | ||
105 | <extension id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns" point="org.eclipse.viatra.query.runtime.queryspecification"> | 33 | <extension id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns" point="org.eclipse.viatra.query.runtime.queryspecification"> |
106 | <group group="org.eclipse.viatra.query.runtime.extensibility.SingletonExtensionFactory:ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns" id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns"> | 34 | <group group="org.eclipse.viatra.query.runtime.extensibility.SingletonExtensionFactory:ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns" id="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.YakinduPatterns"> |
107 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.entryInRegion"/> | 35 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.entryInRegion"/> |
@@ -129,6 +57,8 @@ | |||
129 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.hasMultipleRegions"/> | 57 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.hasMultipleRegions"/> |
130 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.synchThree"/> | 58 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.synchThree"/> |
131 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.twoSynch"/> | 59 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.twoSynch"/> |
60 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.noSynch"/> | ||
61 | <query-specification fqn="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.queries.synch"/> | ||
132 | </group> | 62 | </group> |
133 | </extension> | 63 | </extension> |
134 | <extension id="extension.derived.ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model" point="org.eclipse.viatra.query.runtime.base.wellbehaving.derived.features"> | 64 | <extension id="extension.derived.ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model" point="org.eclipse.viatra.query.runtime.base.wellbehaving.derived.features"> |
@@ -140,4 +70,8 @@ | |||
140 | <extension id="extension.derived.ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.queries.live" point="org.eclipse.viatra.query.runtime.base.wellbehaving.derived.features"> | 70 | <extension id="extension.derived.ca.mcgill.ecse.dslreasoner.standalone.test.filesystem.queries.live" point="org.eclipse.viatra.query.runtime.base.wellbehaving.derived.features"> |
141 | <wellbehaving-derived-feature classifier-name="FileSystem" feature-name="live" package-nsUri="FileSystemMetamodel"/> | 71 | <wellbehaving-derived-feature classifier-name="FileSystem" feature-name="live" package-nsUri="FileSystemMetamodel"/> |
142 | </extension> | 72 | </extension> |
73 | <extension point="org.eclipse.emf.ecore.generated_package"> | ||
74 | <!-- @generated yakindu --> | ||
75 | <package class="ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage" genModel="metamodels/yakindu.genmodel" uri="YakinduMetamodel"/> | ||
76 | </extension> | ||
143 | </plugin> | 77 | </plugin> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduMutatedPatterns.vql b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduMutatedPatterns.vql_ index 2e498670..2e498670 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduMutatedPatterns.vql +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduMutatedPatterns.vql_ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduPatterns.vql b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduPatterns.vql index 597b1691..ea8184de 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduPatterns.vql +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/queries/yakinduPatterns.vql | |||
@@ -217,11 +217,11 @@ pattern twoSynch(s1 : Synchronization, s2 : Synchronization) { | |||
217 | /** | 217 | /** |
218 | * Model generation task: at least one synch | 218 | * Model generation task: at least one synch |
219 | */ | 219 | */ |
220 | //@Constraint(severity="error", message="error", key = {s}) | 220 | @Constraint(severity="error", message="error", key = {s}) |
221 | //pattern noSynch(s:Statechart) { | 221 | pattern noSynch(s:Statechart) { |
222 | // Statechart(s); | 222 | Statechart(s); |
223 | // neg find synch(_); | 223 | neg find synch(_); |
224 | //} | 224 | } |
225 | //pattern synch(s:Synchronization) { | 225 | pattern synch(s:Synchronization) { |
226 | // Synchronization(s); | 226 | Synchronization(s); |
227 | //} \ No newline at end of file | 227 | } \ No newline at end of file |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/ecore/queries/.gitignore b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/ecore/queries/.gitignore deleted file mode 100644 index a9786e0f..00000000 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/ecore/queries/.gitignore +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | /.DirectSupertype.java._trace | ||
2 | /.Ecore.java._trace | ||
3 | /.LoopInInheritence.java._trace | ||
4 | /.NonSymmetricOpposite.java._trace | ||
5 | /.Opposite.java._trace | ||
6 | /.OppositeDifferentClass.java._trace | ||
7 | /.EcorePatterns.java._trace | ||
8 | /DirectSupertype.java | ||
9 | /EcorePatterns.java | ||
10 | /LoopInInheritence.java | ||
11 | /NonSymmetricOpposite.java | ||
12 | /Opposite.java | ||
13 | /OppositeDifferentClass.java | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/.gitignore b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/.gitignore deleted file mode 100644 index 60f1891b..00000000 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/.gitignore +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | /.FamPatterns.java._trace | ||
2 | /.Model.java._trace | ||
3 | /.Parent.java._trace | ||
4 | /.RootElements.java._trace | ||
5 | /.TerminatorAndInformation.java._trace | ||
6 | /.Type.java._trace | ||
7 | /FamPatterns.java | ||
8 | /Model.java | ||
9 | /Parent.java | ||
10 | /RootElements.java | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/Type.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/Type.java deleted file mode 100644 index bc3230c5..00000000 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src-gen/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/Type.java +++ /dev/null | |||
@@ -1,770 +0,0 @@ | |||
1 | /** | ||
2 | * Generated from platform:/resource/ca.mcgill.ecse.dslreasoner.standalone.test/queries/ca/mcgill/ecse/dslreasoner/standalone/test/fam/queries/famPatterns.vql | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function; | ||
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionType; | ||
8 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.Parent; | ||
9 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.RootElements; | ||
10 | import java.util.Arrays; | ||
11 | import java.util.Collection; | ||
12 | import java.util.LinkedHashSet; | ||
13 | import java.util.List; | ||
14 | import java.util.Objects; | ||
15 | import java.util.Optional; | ||
16 | import java.util.Set; | ||
17 | import java.util.function.Consumer; | ||
18 | import java.util.stream.Collectors; | ||
19 | import java.util.stream.Stream; | ||
20 | import org.apache.log4j.Logger; | ||
21 | import org.eclipse.emf.ecore.EClass; | ||
22 | import org.eclipse.emf.ecore.EDataType; | ||
23 | import org.eclipse.viatra.query.runtime.api.IPatternMatch; | ||
24 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification; | ||
25 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | ||
26 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFPQuery; | ||
27 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification; | ||
28 | import org.eclipse.viatra.query.runtime.api.impl.BaseMatcher; | ||
29 | import org.eclipse.viatra.query.runtime.api.impl.BasePatternMatch; | ||
30 | import org.eclipse.viatra.query.runtime.emf.types.EClassTransitiveInstancesKey; | ||
31 | import org.eclipse.viatra.query.runtime.emf.types.EDataTypeInSlotsKey; | ||
32 | import org.eclipse.viatra.query.runtime.matchers.backend.QueryEvaluationHint; | ||
33 | import org.eclipse.viatra.query.runtime.matchers.psystem.PBody; | ||
34 | import org.eclipse.viatra.query.runtime.matchers.psystem.PVariable; | ||
35 | import org.eclipse.viatra.query.runtime.matchers.psystem.annotations.PAnnotation; | ||
36 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.Equality; | ||
37 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter; | ||
38 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.NegativePatternCall; | ||
39 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.ConstantValue; | ||
40 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.PositivePatternCall; | ||
41 | import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint; | ||
42 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter; | ||
43 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameterDirection; | ||
44 | import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PVisibility; | ||
45 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuple; | ||
46 | import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples; | ||
47 | import org.eclipse.viatra.query.runtime.util.ViatraQueryLoggingUtil; | ||
48 | |||
49 | /** | ||
50 | * A pattern-specific query specification that can instantiate Matcher in a type-safe way. | ||
51 | * | ||
52 | * <p>Original source: | ||
53 | * <code><pre> | ||
54 | * {@literal @}QueryBasedFeature | ||
55 | * pattern type(This : Function, Target : FunctionType) = { | ||
56 | * find rootElements(_Model, This); | ||
57 | * Target == FunctionType::Root; | ||
58 | * } or { | ||
59 | * neg find parent(_Child, This); | ||
60 | * neg find rootElements(_Model, This); | ||
61 | * Target == FunctionType::Leaf; | ||
62 | * } or { | ||
63 | * find parent(This, _Par); | ||
64 | * find parent(_Child, This); | ||
65 | * Target == FunctionType::Intermediate; | ||
66 | * } | ||
67 | * </pre></code> | ||
68 | * | ||
69 | * @see Matcher | ||
70 | * @see Match | ||
71 | * | ||
72 | */ | ||
73 | @SuppressWarnings("all") | ||
74 | public final class Type extends BaseGeneratedEMFQuerySpecification<Type.Matcher> { | ||
75 | /** | ||
76 | * Pattern-specific match representation of the ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.type pattern, | ||
77 | * to be used in conjunction with {@link Matcher}. | ||
78 | * | ||
79 | * <p>Class fields correspond to parameters of the pattern. Fields with value null are considered unassigned. | ||
80 | * Each instance is a (possibly partial) substitution of pattern parameters, | ||
81 | * usable to represent a match of the pattern in the result of a query, | ||
82 | * or to specify the bound (fixed) input parameters when issuing a query. | ||
83 | * | ||
84 | * @see Matcher | ||
85 | * | ||
86 | */ | ||
87 | public static abstract class Match extends BasePatternMatch { | ||
88 | private Function fThis; | ||
89 | |||
90 | private FunctionType fTarget; | ||
91 | |||
92 | private static List<String> parameterNames = makeImmutableList("This", "Target"); | ||
93 | |||
94 | private Match(final Function pThis, final FunctionType pTarget) { | ||
95 | this.fThis = pThis; | ||
96 | this.fTarget = pTarget; | ||
97 | } | ||
98 | |||
99 | @Override | ||
100 | public Object get(final String parameterName) { | ||
101 | if ("This".equals(parameterName)) return this.fThis; | ||
102 | if ("Target".equals(parameterName)) return this.fTarget; | ||
103 | return null; | ||
104 | } | ||
105 | |||
106 | public Function getThis() { | ||
107 | return this.fThis; | ||
108 | } | ||
109 | |||
110 | public FunctionType getTarget() { | ||
111 | return this.fTarget; | ||
112 | } | ||
113 | |||
114 | @Override | ||
115 | public boolean set(final String parameterName, final Object newValue) { | ||
116 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
117 | if ("This".equals(parameterName) ) { | ||
118 | this.fThis = (Function) newValue; | ||
119 | return true; | ||
120 | } | ||
121 | if ("Target".equals(parameterName) ) { | ||
122 | this.fTarget = (FunctionType) newValue; | ||
123 | return true; | ||
124 | } | ||
125 | return false; | ||
126 | } | ||
127 | |||
128 | public void setThis(final Function pThis) { | ||
129 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
130 | this.fThis = pThis; | ||
131 | } | ||
132 | |||
133 | public void setTarget(final FunctionType pTarget) { | ||
134 | if (!isMutable()) throw new java.lang.UnsupportedOperationException(); | ||
135 | this.fTarget = pTarget; | ||
136 | } | ||
137 | |||
138 | @Override | ||
139 | public String patternName() { | ||
140 | return "ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.type"; | ||
141 | } | ||
142 | |||
143 | @Override | ||
144 | public List<String> parameterNames() { | ||
145 | return Type.Match.parameterNames; | ||
146 | } | ||
147 | |||
148 | @Override | ||
149 | public Object[] toArray() { | ||
150 | return new Object[]{fThis, fTarget}; | ||
151 | } | ||
152 | |||
153 | @Override | ||
154 | public Type.Match toImmutable() { | ||
155 | return isMutable() ? newMatch(fThis, fTarget) : this; | ||
156 | } | ||
157 | |||
158 | @Override | ||
159 | public String prettyPrint() { | ||
160 | StringBuilder result = new StringBuilder(); | ||
161 | result.append("\"This\"=" + prettyPrintValue(fThis) + ", "); | ||
162 | result.append("\"Target\"=" + prettyPrintValue(fTarget)); | ||
163 | return result.toString(); | ||
164 | } | ||
165 | |||
166 | @Override | ||
167 | public int hashCode() { | ||
168 | return Objects.hash(fThis, fTarget); | ||
169 | } | ||
170 | |||
171 | @Override | ||
172 | public boolean equals(final Object obj) { | ||
173 | if (this == obj) | ||
174 | return true; | ||
175 | if (obj == null) { | ||
176 | return false; | ||
177 | } | ||
178 | if ((obj instanceof Type.Match)) { | ||
179 | Type.Match other = (Type.Match) obj; | ||
180 | return Objects.equals(fThis, other.fThis) && Objects.equals(fTarget, other.fTarget); | ||
181 | } else { | ||
182 | // this should be infrequent | ||
183 | if (!(obj instanceof IPatternMatch)) { | ||
184 | return false; | ||
185 | } | ||
186 | IPatternMatch otherSig = (IPatternMatch) obj; | ||
187 | return Objects.equals(specification(), otherSig.specification()) && Arrays.deepEquals(toArray(), otherSig.toArray()); | ||
188 | } | ||
189 | } | ||
190 | |||
191 | @Override | ||
192 | public Type specification() { | ||
193 | return Type.instance(); | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * Returns an empty, mutable match. | ||
198 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
199 | * | ||
200 | * @return the empty match. | ||
201 | * | ||
202 | */ | ||
203 | public static Type.Match newEmptyMatch() { | ||
204 | return new Mutable(null, null); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * Returns a mutable (partial) match. | ||
209 | * Fields of the mutable match can be filled to create a partial match, usable as matcher input. | ||
210 | * | ||
211 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
212 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
213 | * @return the new, mutable (partial) match object. | ||
214 | * | ||
215 | */ | ||
216 | public static Type.Match newMutableMatch(final Function pThis, final FunctionType pTarget) { | ||
217 | return new Mutable(pThis, pTarget); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Returns a new (partial) match. | ||
222 | * This can be used e.g. to call the matcher with a partial match. | ||
223 | * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. | ||
224 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
225 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
226 | * @return the (partial) match object. | ||
227 | * | ||
228 | */ | ||
229 | public static Type.Match newMatch(final Function pThis, final FunctionType pTarget) { | ||
230 | return new Immutable(pThis, pTarget); | ||
231 | } | ||
232 | |||
233 | private static final class Mutable extends Type.Match { | ||
234 | Mutable(final Function pThis, final FunctionType pTarget) { | ||
235 | super(pThis, pTarget); | ||
236 | } | ||
237 | |||
238 | @Override | ||
239 | public boolean isMutable() { | ||
240 | return true; | ||
241 | } | ||
242 | } | ||
243 | |||
244 | private static final class Immutable extends Type.Match { | ||
245 | Immutable(final Function pThis, final FunctionType pTarget) { | ||
246 | super(pThis, pTarget); | ||
247 | } | ||
248 | |||
249 | @Override | ||
250 | public boolean isMutable() { | ||
251 | return false; | ||
252 | } | ||
253 | } | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * Generated pattern matcher API of the ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.type pattern, | ||
258 | * providing pattern-specific query methods. | ||
259 | * | ||
260 | * <p>Use the pattern matcher on a given model via {@link #on(ViatraQueryEngine)}, | ||
261 | * e.g. in conjunction with {@link ViatraQueryEngine#on(QueryScope)}. | ||
262 | * | ||
263 | * <p>Matches of the pattern will be represented as {@link Match}. | ||
264 | * | ||
265 | * <p>Original source: | ||
266 | * <code><pre> | ||
267 | * {@literal @}QueryBasedFeature | ||
268 | * pattern type(This : Function, Target : FunctionType) = { | ||
269 | * find rootElements(_Model, This); | ||
270 | * Target == FunctionType::Root; | ||
271 | * } or { | ||
272 | * neg find parent(_Child, This); | ||
273 | * neg find rootElements(_Model, This); | ||
274 | * Target == FunctionType::Leaf; | ||
275 | * } or { | ||
276 | * find parent(This, _Par); | ||
277 | * find parent(_Child, This); | ||
278 | * Target == FunctionType::Intermediate; | ||
279 | * } | ||
280 | * </pre></code> | ||
281 | * | ||
282 | * @see Match | ||
283 | * @see Type | ||
284 | * | ||
285 | */ | ||
286 | public static class Matcher extends BaseMatcher<Type.Match> { | ||
287 | /** | ||
288 | * Initializes the pattern matcher within an existing VIATRA Query engine. | ||
289 | * If the pattern matcher is already constructed in the engine, only a light-weight reference is returned. | ||
290 | * | ||
291 | * @param engine the existing VIATRA Query engine in which this matcher will be created. | ||
292 | * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation | ||
293 | * | ||
294 | */ | ||
295 | public static Type.Matcher on(final ViatraQueryEngine engine) { | ||
296 | // check if matcher already exists | ||
297 | Matcher matcher = engine.getExistingMatcher(querySpecification()); | ||
298 | if (matcher == null) { | ||
299 | matcher = (Matcher)engine.getMatcher(querySpecification()); | ||
300 | } | ||
301 | return matcher; | ||
302 | } | ||
303 | |||
304 | /** | ||
305 | * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation | ||
306 | * @return an initialized matcher | ||
307 | * @noreference This method is for internal matcher initialization by the framework, do not call it manually. | ||
308 | * | ||
309 | */ | ||
310 | public static Type.Matcher create() { | ||
311 | return new Matcher(); | ||
312 | } | ||
313 | |||
314 | private final static int POSITION_THIS = 0; | ||
315 | |||
316 | private final static int POSITION_TARGET = 1; | ||
317 | |||
318 | private final static Logger LOGGER = ViatraQueryLoggingUtil.getLogger(Type.Matcher.class); | ||
319 | |||
320 | /** | ||
321 | * Initializes the pattern matcher within an existing VIATRA Query engine. | ||
322 | * If the pattern matcher is already constructed in the engine, only a light-weight reference is returned. | ||
323 | * | ||
324 | * @param engine the existing VIATRA Query engine in which this matcher will be created. | ||
325 | * @throws ViatraQueryRuntimeException if an error occurs during pattern matcher creation | ||
326 | * | ||
327 | */ | ||
328 | private Matcher() { | ||
329 | super(querySpecification()); | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Returns the set of all matches of the pattern that conform to the given fixed values of some parameters. | ||
334 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
335 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
336 | * @return matches represented as a Match object. | ||
337 | * | ||
338 | */ | ||
339 | public Collection<Type.Match> getAllMatches(final Function pThis, final FunctionType pTarget) { | ||
340 | return rawStreamAllMatches(new Object[]{pThis, pTarget}).collect(Collectors.toSet()); | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * Returns a stream of all matches of the pattern that conform to the given fixed values of some parameters. | ||
345 | * </p> | ||
346 | * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed. | ||
347 | * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>. | ||
348 | * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code. | ||
349 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
350 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
351 | * @return a stream of matches represented as a Match object. | ||
352 | * | ||
353 | */ | ||
354 | public Stream<Type.Match> streamAllMatches(final Function pThis, final FunctionType pTarget) { | ||
355 | return rawStreamAllMatches(new Object[]{pThis, pTarget}); | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. | ||
360 | * Neither determinism nor randomness of selection is guaranteed. | ||
361 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
362 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
363 | * @return a match represented as a Match object, or null if no match is found. | ||
364 | * | ||
365 | */ | ||
366 | public Optional<Type.Match> getOneArbitraryMatch(final Function pThis, final FunctionType pTarget) { | ||
367 | return rawGetOneArbitraryMatch(new Object[]{pThis, pTarget}); | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * Indicates whether the given combination of specified pattern parameters constitute a valid pattern match, | ||
372 | * under any possible substitution of the unspecified parameters (if any). | ||
373 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
374 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
375 | * @return true if the input is a valid (partial) match of the pattern. | ||
376 | * | ||
377 | */ | ||
378 | public boolean hasMatch(final Function pThis, final FunctionType pTarget) { | ||
379 | return rawHasMatch(new Object[]{pThis, pTarget}); | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * Returns the number of all matches of the pattern that conform to the given fixed values of some parameters. | ||
384 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
385 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
386 | * @return the number of pattern matches found. | ||
387 | * | ||
388 | */ | ||
389 | public int countMatches(final Function pThis, final FunctionType pTarget) { | ||
390 | return rawCountMatches(new Object[]{pThis, pTarget}); | ||
391 | } | ||
392 | |||
393 | /** | ||
394 | * Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. | ||
395 | * Neither determinism nor randomness of selection is guaranteed. | ||
396 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
397 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
398 | * @param processor the action that will process the selected match. | ||
399 | * @return true if the pattern has at least one match with the given parameter values, false if the processor was not invoked | ||
400 | * | ||
401 | */ | ||
402 | public boolean forOneArbitraryMatch(final Function pThis, final FunctionType pTarget, final Consumer<? super Type.Match> processor) { | ||
403 | return rawForOneArbitraryMatch(new Object[]{pThis, pTarget}, processor); | ||
404 | } | ||
405 | |||
406 | /** | ||
407 | * Returns a new (partial) match. | ||
408 | * This can be used e.g. to call the matcher with a partial match. | ||
409 | * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. | ||
410 | * @param pThis the fixed value of pattern parameter This, or null if not bound. | ||
411 | * @param pTarget the fixed value of pattern parameter Target, or null if not bound. | ||
412 | * @return the (partial) match object. | ||
413 | * | ||
414 | */ | ||
415 | public Type.Match newMatch(final Function pThis, final FunctionType pTarget) { | ||
416 | return Type.Match.newMatch(pThis, pTarget); | ||
417 | } | ||
418 | |||
419 | /** | ||
420 | * Retrieve the set of values that occur in matches for This. | ||
421 | * @return the Set of all values or empty set if there are no matches | ||
422 | * | ||
423 | */ | ||
424 | protected Stream<Function> rawStreamAllValuesOfThis(final Object[] parameters) { | ||
425 | return rawStreamAllValues(POSITION_THIS, parameters).map(Function.class::cast); | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Retrieve the set of values that occur in matches for This. | ||
430 | * @return the Set of all values or empty set if there are no matches | ||
431 | * | ||
432 | */ | ||
433 | public Set<Function> getAllValuesOfThis() { | ||
434 | return rawStreamAllValuesOfThis(emptyArray()).collect(Collectors.toSet()); | ||
435 | } | ||
436 | |||
437 | /** | ||
438 | * Retrieve the set of values that occur in matches for This. | ||
439 | * @return the Set of all values or empty set if there are no matches | ||
440 | * | ||
441 | */ | ||
442 | public Stream<Function> streamAllValuesOfThis() { | ||
443 | return rawStreamAllValuesOfThis(emptyArray()); | ||
444 | } | ||
445 | |||
446 | /** | ||
447 | * Retrieve the set of values that occur in matches for This. | ||
448 | * </p> | ||
449 | * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed. | ||
450 | * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>. | ||
451 | * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code. | ||
452 | * | ||
453 | * @return the Stream of all values or empty set if there are no matches | ||
454 | * | ||
455 | */ | ||
456 | public Stream<Function> streamAllValuesOfThis(final Type.Match partialMatch) { | ||
457 | return rawStreamAllValuesOfThis(partialMatch.toArray()); | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Retrieve the set of values that occur in matches for This. | ||
462 | * </p> | ||
463 | * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed. | ||
464 | * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>. | ||
465 | * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code. | ||
466 | * | ||
467 | * @return the Stream of all values or empty set if there are no matches | ||
468 | * | ||
469 | */ | ||
470 | public Stream<Function> streamAllValuesOfThis(final FunctionType pTarget) { | ||
471 | return rawStreamAllValuesOfThis(new Object[]{null, pTarget}); | ||
472 | } | ||
473 | |||
474 | /** | ||
475 | * Retrieve the set of values that occur in matches for This. | ||
476 | * @return the Set of all values or empty set if there are no matches | ||
477 | * | ||
478 | */ | ||
479 | public Set<Function> getAllValuesOfThis(final Type.Match partialMatch) { | ||
480 | return rawStreamAllValuesOfThis(partialMatch.toArray()).collect(Collectors.toSet()); | ||
481 | } | ||
482 | |||
483 | /** | ||
484 | * Retrieve the set of values that occur in matches for This. | ||
485 | * @return the Set of all values or empty set if there are no matches | ||
486 | * | ||
487 | */ | ||
488 | public Set<Function> getAllValuesOfThis(final FunctionType pTarget) { | ||
489 | return rawStreamAllValuesOfThis(new Object[]{null, pTarget}).collect(Collectors.toSet()); | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * Retrieve the set of values that occur in matches for Target. | ||
494 | * @return the Set of all values or empty set if there are no matches | ||
495 | * | ||
496 | */ | ||
497 | protected Stream<FunctionType> rawStreamAllValuesOfTarget(final Object[] parameters) { | ||
498 | return rawStreamAllValues(POSITION_TARGET, parameters).map(FunctionType.class::cast); | ||
499 | } | ||
500 | |||
501 | /** | ||
502 | * Retrieve the set of values that occur in matches for Target. | ||
503 | * @return the Set of all values or empty set if there are no matches | ||
504 | * | ||
505 | */ | ||
506 | public Set<FunctionType> getAllValuesOfTarget() { | ||
507 | return rawStreamAllValuesOfTarget(emptyArray()).collect(Collectors.toSet()); | ||
508 | } | ||
509 | |||
510 | /** | ||
511 | * Retrieve the set of values that occur in matches for Target. | ||
512 | * @return the Set of all values or empty set if there are no matches | ||
513 | * | ||
514 | */ | ||
515 | public Stream<FunctionType> streamAllValuesOfTarget() { | ||
516 | return rawStreamAllValuesOfTarget(emptyArray()); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * Retrieve the set of values that occur in matches for Target. | ||
521 | * </p> | ||
522 | * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed. | ||
523 | * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>. | ||
524 | * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code. | ||
525 | * | ||
526 | * @return the Stream of all values or empty set if there are no matches | ||
527 | * | ||
528 | */ | ||
529 | public Stream<FunctionType> streamAllValuesOfTarget(final Type.Match partialMatch) { | ||
530 | return rawStreamAllValuesOfTarget(partialMatch.toArray()); | ||
531 | } | ||
532 | |||
533 | /** | ||
534 | * Retrieve the set of values that occur in matches for Target. | ||
535 | * </p> | ||
536 | * <strong>NOTE</strong>: It is important not to modify the source model while the stream is being processed. | ||
537 | * If the match set of the pattern changes during processing, the contents of the stream is <strong>undefined</strong>. | ||
538 | * In such cases, either rely on {@link #getAllMatches()} or collect the results of the stream in end-user code. | ||
539 | * | ||
540 | * @return the Stream of all values or empty set if there are no matches | ||
541 | * | ||
542 | */ | ||
543 | public Stream<FunctionType> streamAllValuesOfTarget(final Function pThis) { | ||
544 | return rawStreamAllValuesOfTarget(new Object[]{pThis, null}); | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * Retrieve the set of values that occur in matches for Target. | ||
549 | * @return the Set of all values or empty set if there are no matches | ||
550 | * | ||
551 | */ | ||
552 | public Set<FunctionType> getAllValuesOfTarget(final Type.Match partialMatch) { | ||
553 | return rawStreamAllValuesOfTarget(partialMatch.toArray()).collect(Collectors.toSet()); | ||
554 | } | ||
555 | |||
556 | /** | ||
557 | * Retrieve the set of values that occur in matches for Target. | ||
558 | * @return the Set of all values or empty set if there are no matches | ||
559 | * | ||
560 | */ | ||
561 | public Set<FunctionType> getAllValuesOfTarget(final Function pThis) { | ||
562 | return rawStreamAllValuesOfTarget(new Object[]{pThis, null}).collect(Collectors.toSet()); | ||
563 | } | ||
564 | |||
565 | @Override | ||
566 | protected Type.Match tupleToMatch(final Tuple t) { | ||
567 | try { | ||
568 | return Type.Match.newMatch((Function) t.get(POSITION_THIS), (FunctionType) t.get(POSITION_TARGET)); | ||
569 | } catch(ClassCastException e) { | ||
570 | LOGGER.error("Element(s) in tuple not properly typed!",e); | ||
571 | return null; | ||
572 | } | ||
573 | } | ||
574 | |||
575 | @Override | ||
576 | protected Type.Match arrayToMatch(final Object[] match) { | ||
577 | try { | ||
578 | return Type.Match.newMatch((Function) match[POSITION_THIS], (FunctionType) match[POSITION_TARGET]); | ||
579 | } catch(ClassCastException e) { | ||
580 | LOGGER.error("Element(s) in array not properly typed!",e); | ||
581 | return null; | ||
582 | } | ||
583 | } | ||
584 | |||
585 | @Override | ||
586 | protected Type.Match arrayToMatchMutable(final Object[] match) { | ||
587 | try { | ||
588 | return Type.Match.newMutableMatch((Function) match[POSITION_THIS], (FunctionType) match[POSITION_TARGET]); | ||
589 | } catch(ClassCastException e) { | ||
590 | LOGGER.error("Element(s) in array not properly typed!",e); | ||
591 | return null; | ||
592 | } | ||
593 | } | ||
594 | |||
595 | /** | ||
596 | * @return the singleton instance of the query specification of this pattern | ||
597 | * @throws ViatraQueryRuntimeException if the pattern definition could not be loaded | ||
598 | * | ||
599 | */ | ||
600 | public static IQuerySpecification<Type.Matcher> querySpecification() { | ||
601 | return Type.instance(); | ||
602 | } | ||
603 | } | ||
604 | |||
605 | private Type() { | ||
606 | super(GeneratedPQuery.INSTANCE); | ||
607 | } | ||
608 | |||
609 | /** | ||
610 | * @return the singleton instance of the query specification | ||
611 | * @throws ViatraQueryRuntimeException if the pattern definition could not be loaded | ||
612 | * | ||
613 | */ | ||
614 | public static Type instance() { | ||
615 | try{ | ||
616 | return LazyHolder.INSTANCE; | ||
617 | } catch (ExceptionInInitializerError err) { | ||
618 | throw processInitializerError(err); | ||
619 | } | ||
620 | } | ||
621 | |||
622 | @Override | ||
623 | protected Type.Matcher instantiate(final ViatraQueryEngine engine) { | ||
624 | return Type.Matcher.on(engine); | ||
625 | } | ||
626 | |||
627 | @Override | ||
628 | public Type.Matcher instantiate() { | ||
629 | return Type.Matcher.create(); | ||
630 | } | ||
631 | |||
632 | @Override | ||
633 | public Type.Match newEmptyMatch() { | ||
634 | return Type.Match.newEmptyMatch(); | ||
635 | } | ||
636 | |||
637 | @Override | ||
638 | public Type.Match newMatch(final Object... parameters) { | ||
639 | return Type.Match.newMatch((ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function) parameters[0], (ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionType) parameters[1]); | ||
640 | } | ||
641 | |||
642 | /** | ||
643 | * Inner class allowing the singleton instance of {@link JvmGenericType: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.Type (visibility: PUBLIC, simpleName: Type, identifier: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.Type, deprecated: <unset>) (abstract: false, static: false, final: true, packageName: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries) (interface: false, strictFloatingPoint: false, anonymous: false)} to be created | ||
644 | * <b>not</b> at the class load time of the outer class, | ||
645 | * but rather at the first call to {@link JvmGenericType: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.Type (visibility: PUBLIC, simpleName: Type, identifier: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.Type, deprecated: <unset>) (abstract: false, static: false, final: true, packageName: ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries) (interface: false, strictFloatingPoint: false, anonymous: false)#instance()}. | ||
646 | * | ||
647 | * <p> This workaround is required e.g. to support recursion. | ||
648 | * | ||
649 | */ | ||
650 | private static class LazyHolder { | ||
651 | private final static Type INSTANCE = new Type(); | ||
652 | |||
653 | /** | ||
654 | * Statically initializes the query specification <b>after</b> the field {@link #INSTANCE} is assigned. | ||
655 | * This initialization order is required to support indirect recursion. | ||
656 | * | ||
657 | * <p> The static initializer is defined using a helper field to work around limitations of the code generator. | ||
658 | * | ||
659 | */ | ||
660 | private final static Object STATIC_INITIALIZER = ensureInitialized(); | ||
661 | |||
662 | public static Object ensureInitialized() { | ||
663 | INSTANCE.ensureInitializedInternal(); | ||
664 | return null; | ||
665 | } | ||
666 | } | ||
667 | |||
668 | private static class GeneratedPQuery extends BaseGeneratedEMFPQuery { | ||
669 | private final static Type.GeneratedPQuery INSTANCE = new GeneratedPQuery(); | ||
670 | |||
671 | private final PParameter parameter_This = new PParameter("This", "ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function", new EClassTransitiveInstancesKey((EClass)getClassifierLiteralSafe("FamMetamodel", "Function")), PParameterDirection.INOUT); | ||
672 | |||
673 | private final PParameter parameter_Target = new PParameter("Target", "ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionType", new EDataTypeInSlotsKey((EDataType)getClassifierLiteralSafe("FamMetamodel", "FunctionType")), PParameterDirection.INOUT); | ||
674 | |||
675 | private final List<PParameter> parameters = Arrays.asList(parameter_This, parameter_Target); | ||
676 | |||
677 | private GeneratedPQuery() { | ||
678 | super(PVisibility.PUBLIC); | ||
679 | } | ||
680 | |||
681 | @Override | ||
682 | public String getFullyQualifiedName() { | ||
683 | return "ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.type"; | ||
684 | } | ||
685 | |||
686 | @Override | ||
687 | public List<String> getParameterNames() { | ||
688 | return Arrays.asList("This","Target"); | ||
689 | } | ||
690 | |||
691 | @Override | ||
692 | public List<PParameter> getParameters() { | ||
693 | return parameters; | ||
694 | } | ||
695 | |||
696 | @Override | ||
697 | public Set<PBody> doGetContainedBodies() { | ||
698 | setEvaluationHints(new QueryEvaluationHint(null, QueryEvaluationHint.BackendRequirement.UNSPECIFIED)); | ||
699 | Set<PBody> bodies = new LinkedHashSet<>(); | ||
700 | { | ||
701 | PBody body = new PBody(this); | ||
702 | PVariable var_This = body.getOrCreateVariableByName("This"); | ||
703 | PVariable var_Target = body.getOrCreateVariableByName("Target"); | ||
704 | PVariable var__Model = body.getOrCreateVariableByName("_Model"); | ||
705 | new TypeConstraint(body, Tuples.flatTupleOf(var_This), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("FamMetamodel", "Function"))); | ||
706 | new TypeConstraint(body, Tuples.flatTupleOf(var_Target), new EDataTypeInSlotsKey((EDataType)getClassifierLiteral("FamMetamodel", "FunctionType"))); | ||
707 | body.setSymbolicParameters(Arrays.<ExportedParameter>asList( | ||
708 | new ExportedParameter(body, var_This, parameter_This), | ||
709 | new ExportedParameter(body, var_Target, parameter_Target) | ||
710 | )); | ||
711 | // find rootElements(_Model, This) | ||
712 | new PositivePatternCall(body, Tuples.flatTupleOf(var__Model, var_This), RootElements.instance().getInternalQueryRepresentation()); | ||
713 | // Target == FunctionType::Root | ||
714 | PVariable var__virtual_0_ = body.getOrCreateVariableByName(".virtual{0}"); | ||
715 | new ConstantValue(body, var__virtual_0_, getEnumLiteral("FamMetamodel", "FunctionType", "Root").getInstance()); | ||
716 | new Equality(body, var_Target, var__virtual_0_); | ||
717 | bodies.add(body); | ||
718 | } | ||
719 | { | ||
720 | PBody body = new PBody(this); | ||
721 | PVariable var_This = body.getOrCreateVariableByName("This"); | ||
722 | PVariable var_Target = body.getOrCreateVariableByName("Target"); | ||
723 | PVariable var__Child = body.getOrCreateVariableByName("_Child"); | ||
724 | PVariable var__Model = body.getOrCreateVariableByName("_Model"); | ||
725 | new TypeConstraint(body, Tuples.flatTupleOf(var_This), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("FamMetamodel", "Function"))); | ||
726 | new TypeConstraint(body, Tuples.flatTupleOf(var_Target), new EDataTypeInSlotsKey((EDataType)getClassifierLiteral("FamMetamodel", "FunctionType"))); | ||
727 | body.setSymbolicParameters(Arrays.<ExportedParameter>asList( | ||
728 | new ExportedParameter(body, var_This, parameter_This), | ||
729 | new ExportedParameter(body, var_Target, parameter_Target) | ||
730 | )); | ||
731 | // neg find parent(_Child, This) | ||
732 | new NegativePatternCall(body, Tuples.flatTupleOf(var__Child, var_This), Parent.instance().getInternalQueryRepresentation()); | ||
733 | // neg find rootElements(_Model, This) | ||
734 | new NegativePatternCall(body, Tuples.flatTupleOf(var__Model, var_This), RootElements.instance().getInternalQueryRepresentation()); | ||
735 | // Target == FunctionType::Leaf | ||
736 | PVariable var__virtual_0_ = body.getOrCreateVariableByName(".virtual{0}"); | ||
737 | new ConstantValue(body, var__virtual_0_, getEnumLiteral("FamMetamodel", "FunctionType", "Leaf").getInstance()); | ||
738 | new Equality(body, var_Target, var__virtual_0_); | ||
739 | bodies.add(body); | ||
740 | } | ||
741 | { | ||
742 | PBody body = new PBody(this); | ||
743 | PVariable var_This = body.getOrCreateVariableByName("This"); | ||
744 | PVariable var_Target = body.getOrCreateVariableByName("Target"); | ||
745 | PVariable var__Par = body.getOrCreateVariableByName("_Par"); | ||
746 | PVariable var__Child = body.getOrCreateVariableByName("_Child"); | ||
747 | new TypeConstraint(body, Tuples.flatTupleOf(var_This), new EClassTransitiveInstancesKey((EClass)getClassifierLiteral("FamMetamodel", "Function"))); | ||
748 | new TypeConstraint(body, Tuples.flatTupleOf(var_Target), new EDataTypeInSlotsKey((EDataType)getClassifierLiteral("FamMetamodel", "FunctionType"))); | ||
749 | body.setSymbolicParameters(Arrays.<ExportedParameter>asList( | ||
750 | new ExportedParameter(body, var_This, parameter_This), | ||
751 | new ExportedParameter(body, var_Target, parameter_Target) | ||
752 | )); | ||
753 | // find parent(This, _Par) | ||
754 | new PositivePatternCall(body, Tuples.flatTupleOf(var_This, var__Par), Parent.instance().getInternalQueryRepresentation()); | ||
755 | // find parent(_Child, This) | ||
756 | new PositivePatternCall(body, Tuples.flatTupleOf(var__Child, var_This), Parent.instance().getInternalQueryRepresentation()); | ||
757 | // Target == FunctionType::Intermediate | ||
758 | PVariable var__virtual_0_ = body.getOrCreateVariableByName(".virtual{0}"); | ||
759 | new ConstantValue(body, var__virtual_0_, getEnumLiteral("FamMetamodel", "FunctionType", "Intermediate").getInstance()); | ||
760 | new Equality(body, var_Target, var__virtual_0_); | ||
761 | bodies.add(body); | ||
762 | } | ||
763 | { | ||
764 | PAnnotation annotation = new PAnnotation("QueryBasedFeature"); | ||
765 | addAnnotation(annotation); | ||
766 | } | ||
767 | return bodies; | ||
768 | } | ||
769 | } | ||
770 | } | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Choice.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Choice.java index cc4049c4..fc2f0328 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Choice.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Choice.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getChoice() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getChoice() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/CompositeElement.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/CompositeElement.java index 037b1b3c..b0e38bcf 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/CompositeElement.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/CompositeElement.java | |||
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject; | |||
18 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement#getRegions <em>Regions</em>}</li> | 18 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement#getRegions <em>Regions</em>}</li> |
19 | * </ul> | 19 | * </ul> |
20 | * | 20 | * |
21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getCompositeElement() | 21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getCompositeElement() |
22 | * @model abstract="true" | 22 | * @model abstract="true" |
23 | * @generated | 23 | * @generated |
24 | */ | 24 | */ |
@@ -33,7 +33,7 @@ public interface CompositeElement extends EObject { | |||
33 | * </p> | 33 | * </p> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @return the value of the '<em>Regions</em>' containment reference list. | 35 | * @return the value of the '<em>Regions</em>' containment reference list. |
36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getCompositeElement_Regions() | 36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getCompositeElement_Regions() |
37 | * @model containment="true" | 37 | * @model containment="true" |
38 | * @generated | 38 | * @generated |
39 | */ | 39 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Entry.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Entry.java index da40c481..c8adb603 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Entry.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Entry.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getEntry() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getEntry() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Exit.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Exit.java index 9f8e12d3..b134c14f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Exit.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Exit.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getExit() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getExit() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/FinalState.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/FinalState.java index 33703d36..5ec2a16a 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/FinalState.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/FinalState.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getFinalState() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getFinalState() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Pseudostate.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Pseudostate.java index e6a003f9..670a172a 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Pseudostate.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Pseudostate.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getPseudostate() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getPseudostate() |
13 | * @model abstract="true" | 13 | * @model abstract="true" |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Region.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Region.java index f4c3f114..84081ae8 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Region.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Region.java | |||
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject; | |||
18 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region#getVertices <em>Vertices</em>}</li> | 18 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region#getVertices <em>Vertices</em>}</li> |
19 | * </ul> | 19 | * </ul> |
20 | * | 20 | * |
21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getRegion() | 21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getRegion() |
22 | * @model | 22 | * @model |
23 | * @generated | 23 | * @generated |
24 | */ | 24 | */ |
@@ -33,7 +33,7 @@ public interface Region extends EObject { | |||
33 | * </p> | 33 | * </p> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @return the value of the '<em>Vertices</em>' containment reference list. | 35 | * @return the value of the '<em>Vertices</em>' containment reference list. |
36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getRegion_Vertices() | 36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getRegion_Vertices() |
37 | * @model containment="true" ordered="false" | 37 | * @model containment="true" ordered="false" |
38 | * @generated | 38 | * @generated |
39 | */ | 39 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/RegularState.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/RegularState.java index 7db584e5..4ad05644 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/RegularState.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/RegularState.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getRegularState() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getRegularState() |
13 | * @model abstract="true" | 13 | * @model abstract="true" |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/State.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/State.java index 3c65be40..09667a01 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/State.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/State.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getState() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getState() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Statechart.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Statechart.java index 33a1dd7a..0f8e383d 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Statechart.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Statechart.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getStatechart() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getStatechart() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Synchronization.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Synchronization.java index f1294200..a06bc066 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Synchronization.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Synchronization.java | |||
@@ -9,7 +9,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu; | |||
9 | * <!-- end-user-doc --> | 9 | * <!-- end-user-doc --> |
10 | * | 10 | * |
11 | * | 11 | * |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getSynchronization() | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getSynchronization() |
13 | * @model | 13 | * @model |
14 | * @generated | 14 | * @generated |
15 | */ | 15 | */ |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Transition.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Transition.java index 543cc73b..c90c8d23 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Transition.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Transition.java | |||
@@ -17,7 +17,7 @@ import org.eclipse.emf.ecore.EObject; | |||
17 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getSource <em>Source</em>}</li> | 17 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getSource <em>Source</em>}</li> |
18 | * </ul> | 18 | * </ul> |
19 | * | 19 | * |
20 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getTransition() | 20 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getTransition() |
21 | * @model | 21 | * @model |
22 | * @generated | 22 | * @generated |
23 | */ | 23 | */ |
@@ -33,7 +33,7 @@ public interface Transition extends EObject { | |||
33 | * <!-- end-user-doc --> | 33 | * <!-- end-user-doc --> |
34 | * @return the value of the '<em>Target</em>' reference. | 34 | * @return the value of the '<em>Target</em>' reference. |
35 | * @see #setTarget(Vertex) | 35 | * @see #setTarget(Vertex) |
36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getTransition_Target() | 36 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getTransition_Target() |
37 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getIncomingTransitions | 37 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getIncomingTransitions |
38 | * @model opposite="incomingTransitions" required="true" ordered="false" | 38 | * @model opposite="incomingTransitions" required="true" ordered="false" |
39 | * @generated | 39 | * @generated |
@@ -61,7 +61,7 @@ public interface Transition extends EObject { | |||
61 | * <!-- end-user-doc --> | 61 | * <!-- end-user-doc --> |
62 | * @return the value of the '<em>Source</em>' container reference. | 62 | * @return the value of the '<em>Source</em>' container reference. |
63 | * @see #setSource(Vertex) | 63 | * @see #setSource(Vertex) |
64 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getTransition_Source() | 64 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getTransition_Source() |
65 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getOutgoingTransitions | 65 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getOutgoingTransitions |
66 | * @model opposite="outgoingTransitions" transient="false" ordered="false" | 66 | * @model opposite="outgoingTransitions" transient="false" ordered="false" |
67 | * @generated | 67 | * @generated |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Vertex.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Vertex.java index 6005a550..e4631e42 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Vertex.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/Vertex.java | |||
@@ -19,7 +19,7 @@ import org.eclipse.emf.ecore.EObject; | |||
19 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getOutgoingTransitions <em>Outgoing Transitions</em>}</li> | 19 | * <li>{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex#getOutgoingTransitions <em>Outgoing Transitions</em>}</li> |
20 | * </ul> | 20 | * </ul> |
21 | * | 21 | * |
22 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getVertex() | 22 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getVertex() |
23 | * @model abstract="true" | 23 | * @model abstract="true" |
24 | * @generated | 24 | * @generated |
25 | */ | 25 | */ |
@@ -35,7 +35,7 @@ public interface Vertex extends EObject { | |||
35 | * </p> | 35 | * </p> |
36 | * <!-- end-user-doc --> | 36 | * <!-- end-user-doc --> |
37 | * @return the value of the '<em>Incoming Transitions</em>' reference list. | 37 | * @return the value of the '<em>Incoming Transitions</em>' reference list. |
38 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getVertex_IncomingTransitions() | 38 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getVertex_IncomingTransitions() |
39 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getTarget | 39 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getTarget |
40 | * @model opposite="target" ordered="false" | 40 | * @model opposite="target" ordered="false" |
41 | * @generated | 41 | * @generated |
@@ -53,7 +53,7 @@ public interface Vertex extends EObject { | |||
53 | * </p> | 53 | * </p> |
54 | * <!-- end-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * @return the value of the '<em>Outgoing Transitions</em>' containment reference list. | 55 | * @return the value of the '<em>Outgoing Transitions</em>' containment reference list. |
56 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#getVertex_OutgoingTransitions() | 56 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#getVertex_OutgoingTransitions() |
57 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getSource | 57 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition#getSource |
58 | * @model opposite="source" containment="true" ordered="false" | 58 | * @model opposite="source" containment="true" ordered="false" |
59 | * @generated | 59 | * @generated |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/yakinduFactory.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/YakinduFactory.java index 6d437ecb..53afae22 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/yakinduFactory.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/YakinduFactory.java | |||
@@ -9,17 +9,17 @@ import org.eclipse.emf.ecore.EFactory; | |||
9 | * The <b>Factory</b> for the model. | 9 | * The <b>Factory</b> for the model. |
10 | * It provides a create method for each non-abstract class of the model. | 10 | * It provides a create method for each non-abstract class of the model. |
11 | * <!-- end-user-doc --> | 11 | * <!-- end-user-doc --> |
12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage | 12 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage |
13 | * @generated | 13 | * @generated |
14 | */ | 14 | */ |
15 | public interface yakinduFactory extends EFactory { | 15 | public interface YakinduFactory extends EFactory { |
16 | /** | 16 | /** |
17 | * The singleton instance of the factory. | 17 | * The singleton instance of the factory. |
18 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
19 | * <!-- end-user-doc --> | 19 | * <!-- end-user-doc --> |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | yakinduFactory eINSTANCE = ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduFactoryImpl.init(); | 22 | YakinduFactory eINSTANCE = ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduFactoryImpl.init(); |
23 | 23 | ||
24 | /** | 24 | /** |
25 | * Returns a new object of class '<em>Region</em>'. | 25 | * Returns a new object of class '<em>Region</em>'. |
@@ -109,6 +109,6 @@ public interface yakinduFactory extends EFactory { | |||
109 | * @return the package supported by this factory. | 109 | * @return the package supported by this factory. |
110 | * @generated | 110 | * @generated |
111 | */ | 111 | */ |
112 | yakinduPackage getyakinduPackage(); | 112 | YakinduPackage getYakinduPackage(); |
113 | 113 | ||
114 | } //yakinduFactory | 114 | } //YakinduFactory |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/yakinduPackage.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/YakinduPackage.java index b3b14944..7fbe176c 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/yakinduPackage.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/YakinduPackage.java | |||
@@ -18,11 +18,11 @@ import org.eclipse.emf.ecore.EReference; | |||
18 | * <li>and each data type</li> | 18 | * <li>and each data type</li> |
19 | * </ul> | 19 | * </ul> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduFactory | 21 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduFactory |
22 | * @model kind="package" | 22 | * @model kind="package" |
23 | * @generated | 23 | * @generated |
24 | */ | 24 | */ |
25 | public interface yakinduPackage extends EPackage { | 25 | public interface YakinduPackage extends EPackage { |
26 | /** | 26 | /** |
27 | * The package name. | 27 | * The package name. |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
@@ -53,14 +53,14 @@ public interface yakinduPackage extends EPackage { | |||
53 | * <!-- end-user-doc --> | 53 | * <!-- end-user-doc --> |
54 | * @generated | 54 | * @generated |
55 | */ | 55 | */ |
56 | yakinduPackage eINSTANCE = ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl.init(); | 56 | YakinduPackage eINSTANCE = ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl.init(); |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * The meta object id for the '{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl <em>Vertex</em>}' class. | 59 | * The meta object id for the '{@link ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl <em>Vertex</em>}' class. |
60 | * <!-- begin-user-doc --> | 60 | * <!-- begin-user-doc --> |
61 | * <!-- end-user-doc --> | 61 | * <!-- end-user-doc --> |
62 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl | 62 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl |
63 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getVertex() | 63 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getVertex() |
64 | * @generated | 64 | * @generated |
65 | */ | 65 | */ |
66 | int VERTEX = 1; | 66 | int VERTEX = 1; |
@@ -106,7 +106,7 @@ public interface yakinduPackage extends EPackage { | |||
106 | * <!-- begin-user-doc --> | 106 | * <!-- begin-user-doc --> |
107 | * <!-- end-user-doc --> | 107 | * <!-- end-user-doc --> |
108 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.PseudostateImpl | 108 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.PseudostateImpl |
109 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getPseudostate() | 109 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getPseudostate() |
110 | * @generated | 110 | * @generated |
111 | */ | 111 | */ |
112 | int PSEUDOSTATE = 0; | 112 | int PSEUDOSTATE = 0; |
@@ -152,7 +152,7 @@ public interface yakinduPackage extends EPackage { | |||
152 | * <!-- begin-user-doc --> | 152 | * <!-- begin-user-doc --> |
153 | * <!-- end-user-doc --> | 153 | * <!-- end-user-doc --> |
154 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegionImpl | 154 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegionImpl |
155 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getRegion() | 155 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getRegion() |
156 | * @generated | 156 | * @generated |
157 | */ | 157 | */ |
158 | int REGION = 2; | 158 | int REGION = 2; |
@@ -189,7 +189,7 @@ public interface yakinduPackage extends EPackage { | |||
189 | * <!-- begin-user-doc --> | 189 | * <!-- begin-user-doc --> |
190 | * <!-- end-user-doc --> | 190 | * <!-- end-user-doc --> |
191 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.TransitionImpl | 191 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.TransitionImpl |
192 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getTransition() | 192 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getTransition() |
193 | * @generated | 193 | * @generated |
194 | */ | 194 | */ |
195 | int TRANSITION = 3; | 195 | int TRANSITION = 3; |
@@ -235,7 +235,7 @@ public interface yakinduPackage extends EPackage { | |||
235 | * <!-- begin-user-doc --> | 235 | * <!-- begin-user-doc --> |
236 | * <!-- end-user-doc --> | 236 | * <!-- end-user-doc --> |
237 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.CompositeElementImpl | 237 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.CompositeElementImpl |
238 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getCompositeElement() | 238 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getCompositeElement() |
239 | * @generated | 239 | * @generated |
240 | */ | 240 | */ |
241 | int COMPOSITE_ELEMENT = 9; | 241 | int COMPOSITE_ELEMENT = 9; |
@@ -272,7 +272,7 @@ public interface yakinduPackage extends EPackage { | |||
272 | * <!-- begin-user-doc --> | 272 | * <!-- begin-user-doc --> |
273 | * <!-- end-user-doc --> | 273 | * <!-- end-user-doc --> |
274 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StatechartImpl | 274 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StatechartImpl |
275 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getStatechart() | 275 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getStatechart() |
276 | * @generated | 276 | * @generated |
277 | */ | 277 | */ |
278 | int STATECHART = 4; | 278 | int STATECHART = 4; |
@@ -309,7 +309,7 @@ public interface yakinduPackage extends EPackage { | |||
309 | * <!-- begin-user-doc --> | 309 | * <!-- begin-user-doc --> |
310 | * <!-- end-user-doc --> | 310 | * <!-- end-user-doc --> |
311 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.EntryImpl | 311 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.EntryImpl |
312 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getEntry() | 312 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getEntry() |
313 | * @generated | 313 | * @generated |
314 | */ | 314 | */ |
315 | int ENTRY = 5; | 315 | int ENTRY = 5; |
@@ -355,7 +355,7 @@ public interface yakinduPackage extends EPackage { | |||
355 | * <!-- begin-user-doc --> | 355 | * <!-- begin-user-doc --> |
356 | * <!-- end-user-doc --> | 356 | * <!-- end-user-doc --> |
357 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.SynchronizationImpl | 357 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.SynchronizationImpl |
358 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getSynchronization() | 358 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getSynchronization() |
359 | * @generated | 359 | * @generated |
360 | */ | 360 | */ |
361 | int SYNCHRONIZATION = 6; | 361 | int SYNCHRONIZATION = 6; |
@@ -401,7 +401,7 @@ public interface yakinduPackage extends EPackage { | |||
401 | * <!-- begin-user-doc --> | 401 | * <!-- begin-user-doc --> |
402 | * <!-- end-user-doc --> | 402 | * <!-- end-user-doc --> |
403 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegularStateImpl | 403 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegularStateImpl |
404 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getRegularState() | 404 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getRegularState() |
405 | * @generated | 405 | * @generated |
406 | */ | 406 | */ |
407 | int REGULAR_STATE = 8; | 407 | int REGULAR_STATE = 8; |
@@ -447,7 +447,7 @@ public interface yakinduPackage extends EPackage { | |||
447 | * <!-- begin-user-doc --> | 447 | * <!-- begin-user-doc --> |
448 | * <!-- end-user-doc --> | 448 | * <!-- end-user-doc --> |
449 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StateImpl | 449 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StateImpl |
450 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getState() | 450 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getState() |
451 | * @generated | 451 | * @generated |
452 | */ | 452 | */ |
453 | int STATE = 7; | 453 | int STATE = 7; |
@@ -502,7 +502,7 @@ public interface yakinduPackage extends EPackage { | |||
502 | * <!-- begin-user-doc --> | 502 | * <!-- begin-user-doc --> |
503 | * <!-- end-user-doc --> | 503 | * <!-- end-user-doc --> |
504 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ChoiceImpl | 504 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ChoiceImpl |
505 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getChoice() | 505 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getChoice() |
506 | * @generated | 506 | * @generated |
507 | */ | 507 | */ |
508 | int CHOICE = 10; | 508 | int CHOICE = 10; |
@@ -548,7 +548,7 @@ public interface yakinduPackage extends EPackage { | |||
548 | * <!-- begin-user-doc --> | 548 | * <!-- begin-user-doc --> |
549 | * <!-- end-user-doc --> | 549 | * <!-- end-user-doc --> |
550 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ExitImpl | 550 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ExitImpl |
551 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getExit() | 551 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getExit() |
552 | * @generated | 552 | * @generated |
553 | */ | 553 | */ |
554 | int EXIT = 11; | 554 | int EXIT = 11; |
@@ -594,7 +594,7 @@ public interface yakinduPackage extends EPackage { | |||
594 | * <!-- begin-user-doc --> | 594 | * <!-- begin-user-doc --> |
595 | * <!-- end-user-doc --> | 595 | * <!-- end-user-doc --> |
596 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.FinalStateImpl | 596 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.FinalStateImpl |
597 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getFinalState() | 597 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getFinalState() |
598 | * @generated | 598 | * @generated |
599 | */ | 599 | */ |
600 | int FINAL_STATE = 12; | 600 | int FINAL_STATE = 12; |
@@ -839,7 +839,7 @@ public interface yakinduPackage extends EPackage { | |||
839 | * @return the factory that creates the instances of the model. | 839 | * @return the factory that creates the instances of the model. |
840 | * @generated | 840 | * @generated |
841 | */ | 841 | */ |
842 | yakinduFactory getyakinduFactory(); | 842 | YakinduFactory getYakinduFactory(); |
843 | 843 | ||
844 | /** | 844 | /** |
845 | * <!-- begin-user-doc --> | 845 | * <!-- begin-user-doc --> |
@@ -860,7 +860,7 @@ public interface yakinduPackage extends EPackage { | |||
860 | * <!-- begin-user-doc --> | 860 | * <!-- begin-user-doc --> |
861 | * <!-- end-user-doc --> | 861 | * <!-- end-user-doc --> |
862 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.PseudostateImpl | 862 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.PseudostateImpl |
863 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getPseudostate() | 863 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getPseudostate() |
864 | * @generated | 864 | * @generated |
865 | */ | 865 | */ |
866 | EClass PSEUDOSTATE = eINSTANCE.getPseudostate(); | 866 | EClass PSEUDOSTATE = eINSTANCE.getPseudostate(); |
@@ -870,7 +870,7 @@ public interface yakinduPackage extends EPackage { | |||
870 | * <!-- begin-user-doc --> | 870 | * <!-- begin-user-doc --> |
871 | * <!-- end-user-doc --> | 871 | * <!-- end-user-doc --> |
872 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl | 872 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.VertexImpl |
873 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getVertex() | 873 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getVertex() |
874 | * @generated | 874 | * @generated |
875 | */ | 875 | */ |
876 | EClass VERTEX = eINSTANCE.getVertex(); | 876 | EClass VERTEX = eINSTANCE.getVertex(); |
@@ -896,7 +896,7 @@ public interface yakinduPackage extends EPackage { | |||
896 | * <!-- begin-user-doc --> | 896 | * <!-- begin-user-doc --> |
897 | * <!-- end-user-doc --> | 897 | * <!-- end-user-doc --> |
898 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegionImpl | 898 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegionImpl |
899 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getRegion() | 899 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getRegion() |
900 | * @generated | 900 | * @generated |
901 | */ | 901 | */ |
902 | EClass REGION = eINSTANCE.getRegion(); | 902 | EClass REGION = eINSTANCE.getRegion(); |
@@ -914,7 +914,7 @@ public interface yakinduPackage extends EPackage { | |||
914 | * <!-- begin-user-doc --> | 914 | * <!-- begin-user-doc --> |
915 | * <!-- end-user-doc --> | 915 | * <!-- end-user-doc --> |
916 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.TransitionImpl | 916 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.TransitionImpl |
917 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getTransition() | 917 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getTransition() |
918 | * @generated | 918 | * @generated |
919 | */ | 919 | */ |
920 | EClass TRANSITION = eINSTANCE.getTransition(); | 920 | EClass TRANSITION = eINSTANCE.getTransition(); |
@@ -940,7 +940,7 @@ public interface yakinduPackage extends EPackage { | |||
940 | * <!-- begin-user-doc --> | 940 | * <!-- begin-user-doc --> |
941 | * <!-- end-user-doc --> | 941 | * <!-- end-user-doc --> |
942 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StatechartImpl | 942 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StatechartImpl |
943 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getStatechart() | 943 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getStatechart() |
944 | * @generated | 944 | * @generated |
945 | */ | 945 | */ |
946 | EClass STATECHART = eINSTANCE.getStatechart(); | 946 | EClass STATECHART = eINSTANCE.getStatechart(); |
@@ -950,7 +950,7 @@ public interface yakinduPackage extends EPackage { | |||
950 | * <!-- begin-user-doc --> | 950 | * <!-- begin-user-doc --> |
951 | * <!-- end-user-doc --> | 951 | * <!-- end-user-doc --> |
952 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.EntryImpl | 952 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.EntryImpl |
953 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getEntry() | 953 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getEntry() |
954 | * @generated | 954 | * @generated |
955 | */ | 955 | */ |
956 | EClass ENTRY = eINSTANCE.getEntry(); | 956 | EClass ENTRY = eINSTANCE.getEntry(); |
@@ -960,7 +960,7 @@ public interface yakinduPackage extends EPackage { | |||
960 | * <!-- begin-user-doc --> | 960 | * <!-- begin-user-doc --> |
961 | * <!-- end-user-doc --> | 961 | * <!-- end-user-doc --> |
962 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.SynchronizationImpl | 962 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.SynchronizationImpl |
963 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getSynchronization() | 963 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getSynchronization() |
964 | * @generated | 964 | * @generated |
965 | */ | 965 | */ |
966 | EClass SYNCHRONIZATION = eINSTANCE.getSynchronization(); | 966 | EClass SYNCHRONIZATION = eINSTANCE.getSynchronization(); |
@@ -970,7 +970,7 @@ public interface yakinduPackage extends EPackage { | |||
970 | * <!-- begin-user-doc --> | 970 | * <!-- begin-user-doc --> |
971 | * <!-- end-user-doc --> | 971 | * <!-- end-user-doc --> |
972 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StateImpl | 972 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.StateImpl |
973 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getState() | 973 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getState() |
974 | * @generated | 974 | * @generated |
975 | */ | 975 | */ |
976 | EClass STATE = eINSTANCE.getState(); | 976 | EClass STATE = eINSTANCE.getState(); |
@@ -980,7 +980,7 @@ public interface yakinduPackage extends EPackage { | |||
980 | * <!-- begin-user-doc --> | 980 | * <!-- begin-user-doc --> |
981 | * <!-- end-user-doc --> | 981 | * <!-- end-user-doc --> |
982 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegularStateImpl | 982 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.RegularStateImpl |
983 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getRegularState() | 983 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getRegularState() |
984 | * @generated | 984 | * @generated |
985 | */ | 985 | */ |
986 | EClass REGULAR_STATE = eINSTANCE.getRegularState(); | 986 | EClass REGULAR_STATE = eINSTANCE.getRegularState(); |
@@ -990,7 +990,7 @@ public interface yakinduPackage extends EPackage { | |||
990 | * <!-- begin-user-doc --> | 990 | * <!-- begin-user-doc --> |
991 | * <!-- end-user-doc --> | 991 | * <!-- end-user-doc --> |
992 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.CompositeElementImpl | 992 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.CompositeElementImpl |
993 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getCompositeElement() | 993 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getCompositeElement() |
994 | * @generated | 994 | * @generated |
995 | */ | 995 | */ |
996 | EClass COMPOSITE_ELEMENT = eINSTANCE.getCompositeElement(); | 996 | EClass COMPOSITE_ELEMENT = eINSTANCE.getCompositeElement(); |
@@ -1008,7 +1008,7 @@ public interface yakinduPackage extends EPackage { | |||
1008 | * <!-- begin-user-doc --> | 1008 | * <!-- begin-user-doc --> |
1009 | * <!-- end-user-doc --> | 1009 | * <!-- end-user-doc --> |
1010 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ChoiceImpl | 1010 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ChoiceImpl |
1011 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getChoice() | 1011 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getChoice() |
1012 | * @generated | 1012 | * @generated |
1013 | */ | 1013 | */ |
1014 | EClass CHOICE = eINSTANCE.getChoice(); | 1014 | EClass CHOICE = eINSTANCE.getChoice(); |
@@ -1018,7 +1018,7 @@ public interface yakinduPackage extends EPackage { | |||
1018 | * <!-- begin-user-doc --> | 1018 | * <!-- begin-user-doc --> |
1019 | * <!-- end-user-doc --> | 1019 | * <!-- end-user-doc --> |
1020 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ExitImpl | 1020 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.ExitImpl |
1021 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getExit() | 1021 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getExit() |
1022 | * @generated | 1022 | * @generated |
1023 | */ | 1023 | */ |
1024 | EClass EXIT = eINSTANCE.getExit(); | 1024 | EClass EXIT = eINSTANCE.getExit(); |
@@ -1028,11 +1028,11 @@ public interface yakinduPackage extends EPackage { | |||
1028 | * <!-- begin-user-doc --> | 1028 | * <!-- begin-user-doc --> |
1029 | * <!-- end-user-doc --> | 1029 | * <!-- end-user-doc --> |
1030 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.FinalStateImpl | 1030 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.FinalStateImpl |
1031 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.yakinduPackageImpl#getFinalState() | 1031 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl.YakinduPackageImpl#getFinalState() |
1032 | * @generated | 1032 | * @generated |
1033 | */ | 1033 | */ |
1034 | EClass FINAL_STATE = eINSTANCE.getFinalState(); | 1034 | EClass FINAL_STATE = eINSTANCE.getFinalState(); |
1035 | 1035 | ||
1036 | } | 1036 | } |
1037 | 1037 | ||
1038 | } //yakinduPackage | 1038 | } //YakinduPackage |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ChoiceImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ChoiceImpl.java index 8fc4883b..b757b42f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ChoiceImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ChoiceImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Choice; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Choice; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class ChoiceImpl extends PseudostateImpl implements Choice { | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.CHOICE; | 34 | return YakinduPackage.Literals.CHOICE; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //ChoiceImpl | 37 | } //ChoiceImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/CompositeElementImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/CompositeElementImpl.java index 0218f9c7..8441ed27 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/CompositeElementImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/CompositeElementImpl.java | |||
@@ -4,7 +4,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | |||
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; |
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
8 | 8 | ||
9 | import java.util.Collection; | 9 | import java.util.Collection; |
10 | 10 | ||
@@ -60,7 +60,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
60 | */ | 60 | */ |
61 | @Override | 61 | @Override |
62 | protected EClass eStaticClass() { | 62 | protected EClass eStaticClass() { |
63 | return yakinduPackage.Literals.COMPOSITE_ELEMENT; | 63 | return YakinduPackage.Literals.COMPOSITE_ELEMENT; |
64 | } | 64 | } |
65 | 65 | ||
66 | /** | 66 | /** |
@@ -70,7 +70,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
70 | */ | 70 | */ |
71 | public EList<Region> getRegions() { | 71 | public EList<Region> getRegions() { |
72 | if (regions == null) { | 72 | if (regions == null) { |
73 | regions = new EObjectContainmentEList<Region>(Region.class, this, yakinduPackage.COMPOSITE_ELEMENT__REGIONS); | 73 | regions = new EObjectContainmentEList<Region>(Region.class, this, YakinduPackage.COMPOSITE_ELEMENT__REGIONS); |
74 | } | 74 | } |
75 | return regions; | 75 | return regions; |
76 | } | 76 | } |
@@ -83,7 +83,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
83 | @Override | 83 | @Override |
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
85 | switch (featureID) { | 85 | switch (featureID) { |
86 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: | 86 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: |
87 | return ((InternalEList<?>)getRegions()).basicRemove(otherEnd, msgs); | 87 | return ((InternalEList<?>)getRegions()).basicRemove(otherEnd, msgs); |
88 | } | 88 | } |
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | 89 | return super.eInverseRemove(otherEnd, featureID, msgs); |
@@ -97,7 +97,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
97 | @Override | 97 | @Override |
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
99 | switch (featureID) { | 99 | switch (featureID) { |
100 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: | 100 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: |
101 | return getRegions(); | 101 | return getRegions(); |
102 | } | 102 | } |
103 | return super.eGet(featureID, resolve, coreType); | 103 | return super.eGet(featureID, resolve, coreType); |
@@ -112,7 +112,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
112 | @Override | 112 | @Override |
113 | public void eSet(int featureID, Object newValue) { | 113 | public void eSet(int featureID, Object newValue) { |
114 | switch (featureID) { | 114 | switch (featureID) { |
115 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: | 115 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: |
116 | getRegions().clear(); | 116 | getRegions().clear(); |
117 | getRegions().addAll((Collection<? extends Region>)newValue); | 117 | getRegions().addAll((Collection<? extends Region>)newValue); |
118 | return; | 118 | return; |
@@ -128,7 +128,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
128 | @Override | 128 | @Override |
129 | public void eUnset(int featureID) { | 129 | public void eUnset(int featureID) { |
130 | switch (featureID) { | 130 | switch (featureID) { |
131 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: | 131 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: |
132 | getRegions().clear(); | 132 | getRegions().clear(); |
133 | return; | 133 | return; |
134 | } | 134 | } |
@@ -143,7 +143,7 @@ public abstract class CompositeElementImpl extends MinimalEObjectImpl.Container | |||
143 | @Override | 143 | @Override |
144 | public boolean eIsSet(int featureID) { | 144 | public boolean eIsSet(int featureID) { |
145 | switch (featureID) { | 145 | switch (featureID) { |
146 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: | 146 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: |
147 | return regions != null && !regions.isEmpty(); | 147 | return regions != null && !regions.isEmpty(); |
148 | } | 148 | } |
149 | return super.eIsSet(featureID); | 149 | return super.eIsSet(featureID); |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/EntryImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/EntryImpl.java index d0334475..0603c2a4 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/EntryImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/EntryImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Entry; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Entry; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class EntryImpl extends PseudostateImpl implements Entry { | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.ENTRY; | 34 | return YakinduPackage.Literals.ENTRY; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //EntryImpl | 37 | } //EntryImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ExitImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ExitImpl.java index d1448776..4859ef03 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ExitImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/ExitImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Exit; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Exit; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class ExitImpl extends PseudostateImpl implements Exit { | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.EXIT; | 34 | return YakinduPackage.Literals.EXIT; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //ExitImpl | 37 | } //ExitImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/FinalStateImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/FinalStateImpl.java index 716c096e..c4d4e157 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/FinalStateImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/FinalStateImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.FinalState; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.FinalState; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class FinalStateImpl extends RegularStateImpl implements FinalState { | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.FINAL_STATE; | 34 | return YakinduPackage.Literals.FINAL_STATE; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //FinalStateImpl | 37 | } //FinalStateImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/PseudostateImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/PseudostateImpl.java index b9fc27f3..56c44b78 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/PseudostateImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/PseudostateImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Pseudostate; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Pseudostate; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public abstract class PseudostateImpl extends VertexImpl implements Pseudostate | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.PSEUDOSTATE; | 34 | return YakinduPackage.Literals.PSEUDOSTATE; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //PseudostateImpl | 37 | } //PseudostateImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegionImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegionImpl.java index fa873aeb..fa529ad6 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegionImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegionImpl.java | |||
@@ -4,7 +4,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | |||
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; |
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
8 | 8 | ||
9 | import java.util.Collection; | 9 | import java.util.Collection; |
10 | 10 | ||
@@ -60,7 +60,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
60 | */ | 60 | */ |
61 | @Override | 61 | @Override |
62 | protected EClass eStaticClass() { | 62 | protected EClass eStaticClass() { |
63 | return yakinduPackage.Literals.REGION; | 63 | return YakinduPackage.Literals.REGION; |
64 | } | 64 | } |
65 | 65 | ||
66 | /** | 66 | /** |
@@ -70,7 +70,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
70 | */ | 70 | */ |
71 | public EList<Vertex> getVertices() { | 71 | public EList<Vertex> getVertices() { |
72 | if (vertices == null) { | 72 | if (vertices == null) { |
73 | vertices = new EObjectContainmentEList<Vertex>(Vertex.class, this, yakinduPackage.REGION__VERTICES); | 73 | vertices = new EObjectContainmentEList<Vertex>(Vertex.class, this, YakinduPackage.REGION__VERTICES); |
74 | } | 74 | } |
75 | return vertices; | 75 | return vertices; |
76 | } | 76 | } |
@@ -83,7 +83,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
83 | @Override | 83 | @Override |
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
85 | switch (featureID) { | 85 | switch (featureID) { |
86 | case yakinduPackage.REGION__VERTICES: | 86 | case YakinduPackage.REGION__VERTICES: |
87 | return ((InternalEList<?>)getVertices()).basicRemove(otherEnd, msgs); | 87 | return ((InternalEList<?>)getVertices()).basicRemove(otherEnd, msgs); |
88 | } | 88 | } |
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | 89 | return super.eInverseRemove(otherEnd, featureID, msgs); |
@@ -97,7 +97,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
97 | @Override | 97 | @Override |
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
99 | switch (featureID) { | 99 | switch (featureID) { |
100 | case yakinduPackage.REGION__VERTICES: | 100 | case YakinduPackage.REGION__VERTICES: |
101 | return getVertices(); | 101 | return getVertices(); |
102 | } | 102 | } |
103 | return super.eGet(featureID, resolve, coreType); | 103 | return super.eGet(featureID, resolve, coreType); |
@@ -112,7 +112,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
112 | @Override | 112 | @Override |
113 | public void eSet(int featureID, Object newValue) { | 113 | public void eSet(int featureID, Object newValue) { |
114 | switch (featureID) { | 114 | switch (featureID) { |
115 | case yakinduPackage.REGION__VERTICES: | 115 | case YakinduPackage.REGION__VERTICES: |
116 | getVertices().clear(); | 116 | getVertices().clear(); |
117 | getVertices().addAll((Collection<? extends Vertex>)newValue); | 117 | getVertices().addAll((Collection<? extends Vertex>)newValue); |
118 | return; | 118 | return; |
@@ -128,7 +128,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
128 | @Override | 128 | @Override |
129 | public void eUnset(int featureID) { | 129 | public void eUnset(int featureID) { |
130 | switch (featureID) { | 130 | switch (featureID) { |
131 | case yakinduPackage.REGION__VERTICES: | 131 | case YakinduPackage.REGION__VERTICES: |
132 | getVertices().clear(); | 132 | getVertices().clear(); |
133 | return; | 133 | return; |
134 | } | 134 | } |
@@ -143,7 +143,7 @@ public class RegionImpl extends MinimalEObjectImpl.Container implements Region { | |||
143 | @Override | 143 | @Override |
144 | public boolean eIsSet(int featureID) { | 144 | public boolean eIsSet(int featureID) { |
145 | switch (featureID) { | 145 | switch (featureID) { |
146 | case yakinduPackage.REGION__VERTICES: | 146 | case YakinduPackage.REGION__VERTICES: |
147 | return vertices != null && !vertices.isEmpty(); | 147 | return vertices != null && !vertices.isEmpty(); |
148 | } | 148 | } |
149 | return super.eIsSet(featureID); | 149 | return super.eIsSet(featureID); |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegularStateImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegularStateImpl.java index bbe21a14..5361d4d5 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegularStateImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/RegularStateImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.RegularState; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.RegularState; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public abstract class RegularStateImpl extends VertexImpl implements RegularStat | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.REGULAR_STATE; | 34 | return YakinduPackage.Literals.REGULAR_STATE; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //RegularStateImpl | 37 | } //RegularStateImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StateImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StateImpl.java index 66ab2a8f..85938d63 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StateImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StateImpl.java | |||
@@ -5,7 +5,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | |||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.CompositeElement; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Region; |
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.State; | 7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.State; |
8 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 8 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
9 | 9 | ||
10 | import java.util.Collection; | 10 | import java.util.Collection; |
11 | 11 | ||
@@ -59,7 +59,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
59 | */ | 59 | */ |
60 | @Override | 60 | @Override |
61 | protected EClass eStaticClass() { | 61 | protected EClass eStaticClass() { |
62 | return yakinduPackage.Literals.STATE; | 62 | return YakinduPackage.Literals.STATE; |
63 | } | 63 | } |
64 | 64 | ||
65 | /** | 65 | /** |
@@ -69,7 +69,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
69 | */ | 69 | */ |
70 | public EList<Region> getRegions() { | 70 | public EList<Region> getRegions() { |
71 | if (regions == null) { | 71 | if (regions == null) { |
72 | regions = new EObjectContainmentEList<Region>(Region.class, this, yakinduPackage.STATE__REGIONS); | 72 | regions = new EObjectContainmentEList<Region>(Region.class, this, YakinduPackage.STATE__REGIONS); |
73 | } | 73 | } |
74 | return regions; | 74 | return regions; |
75 | } | 75 | } |
@@ -82,7 +82,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
82 | @Override | 82 | @Override |
83 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 83 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
84 | switch (featureID) { | 84 | switch (featureID) { |
85 | case yakinduPackage.STATE__REGIONS: | 85 | case YakinduPackage.STATE__REGIONS: |
86 | return ((InternalEList<?>)getRegions()).basicRemove(otherEnd, msgs); | 86 | return ((InternalEList<?>)getRegions()).basicRemove(otherEnd, msgs); |
87 | } | 87 | } |
88 | return super.eInverseRemove(otherEnd, featureID, msgs); | 88 | return super.eInverseRemove(otherEnd, featureID, msgs); |
@@ -96,7 +96,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
96 | @Override | 96 | @Override |
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
98 | switch (featureID) { | 98 | switch (featureID) { |
99 | case yakinduPackage.STATE__REGIONS: | 99 | case YakinduPackage.STATE__REGIONS: |
100 | return getRegions(); | 100 | return getRegions(); |
101 | } | 101 | } |
102 | return super.eGet(featureID, resolve, coreType); | 102 | return super.eGet(featureID, resolve, coreType); |
@@ -111,7 +111,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
111 | @Override | 111 | @Override |
112 | public void eSet(int featureID, Object newValue) { | 112 | public void eSet(int featureID, Object newValue) { |
113 | switch (featureID) { | 113 | switch (featureID) { |
114 | case yakinduPackage.STATE__REGIONS: | 114 | case YakinduPackage.STATE__REGIONS: |
115 | getRegions().clear(); | 115 | getRegions().clear(); |
116 | getRegions().addAll((Collection<? extends Region>)newValue); | 116 | getRegions().addAll((Collection<? extends Region>)newValue); |
117 | return; | 117 | return; |
@@ -127,7 +127,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
127 | @Override | 127 | @Override |
128 | public void eUnset(int featureID) { | 128 | public void eUnset(int featureID) { |
129 | switch (featureID) { | 129 | switch (featureID) { |
130 | case yakinduPackage.STATE__REGIONS: | 130 | case YakinduPackage.STATE__REGIONS: |
131 | getRegions().clear(); | 131 | getRegions().clear(); |
132 | return; | 132 | return; |
133 | } | 133 | } |
@@ -142,7 +142,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
142 | @Override | 142 | @Override |
143 | public boolean eIsSet(int featureID) { | 143 | public boolean eIsSet(int featureID) { |
144 | switch (featureID) { | 144 | switch (featureID) { |
145 | case yakinduPackage.STATE__REGIONS: | 145 | case YakinduPackage.STATE__REGIONS: |
146 | return regions != null && !regions.isEmpty(); | 146 | return regions != null && !regions.isEmpty(); |
147 | } | 147 | } |
148 | return super.eIsSet(featureID); | 148 | return super.eIsSet(featureID); |
@@ -157,7 +157,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
157 | public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { | 157 | public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
158 | if (baseClass == CompositeElement.class) { | 158 | if (baseClass == CompositeElement.class) { |
159 | switch (derivedFeatureID) { | 159 | switch (derivedFeatureID) { |
160 | case yakinduPackage.STATE__REGIONS: return yakinduPackage.COMPOSITE_ELEMENT__REGIONS; | 160 | case YakinduPackage.STATE__REGIONS: return YakinduPackage.COMPOSITE_ELEMENT__REGIONS; |
161 | default: return -1; | 161 | default: return -1; |
162 | } | 162 | } |
163 | } | 163 | } |
@@ -173,7 +173,7 @@ public class StateImpl extends RegularStateImpl implements State { | |||
173 | public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { | 173 | public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { |
174 | if (baseClass == CompositeElement.class) { | 174 | if (baseClass == CompositeElement.class) { |
175 | switch (baseFeatureID) { | 175 | switch (baseFeatureID) { |
176 | case yakinduPackage.COMPOSITE_ELEMENT__REGIONS: return yakinduPackage.STATE__REGIONS; | 176 | case YakinduPackage.COMPOSITE_ELEMENT__REGIONS: return YakinduPackage.STATE__REGIONS; |
177 | default: return -1; | 177 | default: return -1; |
178 | } | 178 | } |
179 | } | 179 | } |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StatechartImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StatechartImpl.java index 056820ca..a74110da 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StatechartImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/StatechartImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Statechart; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Statechart; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class StatechartImpl extends CompositeElementImpl implements Statechart { | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.STATECHART; | 34 | return YakinduPackage.Literals.STATECHART; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //StatechartImpl | 37 | } //StatechartImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/SynchronizationImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/SynchronizationImpl.java index 28ef69ea..3b6cd8eb 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/SynchronizationImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/SynchronizationImpl.java | |||
@@ -3,7 +3,7 @@ | |||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | 3 | package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; |
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Synchronization; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Synchronization; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | 9 | ||
@@ -31,7 +31,7 @@ public class SynchronizationImpl extends PseudostateImpl implements Synchronizat | |||
31 | */ | 31 | */ |
32 | @Override | 32 | @Override |
33 | protected EClass eStaticClass() { | 33 | protected EClass eStaticClass() { |
34 | return yakinduPackage.Literals.SYNCHRONIZATION; | 34 | return YakinduPackage.Literals.SYNCHRONIZATION; |
35 | } | 35 | } |
36 | 36 | ||
37 | } //SynchronizationImpl | 37 | } //SynchronizationImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java index ea1677ee..dfbca048 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java | |||
@@ -4,7 +4,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | |||
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; |
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
8 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
10 | import org.eclipse.emf.common.notify.NotificationChain; | 10 | import org.eclipse.emf.common.notify.NotificationChain; |
@@ -58,7 +58,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
58 | */ | 58 | */ |
59 | @Override | 59 | @Override |
60 | protected EClass eStaticClass() { | 60 | protected EClass eStaticClass() { |
61 | return yakinduPackage.Literals.TRANSITION; | 61 | return YakinduPackage.Literals.TRANSITION; |
62 | } | 62 | } |
63 | 63 | ||
64 | /** | 64 | /** |
@@ -72,7 +72,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
72 | target = (Vertex)eResolveProxy(oldTarget); | 72 | target = (Vertex)eResolveProxy(oldTarget); |
73 | if (target != oldTarget) { | 73 | if (target != oldTarget) { |
74 | if (eNotificationRequired()) | 74 | if (eNotificationRequired()) |
75 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, yakinduPackage.TRANSITION__TARGET, oldTarget, target)); | 75 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, YakinduPackage.TRANSITION__TARGET, oldTarget, target)); |
76 | } | 76 | } |
77 | } | 77 | } |
78 | return target; | 78 | return target; |
@@ -96,7 +96,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
96 | Vertex oldTarget = target; | 96 | Vertex oldTarget = target; |
97 | target = newTarget; | 97 | target = newTarget; |
98 | if (eNotificationRequired()) { | 98 | if (eNotificationRequired()) { |
99 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__TARGET, oldTarget, newTarget); | 99 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__TARGET, oldTarget, newTarget); |
100 | if (msgs == null) msgs = notification; else msgs.add(notification); | 100 | if (msgs == null) msgs = notification; else msgs.add(notification); |
101 | } | 101 | } |
102 | return msgs; | 102 | return msgs; |
@@ -111,14 +111,14 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
111 | if (newTarget != target) { | 111 | if (newTarget != target) { |
112 | NotificationChain msgs = null; | 112 | NotificationChain msgs = null; |
113 | if (target != null) | 113 | if (target != null) |
114 | msgs = ((InternalEObject)target).eInverseRemove(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); | 114 | msgs = ((InternalEObject)target).eInverseRemove(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); |
115 | if (newTarget != null) | 115 | if (newTarget != null) |
116 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); | 116 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); |
117 | msgs = basicSetTarget(newTarget, msgs); | 117 | msgs = basicSetTarget(newTarget, msgs); |
118 | if (msgs != null) msgs.dispatch(); | 118 | if (msgs != null) msgs.dispatch(); |
119 | } | 119 | } |
120 | else if (eNotificationRequired()) | 120 | else if (eNotificationRequired()) |
121 | eNotify(new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__TARGET, newTarget, newTarget)); | 121 | eNotify(new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__TARGET, newTarget, newTarget)); |
122 | } | 122 | } |
123 | 123 | ||
124 | /** | 124 | /** |
@@ -127,7 +127,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
127 | * @generated | 127 | * @generated |
128 | */ | 128 | */ |
129 | public Vertex getSource() { | 129 | public Vertex getSource() { |
130 | if (eContainerFeatureID() != yakinduPackage.TRANSITION__SOURCE) return null; | 130 | if (eContainerFeatureID() != YakinduPackage.TRANSITION__SOURCE) return null; |
131 | return (Vertex)eInternalContainer(); | 131 | return (Vertex)eInternalContainer(); |
132 | } | 132 | } |
133 | 133 | ||
@@ -137,7 +137,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
137 | * @generated | 137 | * @generated |
138 | */ | 138 | */ |
139 | public NotificationChain basicSetSource(Vertex newSource, NotificationChain msgs) { | 139 | public NotificationChain basicSetSource(Vertex newSource, NotificationChain msgs) { |
140 | msgs = eBasicSetContainer((InternalEObject)newSource, yakinduPackage.TRANSITION__SOURCE, msgs); | 140 | msgs = eBasicSetContainer((InternalEObject)newSource, YakinduPackage.TRANSITION__SOURCE, msgs); |
141 | return msgs; | 141 | return msgs; |
142 | } | 142 | } |
143 | 143 | ||
@@ -147,19 +147,19 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
147 | * @generated | 147 | * @generated |
148 | */ | 148 | */ |
149 | public void setSource(Vertex newSource) { | 149 | public void setSource(Vertex newSource) { |
150 | if (newSource != eInternalContainer() || (eContainerFeatureID() != yakinduPackage.TRANSITION__SOURCE && newSource != null)) { | 150 | if (newSource != eInternalContainer() || (eContainerFeatureID() != YakinduPackage.TRANSITION__SOURCE && newSource != null)) { |
151 | if (EcoreUtil.isAncestor(this, newSource)) | 151 | if (EcoreUtil.isAncestor(this, newSource)) |
152 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | 152 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
153 | NotificationChain msgs = null; | 153 | NotificationChain msgs = null; |
154 | if (eInternalContainer() != null) | 154 | if (eInternalContainer() != null) |
155 | msgs = eBasicRemoveFromContainer(msgs); | 155 | msgs = eBasicRemoveFromContainer(msgs); |
156 | if (newSource != null) | 156 | if (newSource != null) |
157 | msgs = ((InternalEObject)newSource).eInverseAdd(this, yakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); | 157 | msgs = ((InternalEObject)newSource).eInverseAdd(this, YakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); |
158 | msgs = basicSetSource(newSource, msgs); | 158 | msgs = basicSetSource(newSource, msgs); |
159 | if (msgs != null) msgs.dispatch(); | 159 | if (msgs != null) msgs.dispatch(); |
160 | } | 160 | } |
161 | else if (eNotificationRequired()) | 161 | else if (eNotificationRequired()) |
162 | eNotify(new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__SOURCE, newSource, newSource)); | 162 | eNotify(new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__SOURCE, newSource, newSource)); |
163 | } | 163 | } |
164 | 164 | ||
165 | /** | 165 | /** |
@@ -170,11 +170,11 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
170 | @Override | 170 | @Override |
171 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 171 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
172 | switch (featureID) { | 172 | switch (featureID) { |
173 | case yakinduPackage.TRANSITION__TARGET: | 173 | case YakinduPackage.TRANSITION__TARGET: |
174 | if (target != null) | 174 | if (target != null) |
175 | msgs = ((InternalEObject)target).eInverseRemove(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); | 175 | msgs = ((InternalEObject)target).eInverseRemove(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); |
176 | return basicSetTarget((Vertex)otherEnd, msgs); | 176 | return basicSetTarget((Vertex)otherEnd, msgs); |
177 | case yakinduPackage.TRANSITION__SOURCE: | 177 | case YakinduPackage.TRANSITION__SOURCE: |
178 | if (eInternalContainer() != null) | 178 | if (eInternalContainer() != null) |
179 | msgs = eBasicRemoveFromContainer(msgs); | 179 | msgs = eBasicRemoveFromContainer(msgs); |
180 | return basicSetSource((Vertex)otherEnd, msgs); | 180 | return basicSetSource((Vertex)otherEnd, msgs); |
@@ -190,9 +190,9 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
190 | @Override | 190 | @Override |
191 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 191 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
192 | switch (featureID) { | 192 | switch (featureID) { |
193 | case yakinduPackage.TRANSITION__TARGET: | 193 | case YakinduPackage.TRANSITION__TARGET: |
194 | return basicSetTarget(null, msgs); | 194 | return basicSetTarget(null, msgs); |
195 | case yakinduPackage.TRANSITION__SOURCE: | 195 | case YakinduPackage.TRANSITION__SOURCE: |
196 | return basicSetSource(null, msgs); | 196 | return basicSetSource(null, msgs); |
197 | } | 197 | } |
198 | return super.eInverseRemove(otherEnd, featureID, msgs); | 198 | return super.eInverseRemove(otherEnd, featureID, msgs); |
@@ -206,8 +206,8 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
206 | @Override | 206 | @Override |
207 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | 207 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { |
208 | switch (eContainerFeatureID()) { | 208 | switch (eContainerFeatureID()) { |
209 | case yakinduPackage.TRANSITION__SOURCE: | 209 | case YakinduPackage.TRANSITION__SOURCE: |
210 | return eInternalContainer().eInverseRemove(this, yakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); | 210 | return eInternalContainer().eInverseRemove(this, YakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); |
211 | } | 211 | } |
212 | return super.eBasicRemoveFromContainerFeature(msgs); | 212 | return super.eBasicRemoveFromContainerFeature(msgs); |
213 | } | 213 | } |
@@ -220,10 +220,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
220 | @Override | 220 | @Override |
221 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 221 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
222 | switch (featureID) { | 222 | switch (featureID) { |
223 | case yakinduPackage.TRANSITION__TARGET: | 223 | case YakinduPackage.TRANSITION__TARGET: |
224 | if (resolve) return getTarget(); | 224 | if (resolve) return getTarget(); |
225 | return basicGetTarget(); | 225 | return basicGetTarget(); |
226 | case yakinduPackage.TRANSITION__SOURCE: | 226 | case YakinduPackage.TRANSITION__SOURCE: |
227 | return getSource(); | 227 | return getSource(); |
228 | } | 228 | } |
229 | return super.eGet(featureID, resolve, coreType); | 229 | return super.eGet(featureID, resolve, coreType); |
@@ -237,10 +237,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
237 | @Override | 237 | @Override |
238 | public void eSet(int featureID, Object newValue) { | 238 | public void eSet(int featureID, Object newValue) { |
239 | switch (featureID) { | 239 | switch (featureID) { |
240 | case yakinduPackage.TRANSITION__TARGET: | 240 | case YakinduPackage.TRANSITION__TARGET: |
241 | setTarget((Vertex)newValue); | 241 | setTarget((Vertex)newValue); |
242 | return; | 242 | return; |
243 | case yakinduPackage.TRANSITION__SOURCE: | 243 | case YakinduPackage.TRANSITION__SOURCE: |
244 | setSource((Vertex)newValue); | 244 | setSource((Vertex)newValue); |
245 | return; | 245 | return; |
246 | } | 246 | } |
@@ -255,10 +255,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
255 | @Override | 255 | @Override |
256 | public void eUnset(int featureID) { | 256 | public void eUnset(int featureID) { |
257 | switch (featureID) { | 257 | switch (featureID) { |
258 | case yakinduPackage.TRANSITION__TARGET: | 258 | case YakinduPackage.TRANSITION__TARGET: |
259 | setTarget((Vertex)null); | 259 | setTarget((Vertex)null); |
260 | return; | 260 | return; |
261 | case yakinduPackage.TRANSITION__SOURCE: | 261 | case YakinduPackage.TRANSITION__SOURCE: |
262 | setSource((Vertex)null); | 262 | setSource((Vertex)null); |
263 | return; | 263 | return; |
264 | } | 264 | } |
@@ -273,9 +273,9 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran | |||
273 | @Override | 273 | @Override |
274 | public boolean eIsSet(int featureID) { | 274 | public boolean eIsSet(int featureID) { |
275 | switch (featureID) { | 275 | switch (featureID) { |
276 | case yakinduPackage.TRANSITION__TARGET: | 276 | case YakinduPackage.TRANSITION__TARGET: |
277 | return target != null; | 277 | return target != null; |
278 | case yakinduPackage.TRANSITION__SOURCE: | 278 | case YakinduPackage.TRANSITION__SOURCE: |
279 | return getSource() != null; | 279 | return getSource() != null; |
280 | } | 280 | } |
281 | return super.eIsSet(featureID); | 281 | return super.eIsSet(featureID); |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/VertexImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/VertexImpl.java index 6f5b9ed3..6384fb51 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/VertexImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/VertexImpl.java | |||
@@ -4,7 +4,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl; | |||
4 | 4 | ||
5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; | 5 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; |
6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; | 6 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; |
7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 7 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
8 | 8 | ||
9 | import java.util.Collection; | 9 | import java.util.Collection; |
10 | 10 | ||
@@ -72,7 +72,7 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
72 | */ | 72 | */ |
73 | @Override | 73 | @Override |
74 | protected EClass eStaticClass() { | 74 | protected EClass eStaticClass() { |
75 | return yakinduPackage.Literals.VERTEX; | 75 | return YakinduPackage.Literals.VERTEX; |
76 | } | 76 | } |
77 | 77 | ||
78 | /** | 78 | /** |
@@ -82,7 +82,7 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
82 | */ | 82 | */ |
83 | public EList<Transition> getIncomingTransitions() { | 83 | public EList<Transition> getIncomingTransitions() { |
84 | if (incomingTransitions == null) { | 84 | if (incomingTransitions == null) { |
85 | incomingTransitions = new EObjectWithInverseResolvingEList<Transition>(Transition.class, this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, yakinduPackage.TRANSITION__TARGET); | 85 | incomingTransitions = new EObjectWithInverseResolvingEList<Transition>(Transition.class, this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, YakinduPackage.TRANSITION__TARGET); |
86 | } | 86 | } |
87 | return incomingTransitions; | 87 | return incomingTransitions; |
88 | } | 88 | } |
@@ -94,7 +94,7 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
94 | */ | 94 | */ |
95 | public EList<Transition> getOutgoingTransitions() { | 95 | public EList<Transition> getOutgoingTransitions() { |
96 | if (outgoingTransitions == null) { | 96 | if (outgoingTransitions == null) { |
97 | outgoingTransitions = new EObjectContainmentWithInverseEList<Transition>(Transition.class, this, yakinduPackage.VERTEX__OUTGOING_TRANSITIONS, yakinduPackage.TRANSITION__SOURCE); | 97 | outgoingTransitions = new EObjectContainmentWithInverseEList<Transition>(Transition.class, this, YakinduPackage.VERTEX__OUTGOING_TRANSITIONS, YakinduPackage.TRANSITION__SOURCE); |
98 | } | 98 | } |
99 | return outgoingTransitions; | 99 | return outgoingTransitions; |
100 | } | 100 | } |
@@ -108,9 +108,9 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
108 | @Override | 108 | @Override |
109 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 109 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
110 | switch (featureID) { | 110 | switch (featureID) { |
111 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 111 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
112 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomingTransitions()).basicAdd(otherEnd, msgs); | 112 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomingTransitions()).basicAdd(otherEnd, msgs); |
113 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 113 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
114 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutgoingTransitions()).basicAdd(otherEnd, msgs); | 114 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutgoingTransitions()).basicAdd(otherEnd, msgs); |
115 | } | 115 | } |
116 | return super.eInverseAdd(otherEnd, featureID, msgs); | 116 | return super.eInverseAdd(otherEnd, featureID, msgs); |
@@ -124,9 +124,9 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
124 | @Override | 124 | @Override |
125 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 125 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
126 | switch (featureID) { | 126 | switch (featureID) { |
127 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 127 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
128 | return ((InternalEList<?>)getIncomingTransitions()).basicRemove(otherEnd, msgs); | 128 | return ((InternalEList<?>)getIncomingTransitions()).basicRemove(otherEnd, msgs); |
129 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 129 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
130 | return ((InternalEList<?>)getOutgoingTransitions()).basicRemove(otherEnd, msgs); | 130 | return ((InternalEList<?>)getOutgoingTransitions()).basicRemove(otherEnd, msgs); |
131 | } | 131 | } |
132 | return super.eInverseRemove(otherEnd, featureID, msgs); | 132 | return super.eInverseRemove(otherEnd, featureID, msgs); |
@@ -140,9 +140,9 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
140 | @Override | 140 | @Override |
141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
142 | switch (featureID) { | 142 | switch (featureID) { |
143 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 143 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
144 | return getIncomingTransitions(); | 144 | return getIncomingTransitions(); |
145 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 145 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
146 | return getOutgoingTransitions(); | 146 | return getOutgoingTransitions(); |
147 | } | 147 | } |
148 | return super.eGet(featureID, resolve, coreType); | 148 | return super.eGet(featureID, resolve, coreType); |
@@ -157,11 +157,11 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
157 | @Override | 157 | @Override |
158 | public void eSet(int featureID, Object newValue) { | 158 | public void eSet(int featureID, Object newValue) { |
159 | switch (featureID) { | 159 | switch (featureID) { |
160 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 160 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
161 | getIncomingTransitions().clear(); | 161 | getIncomingTransitions().clear(); |
162 | getIncomingTransitions().addAll((Collection<? extends Transition>)newValue); | 162 | getIncomingTransitions().addAll((Collection<? extends Transition>)newValue); |
163 | return; | 163 | return; |
164 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 164 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
165 | getOutgoingTransitions().clear(); | 165 | getOutgoingTransitions().clear(); |
166 | getOutgoingTransitions().addAll((Collection<? extends Transition>)newValue); | 166 | getOutgoingTransitions().addAll((Collection<? extends Transition>)newValue); |
167 | return; | 167 | return; |
@@ -177,10 +177,10 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
177 | @Override | 177 | @Override |
178 | public void eUnset(int featureID) { | 178 | public void eUnset(int featureID) { |
179 | switch (featureID) { | 179 | switch (featureID) { |
180 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 180 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
181 | getIncomingTransitions().clear(); | 181 | getIncomingTransitions().clear(); |
182 | return; | 182 | return; |
183 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 183 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
184 | getOutgoingTransitions().clear(); | 184 | getOutgoingTransitions().clear(); |
185 | return; | 185 | return; |
186 | } | 186 | } |
@@ -195,9 +195,9 @@ public abstract class VertexImpl extends MinimalEObjectImpl.Container implements | |||
195 | @Override | 195 | @Override |
196 | public boolean eIsSet(int featureID) { | 196 | public boolean eIsSet(int featureID) { |
197 | switch (featureID) { | 197 | switch (featureID) { |
198 | case yakinduPackage.VERTEX__INCOMING_TRANSITIONS: | 198 | case YakinduPackage.VERTEX__INCOMING_TRANSITIONS: |
199 | return incomingTransitions != null && !incomingTransitions.isEmpty(); | 199 | return incomingTransitions != null && !incomingTransitions.isEmpty(); |
200 | case yakinduPackage.VERTEX__OUTGOING_TRANSITIONS: | 200 | case YakinduPackage.VERTEX__OUTGOING_TRANSITIONS: |
201 | return outgoingTransitions != null && !outgoingTransitions.isEmpty(); | 201 | return outgoingTransitions != null && !outgoingTransitions.isEmpty(); |
202 | } | 202 | } |
203 | return super.eIsSet(featureID); | 203 | return super.eIsSet(featureID); |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/yakinduFactoryImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/YakinduFactoryImpl.java index 5d004565..bd5ee1bd 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/yakinduFactoryImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/YakinduFactoryImpl.java | |||
@@ -18,24 +18,24 @@ import org.eclipse.emf.ecore.plugin.EcorePlugin; | |||
18 | * <!-- end-user-doc --> | 18 | * <!-- end-user-doc --> |
19 | * @generated | 19 | * @generated |
20 | */ | 20 | */ |
21 | public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { | 21 | public class YakinduFactoryImpl extends EFactoryImpl implements YakinduFactory { |
22 | /** | 22 | /** |
23 | * Creates the default factory implementation. | 23 | * Creates the default factory implementation. |
24 | * <!-- begin-user-doc --> | 24 | * <!-- begin-user-doc --> |
25 | * <!-- end-user-doc --> | 25 | * <!-- end-user-doc --> |
26 | * @generated | 26 | * @generated |
27 | */ | 27 | */ |
28 | public static yakinduFactory init() { | 28 | public static YakinduFactory init() { |
29 | try { | 29 | try { |
30 | yakinduFactory theyakinduFactory = (yakinduFactory)EPackage.Registry.INSTANCE.getEFactory(yakinduPackage.eNS_URI); | 30 | YakinduFactory theYakinduFactory = (YakinduFactory)EPackage.Registry.INSTANCE.getEFactory(YakinduPackage.eNS_URI); |
31 | if (theyakinduFactory != null) { | 31 | if (theYakinduFactory != null) { |
32 | return theyakinduFactory; | 32 | return theYakinduFactory; |
33 | } | 33 | } |
34 | } | 34 | } |
35 | catch (Exception exception) { | 35 | catch (Exception exception) { |
36 | EcorePlugin.INSTANCE.log(exception); | 36 | EcorePlugin.INSTANCE.log(exception); |
37 | } | 37 | } |
38 | return new yakinduFactoryImpl(); | 38 | return new YakinduFactoryImpl(); |
39 | } | 39 | } |
40 | 40 | ||
41 | /** | 41 | /** |
@@ -44,7 +44,7 @@ public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { | |||
44 | * <!-- end-user-doc --> | 44 | * <!-- end-user-doc --> |
45 | * @generated | 45 | * @generated |
46 | */ | 46 | */ |
47 | public yakinduFactoryImpl() { | 47 | public YakinduFactoryImpl() { |
48 | super(); | 48 | super(); |
49 | } | 49 | } |
50 | 50 | ||
@@ -56,15 +56,15 @@ public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { | |||
56 | @Override | 56 | @Override |
57 | public EObject create(EClass eClass) { | 57 | public EObject create(EClass eClass) { |
58 | switch (eClass.getClassifierID()) { | 58 | switch (eClass.getClassifierID()) { |
59 | case yakinduPackage.REGION: return createRegion(); | 59 | case YakinduPackage.REGION: return createRegion(); |
60 | case yakinduPackage.TRANSITION: return createTransition(); | 60 | case YakinduPackage.TRANSITION: return createTransition(); |
61 | case yakinduPackage.STATECHART: return createStatechart(); | 61 | case YakinduPackage.STATECHART: return createStatechart(); |
62 | case yakinduPackage.ENTRY: return createEntry(); | 62 | case YakinduPackage.ENTRY: return createEntry(); |
63 | case yakinduPackage.SYNCHRONIZATION: return createSynchronization(); | 63 | case YakinduPackage.SYNCHRONIZATION: return createSynchronization(); |
64 | case yakinduPackage.STATE: return createState(); | 64 | case YakinduPackage.STATE: return createState(); |
65 | case yakinduPackage.CHOICE: return createChoice(); | 65 | case YakinduPackage.CHOICE: return createChoice(); |
66 | case yakinduPackage.EXIT: return createExit(); | 66 | case YakinduPackage.EXIT: return createExit(); |
67 | case yakinduPackage.FINAL_STATE: return createFinalState(); | 67 | case YakinduPackage.FINAL_STATE: return createFinalState(); |
68 | default: | 68 | default: |
69 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | 69 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
70 | } | 70 | } |
@@ -165,8 +165,8 @@ public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { | |||
165 | * <!-- end-user-doc --> | 165 | * <!-- end-user-doc --> |
166 | * @generated | 166 | * @generated |
167 | */ | 167 | */ |
168 | public yakinduPackage getyakinduPackage() { | 168 | public YakinduPackage getYakinduPackage() { |
169 | return (yakinduPackage)getEPackage(); | 169 | return (YakinduPackage)getEPackage(); |
170 | } | 170 | } |
171 | 171 | ||
172 | /** | 172 | /** |
@@ -176,8 +176,8 @@ public class yakinduFactoryImpl extends EFactoryImpl implements yakinduFactory { | |||
176 | * @generated | 176 | * @generated |
177 | */ | 177 | */ |
178 | @Deprecated | 178 | @Deprecated |
179 | public static yakinduPackage getPackage() { | 179 | public static YakinduPackage getPackage() { |
180 | return yakinduPackage.eINSTANCE; | 180 | return YakinduPackage.eINSTANCE; |
181 | } | 181 | } |
182 | 182 | ||
183 | } //yakinduFactoryImpl | 183 | } //YakinduFactoryImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/yakinduPackageImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/YakinduPackageImpl.java index 2213e07f..0796c5d8 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/yakinduPackageImpl.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/YakinduPackageImpl.java | |||
@@ -15,8 +15,8 @@ import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Statechart; | |||
15 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Synchronization; | 15 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Synchronization; |
16 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; | 16 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; |
17 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; | 17 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; |
18 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduFactory; | 18 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduFactory; |
19 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; | 19 | import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage; |
20 | 20 | ||
21 | import org.eclipse.emf.ecore.EClass; | 21 | import org.eclipse.emf.ecore.EClass; |
22 | import org.eclipse.emf.ecore.EPackage; | 22 | import org.eclipse.emf.ecore.EPackage; |
@@ -30,7 +30,7 @@ import org.eclipse.emf.ecore.impl.EPackageImpl; | |||
30 | * <!-- end-user-doc --> | 30 | * <!-- end-user-doc --> |
31 | * @generated | 31 | * @generated |
32 | */ | 32 | */ |
33 | public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | 33 | public class YakinduPackageImpl extends EPackageImpl implements YakinduPackage { |
34 | /** | 34 | /** |
35 | * <!-- begin-user-doc --> | 35 | * <!-- begin-user-doc --> |
36 | * <!-- end-user-doc --> | 36 | * <!-- end-user-doc --> |
@@ -133,12 +133,12 @@ public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | |||
133 | * <!-- begin-user-doc --> | 133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> | 134 | * <!-- end-user-doc --> |
135 | * @see org.eclipse.emf.ecore.EPackage.Registry | 135 | * @see org.eclipse.emf.ecore.EPackage.Registry |
136 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage#eNS_URI | 136 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage#eNS_URI |
137 | * @see #init() | 137 | * @see #init() |
138 | * @generated | 138 | * @generated |
139 | */ | 139 | */ |
140 | private yakinduPackageImpl() { | 140 | private YakinduPackageImpl() { |
141 | super(eNS_URI, yakinduFactory.eINSTANCE); | 141 | super(eNS_URI, YakinduFactory.eINSTANCE); |
142 | } | 142 | } |
143 | 143 | ||
144 | /** | 144 | /** |
@@ -150,8 +150,8 @@ public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | |||
150 | 150 | ||
151 | /** | 151 | /** |
152 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | 152 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
153 | * | 153 | * |
154 | * <p>This method is used to initialize {@link yakinduPackage#eINSTANCE} when that field is accessed. | 154 | * <p>This method is used to initialize {@link YakinduPackage#eINSTANCE} when that field is accessed. |
155 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | 155 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
156 | * <!-- begin-user-doc --> | 156 | * <!-- begin-user-doc --> |
157 | * <!-- end-user-doc --> | 157 | * <!-- end-user-doc --> |
@@ -160,27 +160,27 @@ public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | |||
160 | * @see #initializePackageContents() | 160 | * @see #initializePackageContents() |
161 | * @generated | 161 | * @generated |
162 | */ | 162 | */ |
163 | public static yakinduPackage init() { | 163 | public static YakinduPackage init() { |
164 | if (isInited) return (yakinduPackage)EPackage.Registry.INSTANCE.getEPackage(yakinduPackage.eNS_URI); | 164 | if (isInited) return (YakinduPackage)EPackage.Registry.INSTANCE.getEPackage(YakinduPackage.eNS_URI); |
165 | 165 | ||
166 | // Obtain or create and register package | 166 | // Obtain or create and register package |
167 | yakinduPackageImpl theyakinduPackage = (yakinduPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof yakinduPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new yakinduPackageImpl()); | 167 | Object registeredYakinduPackage = EPackage.Registry.INSTANCE.get(eNS_URI); |
168 | YakinduPackageImpl theYakinduPackage = registeredYakinduPackage instanceof YakinduPackageImpl ? (YakinduPackageImpl)registeredYakinduPackage : new YakinduPackageImpl(); | ||
168 | 169 | ||
169 | isInited = true; | 170 | isInited = true; |
170 | 171 | ||
171 | // Create package meta-data objects | 172 | // Create package meta-data objects |
172 | theyakinduPackage.createPackageContents(); | 173 | theYakinduPackage.createPackageContents(); |
173 | 174 | ||
174 | // Initialize created meta-data | 175 | // Initialize created meta-data |
175 | theyakinduPackage.initializePackageContents(); | 176 | theYakinduPackage.initializePackageContents(); |
176 | 177 | ||
177 | // Mark meta-data to indicate it can't be changed | 178 | // Mark meta-data to indicate it can't be changed |
178 | theyakinduPackage.freeze(); | 179 | theYakinduPackage.freeze(); |
179 | 180 | ||
180 | |||
181 | // Update the registry and return the package | 181 | // Update the registry and return the package |
182 | EPackage.Registry.INSTANCE.put(yakinduPackage.eNS_URI, theyakinduPackage); | 182 | EPackage.Registry.INSTANCE.put(YakinduPackage.eNS_URI, theYakinduPackage); |
183 | return theyakinduPackage; | 183 | return theYakinduPackage; |
184 | } | 184 | } |
185 | 185 | ||
186 | /** | 186 | /** |
@@ -359,8 +359,8 @@ public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | |||
359 | * <!-- end-user-doc --> | 359 | * <!-- end-user-doc --> |
360 | * @generated | 360 | * @generated |
361 | */ | 361 | */ |
362 | public yakinduFactory getyakinduFactory() { | 362 | public YakinduFactory getYakinduFactory() { |
363 | return (yakinduFactory)getEFactoryInstance(); | 363 | return (YakinduFactory)getEFactoryInstance(); |
364 | } | 364 | } |
365 | 365 | ||
366 | /** | 366 | /** |
@@ -491,4 +491,4 @@ public class yakinduPackageImpl extends EPackageImpl implements yakinduPackage { | |||
491 | createResource(eNS_URI); | 491 | createResource(eNS_URI); |
492 | } | 492 | } |
493 | 493 | ||
494 | } //yakinduPackageImpl | 494 | } //YakinduPackageImpl |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/yakinduAdapterFactory.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/YakinduAdapterFactory.java index b8fafb35..566f01e5 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/yakinduAdapterFactory.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/YakinduAdapterFactory.java | |||
@@ -16,17 +16,17 @@ import org.eclipse.emf.ecore.EObject; | |||
16 | * The <b>Adapter Factory</b> for the model. | 16 | * The <b>Adapter Factory</b> for the model. |
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | 17 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
18 | * <!-- end-user-doc --> | 18 | * <!-- end-user-doc --> |
19 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage | 19 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage |
20 | * @generated | 20 | * @generated |
21 | */ | 21 | */ |
22 | public class yakinduAdapterFactory extends AdapterFactoryImpl { | 22 | public class YakinduAdapterFactory extends AdapterFactoryImpl { |
23 | /** | 23 | /** |
24 | * The cached model package. | 24 | * The cached model package. |
25 | * <!-- begin-user-doc --> | 25 | * <!-- begin-user-doc --> |
26 | * <!-- end-user-doc --> | 26 | * <!-- end-user-doc --> |
27 | * @generated | 27 | * @generated |
28 | */ | 28 | */ |
29 | protected static yakinduPackage modelPackage; | 29 | protected static YakinduPackage modelPackage; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Creates an instance of the adapter factory. | 32 | * Creates an instance of the adapter factory. |
@@ -34,9 +34,9 @@ public class yakinduAdapterFactory extends AdapterFactoryImpl { | |||
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @generated | 35 | * @generated |
36 | */ | 36 | */ |
37 | public yakinduAdapterFactory() { | 37 | public YakinduAdapterFactory() { |
38 | if (modelPackage == null) { | 38 | if (modelPackage == null) { |
39 | modelPackage = yakinduPackage.eINSTANCE; | 39 | modelPackage = YakinduPackage.eINSTANCE; |
40 | } | 40 | } |
41 | } | 41 | } |
42 | 42 | ||
@@ -65,8 +65,8 @@ public class yakinduAdapterFactory extends AdapterFactoryImpl { | |||
65 | * <!-- end-user-doc --> | 65 | * <!-- end-user-doc --> |
66 | * @generated | 66 | * @generated |
67 | */ | 67 | */ |
68 | protected yakinduSwitch<Adapter> modelSwitch = | 68 | protected YakinduSwitch<Adapter> modelSwitch = |
69 | new yakinduSwitch<Adapter>() { | 69 | new YakinduSwitch<Adapter>() { |
70 | @Override | 70 | @Override |
71 | public Adapter casePseudostate(Pseudostate object) { | 71 | public Adapter casePseudostate(Pseudostate object) { |
72 | return createPseudostateAdapter(); | 72 | return createPseudostateAdapter(); |
@@ -333,4 +333,4 @@ public class yakinduAdapterFactory extends AdapterFactoryImpl { | |||
333 | return null; | 333 | return null; |
334 | } | 334 | } |
335 | 335 | ||
336 | } //yakinduAdapterFactory | 336 | } //YakinduAdapterFactory |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/yakinduSwitch.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/YakinduSwitch.java index fbc6f821..fdaff54d 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/yakinduSwitch.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/util/YakinduSwitch.java | |||
@@ -19,17 +19,17 @@ import org.eclipse.emf.ecore.util.Switch; | |||
19 | * until a non-null result is returned, | 19 | * until a non-null result is returned, |
20 | * which is the result of the switch. | 20 | * which is the result of the switch. |
21 | * <!-- end-user-doc --> | 21 | * <!-- end-user-doc --> |
22 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage | 22 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage |
23 | * @generated | 23 | * @generated |
24 | */ | 24 | */ |
25 | public class yakinduSwitch<T> extends Switch<T> { | 25 | public class YakinduSwitch<T> extends Switch<T> { |
26 | /** | 26 | /** |
27 | * The cached model package | 27 | * The cached model package |
28 | * <!-- begin-user-doc --> | 28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> | 29 | * <!-- end-user-doc --> |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | protected static yakinduPackage modelPackage; | 32 | protected static YakinduPackage modelPackage; |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Creates an instance of the switch. | 35 | * Creates an instance of the switch. |
@@ -37,9 +37,9 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
37 | * <!-- end-user-doc --> | 37 | * <!-- end-user-doc --> |
38 | * @generated | 38 | * @generated |
39 | */ | 39 | */ |
40 | public yakinduSwitch() { | 40 | public YakinduSwitch() { |
41 | if (modelPackage == null) { | 41 | if (modelPackage == null) { |
42 | modelPackage = yakinduPackage.eINSTANCE; | 42 | modelPackage = YakinduPackage.eINSTANCE; |
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
@@ -66,39 +66,39 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
66 | @Override | 66 | @Override |
67 | protected T doSwitch(int classifierID, EObject theEObject) { | 67 | protected T doSwitch(int classifierID, EObject theEObject) { |
68 | switch (classifierID) { | 68 | switch (classifierID) { |
69 | case yakinduPackage.PSEUDOSTATE: { | 69 | case YakinduPackage.PSEUDOSTATE: { |
70 | Pseudostate pseudostate = (Pseudostate)theEObject; | 70 | Pseudostate pseudostate = (Pseudostate)theEObject; |
71 | T result = casePseudostate(pseudostate); | 71 | T result = casePseudostate(pseudostate); |
72 | if (result == null) result = caseVertex(pseudostate); | 72 | if (result == null) result = caseVertex(pseudostate); |
73 | if (result == null) result = defaultCase(theEObject); | 73 | if (result == null) result = defaultCase(theEObject); |
74 | return result; | 74 | return result; |
75 | } | 75 | } |
76 | case yakinduPackage.VERTEX: { | 76 | case YakinduPackage.VERTEX: { |
77 | Vertex vertex = (Vertex)theEObject; | 77 | Vertex vertex = (Vertex)theEObject; |
78 | T result = caseVertex(vertex); | 78 | T result = caseVertex(vertex); |
79 | if (result == null) result = defaultCase(theEObject); | 79 | if (result == null) result = defaultCase(theEObject); |
80 | return result; | 80 | return result; |
81 | } | 81 | } |
82 | case yakinduPackage.REGION: { | 82 | case YakinduPackage.REGION: { |
83 | Region region = (Region)theEObject; | 83 | Region region = (Region)theEObject; |
84 | T result = caseRegion(region); | 84 | T result = caseRegion(region); |
85 | if (result == null) result = defaultCase(theEObject); | 85 | if (result == null) result = defaultCase(theEObject); |
86 | return result; | 86 | return result; |
87 | } | 87 | } |
88 | case yakinduPackage.TRANSITION: { | 88 | case YakinduPackage.TRANSITION: { |
89 | Transition transition = (Transition)theEObject; | 89 | Transition transition = (Transition)theEObject; |
90 | T result = caseTransition(transition); | 90 | T result = caseTransition(transition); |
91 | if (result == null) result = defaultCase(theEObject); | 91 | if (result == null) result = defaultCase(theEObject); |
92 | return result; | 92 | return result; |
93 | } | 93 | } |
94 | case yakinduPackage.STATECHART: { | 94 | case YakinduPackage.STATECHART: { |
95 | Statechart statechart = (Statechart)theEObject; | 95 | Statechart statechart = (Statechart)theEObject; |
96 | T result = caseStatechart(statechart); | 96 | T result = caseStatechart(statechart); |
97 | if (result == null) result = caseCompositeElement(statechart); | 97 | if (result == null) result = caseCompositeElement(statechart); |
98 | if (result == null) result = defaultCase(theEObject); | 98 | if (result == null) result = defaultCase(theEObject); |
99 | return result; | 99 | return result; |
100 | } | 100 | } |
101 | case yakinduPackage.ENTRY: { | 101 | case YakinduPackage.ENTRY: { |
102 | Entry entry = (Entry)theEObject; | 102 | Entry entry = (Entry)theEObject; |
103 | T result = caseEntry(entry); | 103 | T result = caseEntry(entry); |
104 | if (result == null) result = casePseudostate(entry); | 104 | if (result == null) result = casePseudostate(entry); |
@@ -106,7 +106,7 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
106 | if (result == null) result = defaultCase(theEObject); | 106 | if (result == null) result = defaultCase(theEObject); |
107 | return result; | 107 | return result; |
108 | } | 108 | } |
109 | case yakinduPackage.SYNCHRONIZATION: { | 109 | case YakinduPackage.SYNCHRONIZATION: { |
110 | Synchronization synchronization = (Synchronization)theEObject; | 110 | Synchronization synchronization = (Synchronization)theEObject; |
111 | T result = caseSynchronization(synchronization); | 111 | T result = caseSynchronization(synchronization); |
112 | if (result == null) result = casePseudostate(synchronization); | 112 | if (result == null) result = casePseudostate(synchronization); |
@@ -114,7 +114,7 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
114 | if (result == null) result = defaultCase(theEObject); | 114 | if (result == null) result = defaultCase(theEObject); |
115 | return result; | 115 | return result; |
116 | } | 116 | } |
117 | case yakinduPackage.STATE: { | 117 | case YakinduPackage.STATE: { |
118 | State state = (State)theEObject; | 118 | State state = (State)theEObject; |
119 | T result = caseState(state); | 119 | T result = caseState(state); |
120 | if (result == null) result = caseRegularState(state); | 120 | if (result == null) result = caseRegularState(state); |
@@ -123,20 +123,20 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
123 | if (result == null) result = defaultCase(theEObject); | 123 | if (result == null) result = defaultCase(theEObject); |
124 | return result; | 124 | return result; |
125 | } | 125 | } |
126 | case yakinduPackage.REGULAR_STATE: { | 126 | case YakinduPackage.REGULAR_STATE: { |
127 | RegularState regularState = (RegularState)theEObject; | 127 | RegularState regularState = (RegularState)theEObject; |
128 | T result = caseRegularState(regularState); | 128 | T result = caseRegularState(regularState); |
129 | if (result == null) result = caseVertex(regularState); | 129 | if (result == null) result = caseVertex(regularState); |
130 | if (result == null) result = defaultCase(theEObject); | 130 | if (result == null) result = defaultCase(theEObject); |
131 | return result; | 131 | return result; |
132 | } | 132 | } |
133 | case yakinduPackage.COMPOSITE_ELEMENT: { | 133 | case YakinduPackage.COMPOSITE_ELEMENT: { |
134 | CompositeElement compositeElement = (CompositeElement)theEObject; | 134 | CompositeElement compositeElement = (CompositeElement)theEObject; |
135 | T result = caseCompositeElement(compositeElement); | 135 | T result = caseCompositeElement(compositeElement); |
136 | if (result == null) result = defaultCase(theEObject); | 136 | if (result == null) result = defaultCase(theEObject); |
137 | return result; | 137 | return result; |
138 | } | 138 | } |
139 | case yakinduPackage.CHOICE: { | 139 | case YakinduPackage.CHOICE: { |
140 | Choice choice = (Choice)theEObject; | 140 | Choice choice = (Choice)theEObject; |
141 | T result = caseChoice(choice); | 141 | T result = caseChoice(choice); |
142 | if (result == null) result = casePseudostate(choice); | 142 | if (result == null) result = casePseudostate(choice); |
@@ -144,7 +144,7 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
144 | if (result == null) result = defaultCase(theEObject); | 144 | if (result == null) result = defaultCase(theEObject); |
145 | return result; | 145 | return result; |
146 | } | 146 | } |
147 | case yakinduPackage.EXIT: { | 147 | case YakinduPackage.EXIT: { |
148 | Exit exit = (Exit)theEObject; | 148 | Exit exit = (Exit)theEObject; |
149 | T result = caseExit(exit); | 149 | T result = caseExit(exit); |
150 | if (result == null) result = casePseudostate(exit); | 150 | if (result == null) result = casePseudostate(exit); |
@@ -152,7 +152,7 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
152 | if (result == null) result = defaultCase(theEObject); | 152 | if (result == null) result = defaultCase(theEObject); |
153 | return result; | 153 | return result; |
154 | } | 154 | } |
155 | case yakinduPackage.FINAL_STATE: { | 155 | case YakinduPackage.FINAL_STATE: { |
156 | FinalState finalState = (FinalState)theEObject; | 156 | FinalState finalState = (FinalState)theEObject; |
157 | T result = caseFinalState(finalState); | 157 | T result = caseFinalState(finalState); |
158 | if (result == null) result = caseRegularState(finalState); | 158 | if (result == null) result = caseRegularState(finalState); |
@@ -375,4 +375,4 @@ public class yakinduSwitch<T> extends Switch<T> { | |||
375 | return null; | 375 | return null; |
376 | } | 376 | } |
377 | 377 | ||
378 | } //yakinduSwitch | 378 | } //YakinduSwitch |