1 package edu.berkeley.fleet.api;
5 /** represents a <i>running</i> "slave" fleet with a debug connection */
6 public abstract class FleetProcess {
8 private boolean terminated = false;
10 /** dumps an instruction into the fetch unit */
11 public abstract void invokeInstruction(Instruction i);
13 /** reads a word back from the debug port */
14 public abstract long readWord();
16 /** subclasses may be assured that this will be called exactly once */
17 protected abstract void _terminate();
19 public synchronized void terminate() {
20 if (terminated) return;
25 public boolean isTerminated() {
29 public synchronized void finalize() {