|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the Debugger to receive notifications about a protocol layer. Defines the hooks called by Protocol when significant events occur, e.g. an event has been received. Every ProtocolObserver should have a reference to the protocol it monitors.
Method Summary | |
boolean |
down(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched). |
boolean |
passDown(Event evt)
Called when an event is about to be passed down to the next lower protocol. |
boolean |
passUp(Event evt)
Called when an event is about to be passed up to the next higher protocol. |
void |
setProtocol(Protocol prot)
Called when a ProtocolObserver is attached to a protcol. |
boolean |
up(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched). |
Method Detail |
public void setProtocol(Protocol prot)
public boolean up(Event evt, int num_evts)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the up-queue (including this event).
This number may increase while we're in the callback as the up-handler thread in the
upper protocol layer puts new events into the up queue.
public boolean passUp(Event evt)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !
public boolean down(Event evt, int num_evts)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the down-queue (including this event).
This number may increase while we're in the callback as the down-handler thread in the
upper protocol layer puts new events into the down queue.
public boolean passDown(Event evt)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |