|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
NodeBehavior is the interface you must implement in your code. It defines a single method, act.
Method Summary | |
void |
transmitPacket(InputChannelVector inputChannels,
OutputChannelVector outputChannels)
TransmitPacket is the method you will write for this lab. |
Method Detail |
public void transmitPacket(InputChannelVector inputChannels, OutputChannelVector outputChannels)
InputChannelVector
,
and the other an OutputChannelVector
,
corresponding to the inputs and outputs available to you. Note
that the channels obtained from these vectors (if any) exist, but are
perhaps disabled, full, or empty. You will need to be aware of
these conditions.
TransmitPacket is called repeatedly by a Node
from within a while (true) {}
loop. You
should deal with a single task on each iteration. Failure to
return promptly will result in unpredictable behavior.
inputChannels
- A vector that may contain input channelsoutputChannels
- A vector that may contain output channelsChannelFullException
,
ChannelDisabledException
,
ChannelEmptyException
|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |