move Gadgets to MemoryUtils, discard a ton of obsolete junk
[fleet.git] / src / edu / berkeley / fleet / loops / Context.java
index 7db5290..00bd35d 100644 (file)
@@ -62,4 +62,12 @@ public class Context {
             lf.emit(ic);
     }
 
+    public void dispatch(FleetProcess fp) {
+        ArrayList<Instruction> ai;
+        emit(ai = new ArrayList<Instruction>());
+        for(Instruction ins : ai) {
+            fp.sendInstruction(ins);
+        }
+    }
+
 }