diff options
Diffstat (limited to 'subprojects/language-model/src/main/resources/model')
4 files changed, 38 insertions, 5 deletions
diff --git a/subprojects/language-model/src/main/resources/model/problem.ecore b/subprojects/language-model/src/main/resources/model/problem.ecore index 74229a89..97355516 100644 --- a/subprojects/language-model/src/main/resources/model/problem.ecore +++ b/subprojects/language-model/src/main/resources/model/problem.ecore | |||
@@ -6,6 +6,9 @@ | |||
6 | eType="#//Node" transient="true" containment="true"/> | 6 | eType="#//Node" transient="true" containment="true"/> |
7 | <eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1" | 7 | <eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1" |
8 | eType="#//Statement" containment="true"/> | 8 | eType="#//Statement" containment="true"/> |
9 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="#//ModuleKind"/> | ||
10 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="explicitKind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" | ||
11 | transient="true"/> | ||
9 | </eClassifiers> | 12 | </eClassifiers> |
10 | <eClassifiers xsi:type="ecore:EClass" name="ClassDeclaration" eSuperTypes="#//Statement #//Relation"> | 13 | <eClassifiers xsi:type="ecore:EClass" name="ClassDeclaration" eSuperTypes="#//Statement #//Relation"> |
11 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> | 14 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> |
@@ -109,9 +112,10 @@ | |||
109 | <eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="#//Node"/> | 112 | <eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="#//Node"/> |
110 | </eClassifiers> | 113 | </eClassifiers> |
111 | <eClassifiers xsi:type="ecore:EClass" name="AssertionArgument" abstract="true"/> | 114 | <eClassifiers xsi:type="ecore:EClass" name="AssertionArgument" abstract="true"/> |
112 | <eClassifiers xsi:type="ecore:EClass" name="IndividualDeclaration" eSuperTypes="#//Statement"> | 115 | <eClassifiers xsi:type="ecore:EClass" name="NodeDeclaration" eSuperTypes="#//Statement"> |
113 | <eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1" | 116 | <eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1" |
114 | eType="#//Node" containment="true"/> | 117 | eType="#//Node" containment="true"/> |
118 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="#//NodeKind"/> | ||
115 | </eClassifiers> | 119 | </eClassifiers> |
116 | <eClassifiers xsi:type="ecore:EClass" name="WildcardAssertionArgument" eSuperTypes="#//AssertionArgument"/> | 120 | <eClassifiers xsi:type="ecore:EClass" name="WildcardAssertionArgument" eSuperTypes="#//AssertionArgument"/> |
117 | <eClassifiers xsi:type="ecore:EClass" name="ParametricDefinition" abstract="true" | 121 | <eClassifiers xsi:type="ecore:EClass" name="ParametricDefinition" abstract="true" |
@@ -259,4 +263,17 @@ | |||
259 | <eClassifiers xsi:type="ecore:EClass" name="LogicConstant" eSuperTypes="#//Constant"> | 263 | <eClassifiers xsi:type="ecore:EClass" name="LogicConstant" eSuperTypes="#//Constant"> |
260 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="logicValue" eType="#//LogicValue"/> | 264 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="logicValue" eType="#//LogicValue"/> |
261 | </eClassifiers> | 265 | </eClassifiers> |
266 | <eClassifiers xsi:type="ecore:EEnum" name="ModuleKind"> | ||
267 | <eLiterals name="PROBLEM"/> | ||
268 | <eLiterals name="MODULE" value="1"/> | ||
269 | </eClassifiers> | ||
270 | <eClassifiers xsi:type="ecore:EEnum" name="NodeKind"> | ||
271 | <eLiterals name="NODE"/> | ||
272 | <eLiterals name="ATOM" value="1"/> | ||
273 | <eLiterals name="MULTI" value="2"/> | ||
274 | </eClassifiers> | ||
275 | <eClassifiers xsi:type="ecore:EClass" name="ImportStatement" eSuperTypes="#//Statement"> | ||
276 | <eStructuralFeatures xsi:type="ecore:EReference" name="importedModule" eType="#//Problem"/> | ||
277 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
278 | </eClassifiers> | ||
262 | </ecore:EPackage> | 279 | </ecore:EPackage> |
diff --git a/subprojects/language-model/src/main/resources/model/problem.ecore.license b/subprojects/language-model/src/main/resources/model/problem.ecore.license index e5db6ccd..a73a3364 100644 --- a/subprojects/language-model/src/main/resources/model/problem.ecore.license +++ b/subprojects/language-model/src/main/resources/model/problem.ecore.license | |||
@@ -1,3 +1,3 @@ | |||
1 | SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | 1 | SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/> |
2 | 2 | ||
3 | SPDX-License-Identifier: EPL-2.0 | 3 | SPDX-License-Identifier: EPL-2.0 |
diff --git a/subprojects/language-model/src/main/resources/model/problem.genmodel b/subprojects/language-model/src/main/resources/model/problem.genmodel index b5aa81c4..23458ee5 100644 --- a/subprojects/language-model/src/main/resources/model/problem.genmodel +++ b/subprojects/language-model/src/main/resources/model/problem.genmodel | |||
@@ -64,9 +64,20 @@ | |||
64 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//PrimitiveType/REAL"/> | 64 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//PrimitiveType/REAL"/> |
65 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//PrimitiveType/STRING"/> | 65 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//PrimitiveType/STRING"/> |
66 | </genEnums> | 66 | </genEnums> |
67 | <genEnums typeSafeEnumCompatible="false" ecoreEnum="problem.ecore#//ModuleKind"> | ||
68 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//ModuleKind/PROBLEM"/> | ||
69 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//ModuleKind/MODULE"/> | ||
70 | </genEnums> | ||
71 | <genEnums typeSafeEnumCompatible="false" ecoreEnum="problem.ecore#//NodeKind"> | ||
72 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//NodeKind/NODE"/> | ||
73 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//NodeKind/ATOM"/> | ||
74 | <genEnumLiterals ecoreEnumLiteral="problem.ecore#//NodeKind/MULTI"/> | ||
75 | </genEnums> | ||
67 | <genClasses ecoreClass="problem.ecore#//Problem"> | 76 | <genClasses ecoreClass="problem.ecore#//Problem"> |
68 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/nodes"/> | 77 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/nodes"/> |
69 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/statements"/> | 78 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//Problem/statements"/> |
79 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//Problem/kind"/> | ||
80 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//Problem/explicitKind"/> | ||
70 | </genClasses> | 81 | </genClasses> |
71 | <genClasses ecoreClass="problem.ecore#//ClassDeclaration"> | 82 | <genClasses ecoreClass="problem.ecore#//ClassDeclaration"> |
72 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ClassDeclaration/abstract"/> | 83 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ClassDeclaration/abstract"/> |
@@ -144,8 +155,9 @@ | |||
144 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//NodeAssertionArgument/node"/> | 155 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//NodeAssertionArgument/node"/> |
145 | </genClasses> | 156 | </genClasses> |
146 | <genClasses ecoreClass="problem.ecore#//AssertionArgument"/> | 157 | <genClasses ecoreClass="problem.ecore#//AssertionArgument"/> |
147 | <genClasses ecoreClass="problem.ecore#//IndividualDeclaration"> | 158 | <genClasses ecoreClass="problem.ecore#//NodeDeclaration"> |
148 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//IndividualDeclaration/nodes"/> | 159 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference problem.ecore#//NodeDeclaration/nodes"/> |
160 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//NodeDeclaration/kind"/> | ||
149 | </genClasses> | 161 | </genClasses> |
150 | <genClasses ecoreClass="problem.ecore#//WildcardAssertionArgument"/> | 162 | <genClasses ecoreClass="problem.ecore#//WildcardAssertionArgument"/> |
151 | <genClasses ecoreClass="problem.ecore#//ParametricDefinition"> | 163 | <genClasses ecoreClass="problem.ecore#//ParametricDefinition"> |
@@ -227,5 +239,9 @@ | |||
227 | <genClasses ecoreClass="problem.ecore#//LogicConstant"> | 239 | <genClasses ecoreClass="problem.ecore#//LogicConstant"> |
228 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//LogicConstant/logicValue"/> | 240 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//LogicConstant/logicValue"/> |
229 | </genClasses> | 241 | </genClasses> |
242 | <genClasses ecoreClass="problem.ecore#//ImportStatement"> | ||
243 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference problem.ecore#//ImportStatement/importedModule"/> | ||
244 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute problem.ecore#//ImportStatement/alias"/> | ||
245 | </genClasses> | ||
230 | </genPackages> | 246 | </genPackages> |
231 | </genmodel:GenModel> | 247 | </genmodel:GenModel> |
diff --git a/subprojects/language-model/src/main/resources/model/problem.genmodel.license b/subprojects/language-model/src/main/resources/model/problem.genmodel.license index e5db6ccd..a73a3364 100644 --- a/subprojects/language-model/src/main/resources/model/problem.genmodel.license +++ b/subprojects/language-model/src/main/resources/model/problem.genmodel.license | |||
@@ -1,3 +1,3 @@ | |||
1 | SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | 1 | SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/> |
2 | 2 | ||
3 | SPDX-License-Identifier: EPL-2.0 | 3 | SPDX-License-Identifier: EPL-2.0 |