udt.receiver
Class PacketHistoryWindow

java.lang.Object
  extended by udt.util.CircularArray<Long>
      extended by udt.receiver.PacketHistoryWindow

public class PacketHistoryWindow
extends CircularArray<Long>

A circular array that records the packet arrival times


Field Summary
 
Fields inherited from class udt.util.CircularArray
circularArray, haveOverflow, max, position
 
Constructor Summary
PacketHistoryWindow(int size)
          create a new PacketHistoryWindow of the given size
 
Method Summary
 long getPacketArrivalSpeed()
          compute the packet arrival speed (see specification section 6.2, page 12)
 
Methods inherited from class udt.util.CircularArray
add, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PacketHistoryWindow

public PacketHistoryWindow(int size)
create a new PacketHistoryWindow of the given size

Parameters:
size -
Method Detail

getPacketArrivalSpeed

public long getPacketArrivalSpeed()
compute the packet arrival speed (see specification section 6.2, page 12)

Returns:
the current value


Copyright © 2013 LittleShoot. All Rights Reserved.