* facilities controlled by the "master" JVM.
*
* <p>Each Fleet which supports this API must include:
- * <ul><li> The ability to dispatch instructions from the master, "on
- * the fly".
+ * <ul><li> The ability to dispatch instructions, words, and tokens
+ * from the master, "on the fly".
* <li> A "debug.in" dock such that any words delivered there
* are sent back to the master.
* </ul>
/** Terminate the process; subclasses may be assured that this will be called exactly once. */
protected abstract void _terminate();
+ /** Terminate the process. */
public final synchronized void terminate() {
if (terminated) return;
terminated = true;
_terminate();
}
+ /** Returns true if the process is terminated */
public final boolean isTerminated() { return terminated; }
+
public synchronized void finalize() { terminate(); }
+ /** return the Fleet that this FleetProcess controls */
public abstract Fleet getFleet();
}