diff options
author | 2021-01-24 01:49:37 +0100 | |
---|---|---|
committer | 2021-01-24 01:49:37 +0100 | |
commit | 181d6443766d7b2212218b57183dce6af038c199 (patch) | |
tree | 5b19edfeb41bde2b8e4de48ddea679ade8158848 /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner | |
parent | Sorry, I forgot something last commit (diff) | |
download | VIATRA-Generator-181d6443766d7b2212218b57183dce6af038c199.tar.gz VIATRA-Generator-181d6443766d7b2212218b57183dce6af038c199.tar.zst VIATRA-Generator-181d6443766d7b2212218b57183dce6af038c199.zip |
Fix bug for ignored-attributes + better logic problem creation
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner')
3 files changed, 143 insertions, 37 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend index f74c2ab4..1e2bbe6d 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend | |||
@@ -25,6 +25,8 @@ import org.eclipse.emf.ecore.EObject | |||
25 | import org.eclipse.emf.ecore.resource.Resource | 25 | import org.eclipse.emf.ecore.resource.Resource |
26 | 26 | ||
27 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | 27 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* |
28 | import org.eclipse.emf.ecore.EClass | ||
29 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialInterpretation | ||
28 | 30 | ||
29 | class InstanceModel2PartialInterpretation { | 31 | class InstanceModel2PartialInterpretation { |
30 | val extension LogiclanguageFactory factory = LogiclanguageFactory.eINSTANCE | 32 | val extension LogiclanguageFactory factory = LogiclanguageFactory.eINSTANCE |
@@ -123,26 +125,31 @@ class InstanceModel2PartialInterpretation { | |||
123 | // Transforming the attributes | 125 | // Transforming the attributes |
124 | for(attribute : source.eClass.EAllAttributes.filter[attributesUsed.contains(it) && !it.derived]) { | 126 | for(attribute : source.eClass.EAllAttributes.filter[attributesUsed.contains(it) && !it.derived]) { |
125 | val isIgnored = checkIfIgnored(source, attribute, ignoredAttribs) | 127 | val isIgnored = checkIfIgnored(source, attribute, ignoredAttribs) |
126 | if (!isIgnored) { | 128 | val type = ecore2Logic.relationOfAttribute(ecore2LogicTrace, attribute) |
127 | val type = ecore2Logic.relationOfAttribute(ecore2LogicTrace,attribute) | 129 | val interpretation = type.lookup(partialInterpretationTrace.relation2Interpretation) |
128 | val interpretation = type.lookup(partialInterpretationTrace.relation2Interpretation) | 130 | val sourceElement = source.lookup(object2DefinedElement) |
129 | val sourceElement = source.lookup(object2DefinedElement) | 131 | if (attribute.isMany) { |
130 | if(attribute.isMany) { | 132 | val listOfTargets = source.eGet(attribute) as List<? extends EObject> |
131 | val listOfTargets = source.eGet(attribute) as List<? extends EObject> | 133 | for (target : listOfTargets) { |
132 | for(target : listOfTargets) { | 134 | var DefinedElement value = null |
133 | val value = translateValue(target,ecore2LogicTrace,partialInterpretationTrace) | 135 | if (!isIgnored) value = translateValue(target, ecore2LogicTrace, partialInterpretationTrace) |
134 | if(value !== null) { | 136 | else value = createUnknownElement(partialInterpretation, target) |
135 | translateLink(interpretation,sourceElement,value) | 137 | if (value !== null) { |
136 | } | 138 | translateLink(interpretation, sourceElement, value) |
137 | } | 139 | } |
138 | } else { | 140 | } |
139 | val target = source.eGet(attribute) | 141 | } else { |
140 | if(target !== null) { | 142 | val target = source.eGet(attribute) |
141 | val value = translateValue(target,ecore2LogicTrace,partialInterpretationTrace) | 143 | if (target !== null) { |
142 | if(value !== null) { | 144 | if (!isIgnored) { |
143 | translateLink(interpretation,sourceElement,value) | 145 | val value = translateValue(target, ecore2LogicTrace, partialInterpretationTrace) |
146 | if (value !== null) { | ||
147 | translateLink(interpretation, sourceElement, value) | ||
144 | } | 148 | } |
145 | } | 149 | } |
150 | else translateLink(interpretation, sourceElement, createUnknownElement(partialInterpretation, target)) | ||
151 | // else value = null | ||
152 | |||
146 | } | 153 | } |
147 | } | 154 | } |
148 | } | 155 | } |
@@ -190,11 +197,18 @@ class InstanceModel2PartialInterpretation { | |||
190 | ) { | 197 | ) { |
191 | val classInIgnored = ignoredAttribs.get(object.eClass.name) | 198 | val classInIgnored = ignoredAttribs.get(object.eClass.name) |
192 | val mayIgnored = ( | 199 | val mayIgnored = ( |
200 | classInIgnored !== null && classInIgnored.containsKey("*") | ||
201 | || | ||
193 | classInIgnored !== null && classInIgnored.containsKey(attribute.name)) | 202 | classInIgnored !== null && classInIgnored.containsKey(attribute.name)) |
194 | 203 | ||
195 | var isIgnored = false | 204 | var isIgnored = false |
196 | if (mayIgnored) { | 205 | if (mayIgnored) { |
197 | val specificIgnoredValue = classInIgnored.get(attribute.name) | 206 | var String specificIgnoredValue = null |
207 | if (classInIgnored.containsKey("*")) | ||
208 | specificIgnoredValue = classInIgnored.get("*") | ||
209 | else | ||
210 | specificIgnoredValue = classInIgnored.get(attribute.name) | ||
211 | |||
198 | if (specificIgnoredValue.equals("*")) | 212 | if (specificIgnoredValue.equals("*")) |
199 | isIgnored = true | 213 | isIgnored = true |
200 | else { | 214 | else { |
@@ -208,10 +222,10 @@ class InstanceModel2PartialInterpretation { | |||
208 | } | 222 | } |
209 | // DEBUG | 223 | // DEBUG |
210 | if (isIgnored) { | 224 | if (isIgnored) { |
211 | println("IGNORED") | 225 | // println("IGNORED") |
212 | println(object) | 226 | // println(object) |
213 | println(attribute) | 227 | // println(attribute) |
214 | println(object.eGet(attribute)) | 228 | // println(object.eGet(attribute)) |
215 | } | 229 | } |
216 | // END DEBUG | 230 | // END DEBUG |
217 | return isIgnored | 231 | return isIgnored |
@@ -276,4 +290,45 @@ class InstanceModel2PartialInterpretation { | |||
276 | dispatch protected def translateValue(String value, Ecore2Logic_Trace ecore2LogicTrace, Problem2PartialInterpretationTrace partialInterpretationTrace) { | 290 | dispatch protected def translateValue(String value, Ecore2Logic_Trace ecore2LogicTrace, Problem2PartialInterpretationTrace partialInterpretationTrace) { |
277 | value.lookup(partialInterpretationTrace.primitiveValues.stringMap) | 291 | value.lookup(partialInterpretationTrace.primitiveValues.stringMap) |
278 | } | 292 | } |
293 | |||
294 | dispatch protected def createUnknownElement(PartialInterpretation p, Enumerator value) { | ||
295 | throw new UnsupportedOperationException("Currently we do not support ignored Enums") | ||
296 | //TODO Unsure about this | ||
297 | } | ||
298 | |||
299 | dispatch protected def createUnknownElement(PartialInterpretation p, Boolean value) { | ||
300 | val e = createBooleanElement => [valueSet = false] | ||
301 | p.newElements += e | ||
302 | return e | ||
303 | } | ||
304 | |||
305 | dispatch protected def createUnknownElement(PartialInterpretation p, Integer value) { | ||
306 | val e = createIntegerElement => [valueSet = false] | ||
307 | p.newElements += e | ||
308 | return e | ||
309 | } | ||
310 | |||
311 | dispatch protected def createUnknownElement(PartialInterpretation p, Short value) { | ||
312 | val e = createIntegerElement => [valueSet = false] | ||
313 | p.newElements += e | ||
314 | return e | ||
315 | } | ||
316 | |||
317 | dispatch protected def createUnknownElement(PartialInterpretation p, Double value) { | ||
318 | val e = createRealElement => [it.valueSet = false] | ||
319 | p.newElements += e | ||
320 | return e | ||
321 | } | ||
322 | |||
323 | dispatch protected def createUnknownElement(PartialInterpretation p, Float value) { | ||
324 | val e = createRealElement => [valueSet = false] | ||
325 | p.newElements += e | ||
326 | return e | ||
327 | } | ||
328 | |||
329 | dispatch protected def createUnknownElement(PartialInterpretation p, String value) { | ||
330 | val e = createStringElement => [valueSet = false] | ||
331 | p.newElements += e | ||
332 | return e | ||
333 | } | ||
279 | } \ No newline at end of file | 334 | } \ No newline at end of file |
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/PartialInterpretation2Logic.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/PartialInterpretation2Logic.xtend index f15f5787..a2d2f625 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/PartialInterpretation2Logic.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/PartialInterpretation2Logic.xtend | |||
@@ -162,12 +162,22 @@ class PartialInterpretation2Logic { | |||
162 | 162 | ||
163 | def private createLink(RelationLink link, SymbolicDeclaration relationDeclaration) { | 163 | def private createLink(RelationLink link, SymbolicDeclaration relationDeclaration) { |
164 | if(link instanceof BinaryElementRelationLink) { | 164 | if(link instanceof BinaryElementRelationLink) { |
165 | if((link.param1 !== null) && (link.param2 !== null)) { | 165 | if ((link.param1 !== null) && (link.param2 !== null)) { |
166 | return createSymbolicValue=>[ | 166 | if (typeof(PrimitiveElement).isAssignableFrom(link.param2.class) && |
167 | it.symbolicReference=relationDeclaration | 167 | !(link.param2 as PrimitiveElement).valueSet) { |
168 | it.parameterSubstitutions += createValueInLink(link.param1) | 168 | return createSymbolicValue => [ |
169 | it.parameterSubstitutions += createValueInLink(link.param2) | 169 | it.symbolicReference = relationDeclaration |
170 | ] | 170 | it.parameterSubstitutions += createValueInLink(link.param1) |
171 | it.parameterSubstitutions += createUnkownValueInLink(link.param2) | ||
172 | ] | ||
173 | } else { | ||
174 | return createSymbolicValue => [ | ||
175 | it.symbolicReference = relationDeclaration | ||
176 | it.parameterSubstitutions += createValueInLink(link.param1) | ||
177 | it.parameterSubstitutions += createValueInLink(link.param2) | ||
178 | ] | ||
179 | } | ||
180 | |||
171 | } else { | 181 | } else { |
172 | throw new IllegalArgumentException | 182 | throw new IllegalArgumentException |
173 | } | 183 | } |
@@ -189,4 +199,20 @@ class PartialInterpretation2Logic { | |||
189 | def private dispatch createValueInLink(DefinedElement element) { | 199 | def private dispatch createValueInLink(DefinedElement element) { |
190 | return createSymbolicValue => [it.symbolicReference = element] | 200 | return createSymbolicValue => [it.symbolicReference = element] |
191 | } | 201 | } |
202 | |||
203 | def private dispatch createUnkownValueInLink(BooleanElement element) { | ||
204 | Exists[addVar(createBoolTypeReference)] | ||
205 | } | ||
206 | def private dispatch createUnkownValueInLink(IntegerElement element) { | ||
207 | Exists[addVar(createIntTypeReference)] | ||
208 | } | ||
209 | def private dispatch createUnkownValueInLink(RealElement element) { | ||
210 | Exists[addVar(createRealTypeReference)] | ||
211 | } | ||
212 | def private dispatch createUnkownValueInLink(StringElement element) { | ||
213 | throw new UnsupportedOperationException("Currently cannot create an unknown String") | ||
214 | } | ||
215 | def private dispatch createUnkownValueInLink(DefinedElement element) { | ||
216 | Exists[addVar(createComplexTypeReference => [it.referred = element.definedInType.get(0)])] | ||
217 | } | ||
192 | } \ No newline at end of file | 218 | } \ No newline at end of file |
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/PartialInterpretationInitialiser.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/PartialInterpretationInitialiser.xtend index 92db5c18..28fc6e31 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/PartialInterpretationInitialiser.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/PartialInterpretationInitialiser.xtend | |||
@@ -4,10 +4,15 @@ import hu.bme.mit.inf.dslreasoner.logic.model.builder.TracedOutput | |||
4 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.TypeScopes | 4 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.TypeScopes |
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.And | 5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.And |
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.BoolLiteral | 6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.BoolLiteral |
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.BoolTypeReference | ||
8 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.ComplexTypeReference | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement | 9 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement |
10 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Exists | ||
8 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.IntLiteral | 11 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.IntLiteral |
12 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.IntTypeReference | ||
9 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguageFactory | 13 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguageFactory |
10 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RealLiteral | 14 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RealLiteral |
15 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RealTypeReference | ||
11 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDeclaration | 16 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDeclaration |
12 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDefinition | 17 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDefinition |
13 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.StringLiteral | 18 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.StringLiteral |
@@ -31,7 +36,6 @@ import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.par | |||
31 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationFactory | 36 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationFactory |
32 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.RealElement | 37 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.RealElement |
33 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.StringElement | 38 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.StringElement |
34 | import java.math.BigDecimal | ||
35 | import java.util.HashMap | 39 | import java.util.HashMap |
36 | import java.util.Map | 40 | import java.util.Map |
37 | import java.util.SortedSet | 41 | import java.util.SortedSet |
@@ -40,6 +44,7 @@ import org.eclipse.viatra.query.runtime.emf.EMFScope | |||
40 | import org.eclipse.xtend.lib.annotations.Data | 44 | import org.eclipse.xtend.lib.annotations.Data |
41 | 45 | ||
42 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | 46 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* |
47 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeReference | ||
43 | 48 | ||
44 | @Data class Problem2PartialInterpretationTrace { | 49 | @Data class Problem2PartialInterpretationTrace { |
45 | Map<TypeDeclaration, PartialComplexTypeInterpretation> type2Interpretation | 50 | Map<TypeDeclaration, PartialComplexTypeInterpretation> type2Interpretation |
@@ -253,7 +258,7 @@ class PartialInterpretationInitialiser { | |||
253 | throw new UnsupportedOperationException('''Assertion describing partial model of "«r.interpretationOf.name»" contains unsupported constructs''') | 258 | throw new UnsupportedOperationException('''Assertion describing partial model of "«r.interpretationOf.name»" contains unsupported constructs''') |
254 | } | 259 | } |
255 | for(link:links) { | 260 | for(link:links) { |
256 | r.relationlinks += createLink(link,trace) | 261 | r.relationlinks += createLink(interpretation, link,trace) |
257 | } | 262 | } |
258 | } | 263 | } |
259 | 264 | ||
@@ -264,8 +269,8 @@ class PartialInterpretationInitialiser { | |||
264 | 269 | ||
265 | return relation2Interpretation | 270 | return relation2Interpretation |
266 | } | 271 | } |
267 | def private createLink(SymbolicValue v, PrimitiveValueTrace trace) { | 272 | def private createLink(PartialInterpretation interpretation, SymbolicValue v, PrimitiveValueTrace trace) { |
268 | val translatedValues = v.parameterSubstitutions.map[getElement(trace)].toList | 273 | val translatedValues = v.parameterSubstitutions.map[getElement(interpretation, trace)].toList |
269 | if(translatedValues.size == 1) { | 274 | if(translatedValues.size == 1) { |
270 | return createUnaryElementRelationLink => [it.param1 = translatedValues.get(0)] | 275 | return createUnaryElementRelationLink => [it.param1 = translatedValues.get(0)] |
271 | } else if(translatedValues.size == 2) { | 276 | } else if(translatedValues.size == 2) { |
@@ -282,21 +287,27 @@ class PartialInterpretationInitialiser { | |||
282 | } | 287 | } |
283 | } | 288 | } |
284 | 289 | ||
285 | def private dispatch getElement(SymbolicValue element, PrimitiveValueTrace trace) { | 290 | def private dispatch getElement(SymbolicValue element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { |
286 | return element.symbolicReference as DefinedElement | 291 | return element.symbolicReference as DefinedElement |
287 | } | 292 | } |
288 | def private dispatch getElement(BoolLiteral element, PrimitiveValueTrace trace) { | 293 | def private dispatch getElement(BoolLiteral element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { |
289 | element.value.lookup(trace.booleanMap) | 294 | element.value.lookup(trace.booleanMap) |
290 | } | 295 | } |
291 | def private dispatch getElement(IntLiteral element, PrimitiveValueTrace trace) { | 296 | def private dispatch getElement(IntLiteral element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { |
292 | element.value.lookup(trace.integerMap) | 297 | element.value.lookup(trace.integerMap) |
293 | } | 298 | } |
294 | def private dispatch getElement(RealLiteral element, PrimitiveValueTrace trace) { | 299 | def private dispatch getElement(RealLiteral element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { |
295 | element.value.lookup(trace.realMap) | 300 | element.value.lookup(trace.realMap) |
296 | } | 301 | } |
297 | def private dispatch getElement(StringLiteral element, PrimitiveValueTrace trace) { | 302 | def private dispatch getElement(StringLiteral element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { |
298 | element.value.lookup(trace.stringMap) | 303 | element.value.lookup(trace.stringMap) |
299 | } | 304 | } |
305 | def private dispatch getElement(Exists element, PartialInterpretation interpretation, PrimitiveValueTrace trace) { | ||
306 | val type = element.quantifiedVariables.get(0).range | ||
307 | val e = createUnknownValueElement(type) | ||
308 | interpretation.newElements += e | ||
309 | return e | ||
310 | } | ||
300 | 311 | ||
301 | def private initialisePartialTypeInterpretation(TypeDeclaration t, ViatraQueryEngine engine) { | 312 | def private initialisePartialTypeInterpretation(TypeDeclaration t, ViatraQueryEngine engine) { |
302 | val supertypeMatcher = SupertypeStar.Matcher.on(engine) | 313 | val supertypeMatcher = SupertypeStar.Matcher.on(engine) |
@@ -319,4 +330,18 @@ class PartialInterpretationInitialiser { | |||
319 | ] | 330 | ] |
320 | return res | 331 | return res |
321 | } | 332 | } |
333 | |||
334 | def private dispatch createUnknownValueElement(BoolTypeReference element) { | ||
335 | createRealElement => [it.valueSet = false] | ||
336 | } | ||
337 | def private dispatch createUnknownValueElement(IntTypeReference element) { | ||
338 | createRealElement => [it.valueSet = false] | ||
339 | } | ||
340 | def private dispatch createUnknownValueElement(RealTypeReference element) { | ||
341 | createRealElement => [it.valueSet = false] | ||
342 | } | ||
343 | def private dispatch createUnknownValueElement(ComplexTypeReference element) { | ||
344 | //TODO Enum handling | ||
345 | } | ||
346 | |||
322 | } \ No newline at end of file | 347 | } \ No newline at end of file |