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
-
mbox
- mailbox descriptor
-
seq
- sequence number being acknowledged
-
Acknowledgement()
- constructor
-
exec()
- confirm packet when at destination
-
reinitialize()
- re-initializes the object so that it can be reused
-
sendTo(String)
- set recipient
-
sentFrom(String)
- set sender
-
setMailboxParams(int, String)
- set parameters
mbox
String mbox
- mailbox descriptor
seq
int seq
- sequence number being acknowledged
Acknowledgement
public Acknowledgement()
- constructor
reinitialize
public void reinitialize()
- re-initializes the object so that it can be reused
sentFrom
public void sentFrom(String sender)
- set sender
- Parameters:
- sender - name of sending active node
sendTo
public void sendTo(String receiver)
- set recipient
- Parameters:
- receiver - name of destination active node
setMailboxParams
public void setMailboxParams(int seqNo,
String mailbox)
- set parameters
- Parameters:
- seqNo - sequence number being acknowledged
- mailbox - mailbox descriptor
exec
public void exec()
- confirm packet when at destination
- Overrides:
- exec in class KUSmartPacketV2
All Packages Class Hierarchy This Package Previous Next Index