edu.berkeley.fleet.api
Class FleetProcess

Object
  extended by FleetProcess

public abstract class FleetProcess
extends Object

Represents a running "slave" fleet with debugging facilities controlled by the "master" JVM.

Each Fleet which supports this API must include:


Constructor Summary
FleetProcess()
           
 
Method Summary
 void finalize()
           
abstract  void flush()
          flush all instructions, words, and tokens dispatched so far
abstract  Dock getDebugInputDock()
          the dock used to read back data from the slave
abstract  Fleet getFleet()
          return the Fleet that this FleetProcess controls
 boolean isTerminated()
          Returns true if the process is terminated
abstract  BitVector recvWord()
          returns the next word delivered at the dock specified by getDebugInputDock()
abstract  void sendInstruction(Instruction i)
          dispatch an instruction; may be buffered
abstract  void sendToken(Destination d)
          dispatch a token to a given destination; may be buffered
abstract  void sendWord(Destination d, BitVector word)
          dispatch a word to a given destination; may be buffered
 void terminate()
          Terminate the process.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FleetProcess

public FleetProcess()
Method Detail

sendInstruction

public abstract void sendInstruction(Instruction i)
dispatch an instruction; may be buffered


sendWord

public abstract void sendWord(Destination d,
                              BitVector word)
dispatch a word to a given destination; may be buffered


sendToken

public abstract void sendToken(Destination d)
dispatch a token to a given destination; may be buffered


flush

public abstract void flush()
flush all instructions, words, and tokens dispatched so far


getDebugInputDock

public abstract Dock getDebugInputDock()
the dock used to read back data from the slave


recvWord

public abstract BitVector recvWord()
returns the next word delivered at the dock specified by getDebugInputDock()


terminate

public final void terminate()
Terminate the process.


isTerminated

public final boolean isTerminated()
Returns true if the process is terminated


finalize

public void finalize()
Overrides:
finalize in class Object

getFleet

public abstract Fleet getFleet()
return the Fleet that this FleetProcess controls