udt.receiver
Class ReceiverLossListEntry

java.lang.Object
  extended by udt.receiver.ReceiverLossListEntry
All Implemented Interfaces:
Comparable<ReceiverLossListEntry>

public class ReceiverLossListEntry
extends Object
implements Comparable<ReceiverLossListEntry>

an entry in the ReceiverLossList


Constructor Summary
ReceiverLossListEntry(long sequenceNumber)
          constructor
 
Method Summary
 int compareTo(ReceiverLossListEntry o)
          order by increasing sequence number
 boolean equals(Object obj)
           
 void feedback()
          call once when this seqNo is fed back in NAK
 long getK()
          k is initialised as 2 and increased by 1 each time the number is fed back
 long getLastFeedbackTime()
           
 long getSequenceNumber()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceiverLossListEntry

public ReceiverLossListEntry(long sequenceNumber)
constructor

Parameters:
sequenceNumber -
Method Detail

feedback

public void feedback()
call once when this seqNo is fed back in NAK


getSequenceNumber

public long getSequenceNumber()

getK

public long getK()
k is initialised as 2 and increased by 1 each time the number is fed back

Returns:
k the number of times that this seqNo has been feedback in NAK

getLastFeedbackTime

public long getLastFeedbackTime()

compareTo

public int compareTo(ReceiverLossListEntry o)
order by increasing sequence number

Specified by:
compareTo in interface Comparable<ReceiverLossListEntry>

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.