]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/chr/plan/CHRSearchPlan.java
(refs #7250) Refactoring CHR implementation
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / chr / plan / CHRSearchPlan.java
similarity index 59%
rename from bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/chr/plan/PrioritizedPlan.java
rename to bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/chr/plan/CHRSearchPlan.java
index f7a072e5d43cdc6dc42bf05827b08f359bff1e6c..f958e459b76956127b0f0224c734c74ede839a9b 100644 (file)
@@ -2,17 +2,18 @@ package org.simantics.scl.compiler.elaboration.chr.plan;
 
 import java.util.List;
 
+import org.simantics.scl.compiler.elaboration.chr.relations.CHRConstraint;
 import org.simantics.scl.compiler.elaboration.expressions.Variable;
 import org.simantics.scl.compiler.internal.codegen.ssa.SSAFunction;
 
-public class PrioritizedPlan {
-    public int priority;
+public class CHRSearchPlan {
+    public CHRConstraint constraint;
     public Variable activeFact;
     public List<PlanOp> ops;
     public SSAFunction implementation;
     
-    public PrioritizedPlan(int priority, Variable activeFact, List<PlanOp> ops) {
-        this.priority = priority;
+    public CHRSearchPlan(CHRConstraint constraint, Variable activeFact, List<PlanOp> ops) {
+        this.constraint = constraint;
         this.activeFact = activeFact;
         this.ops = ops;
     }