diff options
author | 2017-08-27 18:19:46 +0200 | |
---|---|---|
committer | 2017-08-27 18:19:46 +0200 | |
commit | dc53ff74f00a9a8c30e797bef95f78a75b0ac069 (patch) | |
tree | ee7535d4b0683e12dd48db972bcb38033c24bcb9 /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src | |
parent | Primitive types added to the logic problem only if needed (diff) | |
download | VIATRA-Generator-dc53ff74f00a9a8c30e797bef95f78a75b0ac069.tar.gz VIATRA-Generator-dc53ff74f00a9a8c30e797bef95f78a75b0ac069.tar.zst VIATRA-Generator-dc53ff74f00a9a8c30e797bef95f78a75b0ac069.zip |
outgoing dangling edges from a selected part of a partial model are
removed
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src')
1 files changed, 1 insertions, 1 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend index 8e5e0661..1bda1f49 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretation2logic/InstanceModel2PartialInterpretation.xtend | |||
@@ -87,7 +87,7 @@ class InstanceModel2PartialInterpretation { | |||
87 | } | 87 | } |
88 | } else { | 88 | } else { |
89 | val target = source.eGet(reference) as EObject | 89 | val target = source.eGet(reference) as EObject |
90 | if(target !== null) { | 90 | if(target !== null && object2DefinedElement.containsKey(target)) { |
91 | val targetElement = target.lookup(object2DefinedElement) | 91 | val targetElement = target.lookup(object2DefinedElement) |
92 | translateLink(interpretation,sourceElement,targetElement) | 92 | translateLink(interpretation,sourceElement,targetElement) |
93 | } | 93 | } |