int addr;
+ Queue<Packet> packets = new LinkedList<Packet>();
+
+ private boolean isInstructionDestination;
+
public InterpreterDestination(InterpreterDock d, boolean isInstructionDestination) {
super(d);
+ this.isInstructionDestination = isInstructionDestination;
synchronized(InterpreterDestination.class) {
this.addr = max_dest;
max_dest += 2;
/** adds the included datum to the port from the switch fabric side */
public void addDataFromFabric(Packet packet) {
- throw new RuntimeException();
+ packets.add(packet);
}
-
public String toString() {
- return "";
+ return getDock()+(isInstructionDestination ? ":i" : "");
}
}