updates to get some of the shutdown code to execute via Program
[fleet.git] / src / edu / berkeley / fleet / dataflow / DownCounterNode.java
index fb03f6c..a17daef 100644 (file)
@@ -4,11 +4,13 @@ import edu.berkeley.fleet.loops.*;
 import edu.berkeley.fleet.api.*;
 
 public class DownCounterNode extends Node {
-    public final Ship    ship  = dfg.pool.allocateShip("Counter");
-    public final InPort  start = new DockInPort("in1",  ship.getDock("in1"));
-    public final InPort  incr  = new DockInPort("in2",  ship.getDock("in2"));
-    public final InPort  inOp  = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
-            ship.getDock("inOp").getConstant("COUNT") });
-    public final OutPort out   = new DockOutPort("out", ship.getDock("out"));
+    private final Ship    ship  = dfg.pool.allocateShip("Counter");
+    private final InPort  inOp  = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
+             ship.getDock("inOp").getConstant("COUNT") });
+
+    public  final InPort  start = new DockInPort("start", ship.getDock("in1"));
+    public  final InPort  incr  = new DockInPort("incr",  ship.getDock("in2"));
+    public  final OutPort out   = new DockOutPort("out",  ship.getDock("out"));
+
     public DownCounterNode(DataFlowGraph dfg) { super(dfg); }
 }