aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-reasoning-scope/src/main/java/tools/refinery/store/reasoning/scope/ScopePropagator.java
diff options
context:
space:
mode:
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.java6
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;
13import tools.refinery.store.reasoning.translator.TranslationException; 13import tools.refinery.store.reasoning.translator.TranslationException;
14import tools.refinery.store.reasoning.translator.multiobject.MultiObjectTranslator; 14import tools.refinery.store.reasoning.translator.multiobject.MultiObjectTranslator;
15import tools.refinery.store.representation.Symbol; 15import tools.refinery.store.representation.Symbol;
16import tools.refinery.store.representation.cardinality.CardinalityInterval; 16import tools.refinery.logic.term.cardinalityinterval.CardinalityInterval;
17import tools.refinery.store.representation.cardinality.FiniteUpperCardinality; 17import tools.refinery.logic.term.uppercardinality.FiniteUpperCardinality;
18 18
19import java.util.*; 19import 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;