udt.receiver
Class PacketHistoryWindow
java.lang.Object
udt.util.CircularArray<Long>
udt.receiver.PacketHistoryWindow
public class PacketHistoryWindow
- extends CircularArray<Long>
A circular array that records the packet arrival times
|
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) |
PacketHistoryWindow
public PacketHistoryWindow(int size)
- create a new PacketHistoryWindow of the given size
- Parameters:
size -
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.