diff options
Diffstat (limited to 'subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java')
-rw-r--r-- | subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java index 1229ec15..559c715a 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/transition/statespace/internal/ActivationStoreImpl.java | |||
@@ -66,7 +66,7 @@ public class ActivationStoreImpl implements ActivationStore { | |||
66 | activation = -1; | 66 | activation = -1; |
67 | } | 67 | } |
68 | 68 | ||
69 | if(hasMoreInActivation) { | 69 | if(!hasMoreInActivation) { |
70 | boolean hasMoreInOtherTransformation = false; | 70 | boolean hasMoreInOtherTransformation = false; |
71 | for (var e : entries) { | 71 | for (var e : entries) { |
72 | if (e != entry && e.getNumberOfVisitedActivations() > 0) { | 72 | if (e != entry && e.getNumberOfVisitedActivations() > 0) { |
@@ -83,7 +83,7 @@ public class ActivationStoreImpl implements ActivationStore { | |||
83 | actionWhenAllActivationVisited.accept(from); | 83 | actionWhenAllActivationVisited.accept(from); |
84 | } | 84 | } |
85 | 85 | ||
86 | return new VisitResult(false, hasMore, transformation, activation); | 86 | return new VisitResult(successfulVisit, hasMore, transformation, activation); |
87 | } | 87 | } |
88 | 88 | ||
89 | @Override | 89 | @Override |
@@ -116,7 +116,7 @@ public class ActivationStoreImpl implements ActivationStore { | |||
116 | var entry = entries.get(transformation); | 116 | var entry = entries.get(transformation); |
117 | int unvisited = entry.getNumberOfUnvisitedActivations(); | 117 | int unvisited = entry.getNumberOfUnvisitedActivations(); |
118 | if (selected < sum2 + unvisited) { | 118 | if (selected < sum2 + unvisited) { |
119 | activation = sum2 + unvisited - selected; | 119 | activation = sum2 + unvisited - selected - 1; |
120 | break; | 120 | break; |
121 | } else { | 121 | } else { |
122 | sum2 += unvisited; | 122 | sum2 += unvisited; |