updates to get some of the shutdown code to execute via Program
[fleet.git] / src / edu / berkeley / fleet / dataflow / UnPunctuatorNode.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 UnPunctuatorNode extends Node {
7     private final Ship    ship  = dfg.pool.allocateShip("Counter");
8     private final InPort  op    = new DockInPort("op",    ship.getDock("inOp"), 0, new BitVector[] {
9             ship.getDock("inOp").getConstant("PASS_C2_V1"),
10             ship.getDock("inOp").getConstant("DROP_C2_V1") } );
11
12     public  final OutPort out   = new DockOutPort("out",  ship.getDock("out"));
13     public  final InPort  val   = new DockInPort("val",   ship.getDock("in1"));
14     public  final InPort  count = new DockInPort("count", ship.getDock("in2"), 0, new BitVector[] { null, bv(1) });
15
16     public UnPunctuatorNode(DataFlowGraph dfg) { super(dfg); }
17 }