All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.Node.Acknowledgement

java.lang.Object
   |
   +----magician.Node.KUSmartPacketV2
           |
           +----magician.Node.Acknowledgement

public class Acknowledgement
extends KUSmartPacketV2
This class implements the Acknowledgement Packet that is sent back to the sender for every packet transmitted

See Also:
StopAndWaitAck, AckManager

Variable Index

 o mbox
mailbox descriptor
 o seq
sequence number being acknowledged

Constructor Index

 o Acknowledgement()
constructor

Method Index

 o exec()
confirm packet when at destination
 o reinitialize()
re-initializes the object so that it can be reused
 o sendTo(String)
set recipient
 o sentFrom(String)
set sender
 o setMailboxParams(int, String)
set parameters

Variables

 o mbox
 String mbox
mailbox descriptor

 o seq
 int seq
sequence number being acknowledged

Constructors

 o Acknowledgement
 public Acknowledgement()
constructor

Methods

 o reinitialize
 public void reinitialize()
re-initializes the object so that it can be reused

 o sentFrom
 public void sentFrom(String sender)
set sender

Parameters:
sender - name of sending active node
 o sendTo
 public void sendTo(String receiver)
set recipient

Parameters:
receiver - name of destination active node
 o setMailboxParams
 public void setMailboxParams(int seqNo,
                              String mailbox)
set parameters

Parameters:
seqNo - sequence number being acknowledged
mailbox - mailbox descriptor
 o exec
 public void exec()
confirm packet when at destination

Overrides:
exec in class KUSmartPacketV2

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1