// Run //////////////////////////////////////////////////////////////////////////////
public FleetProcess run(final Instruction[] instructions) {
- InterpreterProcess ip = new InterpreterProcess(instructions);
+ InterpreterProcess ip = initialize(instructions);
new Thread(ip).start();
return ip;
}
+ public InterpreterProcess initialize(Instruction[] instr) {
+ return new InterpreterProcess(instr);
+ }
+
public class InterpreterProcess extends FleetProcess implements Runnable {
private Instruction[] instructions;
public void flush() { }
}
}
-}
\ No newline at end of file
+}