major refactoring of edu.berkeley.fleet.dataflow
[fleet.git] / src / edu / berkeley / fleet / dataflow / DropNode.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 /**
7  *  Discards all items provided; does not require any ships.
8  */
9 public class DropNode extends Node {
10
11     public  final InPort  in    = new InPort("in") {
12             // FIXME: I'm still not sure if this screws up the protocol somewhere
13             public void recvToken(LoopFactory loopfactory_at_output_dock) { }
14             public void sendWord(LoopFactory loopfactory_at_output_dock) { }
15             public int  reset(CodeBag ctx, int phase, Destination ackDestination) { return 0; }
16             public void build(CodeBag ctx) { }
17         };
18
19     public DropNode(DataFlowGraph dfg) {
20         super(dfg);
21     }
22
23 }
24