49b56a6463acf136a6a9622b0a3d036115ec17fc
[fleet.git] / src / edu / berkeley / fleet / interpreter / InterpreterDestination.java
1 package edu.berkeley.fleet.interpreter;
2 import edu.berkeley.fleet.api.*;
3 import java.util.*;
4
5 abstract class InterpreterDestination extends Destination {
6
7     private static int max_dest = 0;
8
9     int addr;
10
11     private boolean isInstructionDestination;
12
13     public InterpreterDestination(InterpreterDock d, boolean isInstructionDestination) {
14         super(d);
15         this.isInstructionDestination = isInstructionDestination;
16         synchronized(InterpreterDestination.class) {
17             this.addr = max_dest;
18             max_dest++;
19         }
20     }
21
22     /** adds the included datum to the port from the switch fabric side */
23     public abstract void addDataFromFabric(Packet packet);
24     public abstract String toString();
25
26 }