All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.Node.SliWinAck

java.lang.Object
   |
   +----magician.Node.SliWinAck

public class SliWinAck
extends Object
implements Serializable, PerfConstants

Variable Index

 o Ackee
node to be acknowledged
 o Acker
Node from which ack is sent
 o EventMgr
Event manager to report on activities of this module
 o seqNo
sequence number of current packet
 o WINDOW_SIZE

Constructor Index

 o SliWinAck()
contructor

Method Index

 o sendAck(byte[])
interface for user to send ack back to receiving node
 o waitForAck(String, ReliableCommFW)
interface for user to send packet

Variables

 o Ackee
 String Ackee
node to be acknowledged

 o Acker
 transient String Acker
Node from which ack is sent

 o seqNo
 int seqNo
sequence number of current packet

 o WINDOW_SIZE
 static final int WINDOW_SIZE
 o EventMgr
 transient EventManager EventMgr
Event manager to report on activities of this module

Constructors

 o SliWinAck
 public SliWinAck()
contructor

Methods

 o sendAck
 public void sendAck(byte typeId[]) throws IndexOutOfBoundsException
interface for user to send ack back to receiving node

Parameters:
typeId - the type of the Smartpacket
Throws: IndexOutOfBoundsException
if sequence number is out of order
 o waitForAck
 public void waitForAck(String PortName,
                        ReliableCommFW SPObject) throws NoRouteToHostException
interface for user to send packet

Parameters:
PortName - name of the next-hop active node
SPObject - the SmartPacket object being sent

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1