1 package edu.berkeley.fleet.dataflow;
3 import edu.berkeley.fleet.loops.*;
4 import edu.berkeley.fleet.api.*;
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") } );
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) });
16 public UnPunctuatorNode(DataFlowGraph dfg) { super(dfg); }