public class Interpreter extends FleetTwoFleet implements Parser.FleetWithDynamicShips {
+ /** used to allocate serial numbers; see InterpreterDestination for further detail */
+ int maxAllocatedDestinationSerialNumber = 0;
+
private InterpreterShip debugShip = null;
private BlockingQueue<BitVector> debugStream = new LinkedBlockingQueue<BitVector>();
private HashMap<String,InterpreterShip> ships = new HashMap<String,InterpreterShip>();
// Instruction Encoding /////////////////////////////////////////////////////////////////////////
public BitVector getDestAddr(Path path) {
- long ret = ((InterpreterDestination)path.getDestination()).addr;
+ long ret = ((InterpreterDestination)path.getDestination()).getSerialNumber();
BitVector sig = path.getSignal();
BitVector bv = new BitVector(DISPATCH_PATH.valmaskwidth+1);
bv.set(ret);