X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FReduction.java;h=02667820c21f36ef6d4830dfbc0237ec9f462878;hb=bbb16d2522ed587238fd7a69e346d5e5e8f2551a;hp=4ef2013e626d1655133757e1ca172dede2c2a67c;hpb=8cf79c4b9e5a26ef65bd4af600946b45dbf28a8a;p=sbp.git diff --git a/src/edu/berkeley/sbp/Reduction.java b/src/edu/berkeley/sbp/Reduction.java index 4ef2013..0266782 100644 --- a/src/edu/berkeley/sbp/Reduction.java +++ b/src/edu/berkeley/sbp/Reduction.java @@ -9,9 +9,9 @@ final class Reduction implements Comparable { private Pos reduction; private GSS.Phase phase; private Forest forest; - private Node pred; + private StateNode pred; - public Reduction(Node pred, Pos reduction, Forest forest, GSS.Phase target) { + public Reduction(StateNode pred, Pos reduction, Forest forest, GSS.Phase target) { this.reduction = reduction; this.forest = forest; this.phase = target; @@ -41,7 +41,8 @@ final class Reduction implements Comparable { } public void perform() { - Result.newResult(forest, pred, reduction, phase); + if (reduction==null) return; + phase.newNodeFromReduction(forest, reduction, pred); } public GSS.Phase predPhase() { return pred.phase(); } public Pos reduction() { return reduction; }