updates to get some of the shutdown code to execute via Program
[fleet.git] / src / edu / berkeley / fleet / dataflow / DownCounterNode.java
1 package edu.berkeley.fleet.dataflow;
2 import java.util.*;
3 import edu.berkeley.fleet.loops.*;
4 import edu.berkeley.fleet.api.*;
5
6 public class DownCounterNode extends Node {
7     private final Ship    ship  = dfg.pool.allocateShip("Counter");
8     private final InPort  inOp  = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
9              ship.getDock("inOp").getConstant("COUNT") });
10
11     public  final InPort  start = new DockInPort("start", ship.getDock("in1"));
12     public  final InPort  incr  = new DockInPort("incr",  ship.getDock("in2"));
13     public  final OutPort out   = new DockOutPort("out",  ship.getDock("out"));
14
15     public DownCounterNode(DataFlowGraph dfg) { super(dfg); }
16 }