add FleetProcess.sendWord() that takes a signal
[fleet.git] / src / edu / berkeley / fleet / interpreter / Interpreter.java
index e58eb3d..87b203e 100644 (file)
@@ -171,8 +171,9 @@ public class Interpreter extends FleetTwoFleet {
 
     public class InterpreterProcess extends FleetProcess implements Runnable {
         private Instruction[] instructions;
-        public synchronized void sendWord(Destination d, BitVector word) {
-            InterpreterPath path = (InterpreterPath)debugShip.getDock("in").getPath(d, new BitVector(1));
+        public synchronized void sendWord(Destination d, BitVector word) { sendWord(d, word, null); }
+        public synchronized void sendWord(Destination d, BitVector word, BitVector signal) {
+            InterpreterPath path = (InterpreterPath)debugShip.getDock("in").getPath(d, signal==null?new BitVector(1):signal);
             ((InterpreterDestination)d).
                 addDataFromFabric(new Packet(path, word, false));
         }