diff options
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules')
-rw-r--r-- | Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules/RefinementRuleProvider.xtend | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules/RefinementRuleProvider.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules/RefinementRuleProvider.xtend index 1d976e14..f7fe97a3 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules/RefinementRuleProvider.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/rules/RefinementRuleProvider.xtend | |||
@@ -114,7 +114,7 @@ class RefinementRuleProvider { | |||
114 | ) | 114 | ) |
115 | statistics.addExecutionTime(System.nanoTime - startTime) | 115 | statistics.addExecutionTime(System.nanoTime - startTime) |
116 | 116 | ||
117 | flushQueryEngine | 117 | flushQueryEngine(scopePropagator) |
118 | 118 | ||
119 | // Scope propagation | 119 | // Scope propagation |
120 | val propagatorStartTime = System.nanoTime | 120 | val propagatorStartTime = System.nanoTime |
@@ -144,7 +144,7 @@ class RefinementRuleProvider { | |||
144 | ) | 144 | ) |
145 | statistics.addExecutionTime(System.nanoTime - startTime) | 145 | statistics.addExecutionTime(System.nanoTime - startTime) |
146 | 146 | ||
147 | flushQueryEngine | 147 | flushQueryEngine(scopePropagator) |
148 | 148 | ||
149 | // Scope propagation | 149 | // Scope propagation |
150 | val propagatorStartTime = System.nanoTime | 150 | val propagatorStartTime = System.nanoTime |
@@ -171,7 +171,7 @@ class RefinementRuleProvider { | |||
171 | ) | 171 | ) |
172 | statistics.addExecutionTime(System.nanoTime - startTime) | 172 | statistics.addExecutionTime(System.nanoTime - startTime) |
173 | 173 | ||
174 | flushQueryEngine | 174 | flushQueryEngine(scopePropagator) |
175 | 175 | ||
176 | // Scope propagation | 176 | // Scope propagation |
177 | val propagatorStartTime = System.nanoTime | 177 | val propagatorStartTime = System.nanoTime |
@@ -404,7 +404,7 @@ class RefinementRuleProvider { | |||
404 | 404 | ||
405 | // Scope propagation | 405 | // Scope propagation |
406 | if (scopePropagator.isPropagationNeededAfterAdditionToRelation(declaration)) { | 406 | if (scopePropagator.isPropagationNeededAfterAdditionToRelation(declaration)) { |
407 | flushQueryEngine | 407 | flushQueryEngine(scopePropagator) |
408 | 408 | ||
409 | val propagatorStartTime = System.nanoTime | 409 | val propagatorStartTime = System.nanoTime |
410 | scopePropagator.propagateAllScopeConstraints() | 410 | scopePropagator.propagateAllScopeConstraints() |
@@ -581,8 +581,8 @@ class RefinementRuleProvider { | |||
581 | inverseInterpretation.relationlinks += inverseLink | 581 | inverseInterpretation.relationlinks += inverseLink |
582 | } | 582 | } |
583 | 583 | ||
584 | protected def flushQueryEngine() { | 584 | protected def flushQueryEngine(ScopePropagator scopePropagator) { |
585 | if (queryEngine.updatePropagationDelayed) { | 585 | if (scopePropagator.queryEngineFlushRequiredBeforePropagation && queryEngine.updatePropagationDelayed) { |
586 | delayMessageDelivery.setBoolean(queryEngine, false) | 586 | delayMessageDelivery.setBoolean(queryEngine, false) |
587 | queryEngine.getQueryBackend(ReteBackendFactory.INSTANCE).flushUpdates | 587 | queryEngine.getQueryBackend(ReteBackendFactory.INSTANCE).flushUpdates |
588 | delayMessageDelivery.setBoolean(queryEngine, true) | 588 | delayMessageDelivery.setBoolean(queryEngine, true) |