diff options
Diffstat (limited to 'subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java')
-rw-r--r-- | subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java b/subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java index 25b1966c..94e6bbd7 100644 --- a/subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java +++ b/subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java | |||
@@ -13,8 +13,8 @@ import tools.refinery.store.reasoning.representation.PartialRelation; | |||
13 | import tools.refinery.store.reasoning.translator.TranslationException; | 13 | import tools.refinery.store.reasoning.translator.TranslationException; |
14 | import tools.refinery.store.reasoning.translator.multiobject.MultiObjectTranslator; | 14 | import tools.refinery.store.reasoning.translator.multiobject.MultiObjectTranslator; |
15 | import tools.refinery.store.representation.Symbol; | 15 | import tools.refinery.store.representation.Symbol; |
16 | import tools.refinery.store.representation.cardinality.CardinalityInterval; | 16 | import tools.refinery.logic.term.cardinalityinterval.CardinalityInterval; |
17 | import tools.refinery.store.representation.cardinality.FiniteUpperCardinality; | 17 | import tools.refinery.logic.term.uppercardinality.FiniteUpperCardinality; |
18 | 18 | ||
19 | import java.util.*; | 19 | import java.util.*; |
20 | 20 | ||
@@ -48,7 +48,7 @@ public class ScopePropagator implements ModelStoreConfiguration { | |||
48 | } | 48 | } |
49 | var newValue = scopes.compute(type, (ignoredKey, oldValue) -> | 49 | var newValue = scopes.compute(type, (ignoredKey, oldValue) -> |
50 | oldValue == null ? interval : oldValue.meet(interval)); | 50 | oldValue == null ? interval : oldValue.meet(interval)); |
51 | if (newValue.isEmpty()) { | 51 | if (newValue.isError()) { |
52 | throw new TranslationException(type, "Unsatisfiable scope for type %s".formatted(type)); | 52 | throw new TranslationException(type, "Unsatisfiable scope for type %s".formatted(type)); |
53 | } | 53 | } |
54 | return this; | 54 | return this; |