All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iBus.layers.SEQCHK

java.lang.Object
   |
   +----iBus.ProtocolObject
           |
           +----iBus.layers.SEQCHK

public class SEQCHK
extends ProtocolObject

SEQCHK: debugging protocol object to check sequence numbers. Aborts in case a message is received out of sequence.

POSITION IN STACK:

DESIGN:

EVENTS PRODUCED:

EVENTS HANDLED:


Constructor Index

 o SEQCHK()
Creates a protocol object and assigns a name to it.

Method Index

 o dnInit()
Initialize the protocol object after the protocol stack has been created.
 o dnSubscribe(iBusURL)
Called by the object above to subscribe to a channel.
 o dnUnsubscribe(iBusURL)
Called by the object above or by an iBus application to unsubscribe from a certain channel.
 o upHandleEvent(Event)
Called by the protocol object beneath to pass an event up to me.

Constructors

 o SEQCHK
 public SEQCHK()
Creates a protocol object and assigns a name to it.

Methods

 o dnInit
 public synchronized void dnInit()
Initialize the protocol object after the protocol stack has been created. Also checks that the right parameters were given to the protocol object.

Overrides:
dnInit in class ProtocolObject
 o dnSubscribe
 public synchronized void dnSubscribe(iBusURL channel) throws AlreadySubscribed, CommException
Called by the object above to subscribe to a channel. allocates a Hashtable of SEQCHK_SenderInfo objects for that channel. That Hashtable is put into the senders_ Hashtable.

Parameters:
channel - the channel to subscribe to
Throws: AlreadySubscribed
if this stack is already subscribed to the channel
Throws: CommException
in case of a communication error
Overrides:
dnSubscribe in class ProtocolObject
 o dnUnsubscribe
 public synchronized void dnUnsubscribe(iBusURL channel) throws NotSubscribed, CommException
Called by the object above or by an iBus application to unsubscribe from a certain channel. Deallocates the Hashtable in senders_.

Parameters:
channel - the channel to unsubscribe from
Throws: NotSubscribed
if this stack is not subscribed to the channel
Throws: CommException
in case of a communication error
Overrides:
dnUnsubscribe in class ProtocolObject
 o upHandleEvent
 public void upHandleEvent(Event event)
Called by the protocol object beneath to pass an event up to me. Implements SEQCHK-ness of message events. Duplicates are discarded.

Parameters:
event - determines the type of event
Overrides:
upHandleEvent in class ProtocolObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index