X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Ffleet%2Fapi%2FFleetProcess.java;h=c232405ef6442ffbfdc24ee5def97ad507f24fd5;hb=c23eba7d19b10b7e6d5b7339e51843397eed0372;hp=1db837faab258cc0d090d172eac379bc306ef8ca;hpb=8e40e9abcae9b834620ed3cae2856861a040402a;p=fleet.git diff --git a/src/edu/berkeley/fleet/api/FleetProcess.java b/src/edu/berkeley/fleet/api/FleetProcess.java index 1db837f..c232405 100644 --- a/src/edu/berkeley/fleet/api/FleetProcess.java +++ b/src/edu/berkeley/fleet/api/FleetProcess.java @@ -23,9 +23,21 @@ public abstract class FleetProcess { /** dispatch a word to a given destination; may be buffered */ public abstract void sendWord(Destination d, BitVector word); + /** dispatch a word to a given destination; may be buffered */ + public abstract void sendWord(Destination d, BitVector word, BitVector signal); + + /** convenience method: sends the word to d's data destination */ + public void sendWord(Dock d, BitVector word) { sendWord(d.getDataDestination(), word); } + /** dispatch a token to a given destination; may be buffered */ public abstract void sendToken(Destination d); + /** convenience method: sends a token to d's data destination */ + public void sendToken(Dock d) { sendToken(d.getDataDestination()); } + + /** convenience method: sends a token to d's instruction destination */ + public void sendTorpedo(Dock d) { sendToken(d.getInstructionDestination()); } + /** flush all instructions, words, and tokens dispatched so far */ public abstract void flush();