net.sf.fmj.media.rtp
Class RTPReceptionStats

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPReceptionStats
All Implemented Interfaces:
ReceptionStats

public class RTPReceptionStats
extends java.lang.Object
implements ReceptionStats

Represents receptions statistics for a given stream

Version:
1-1-alpha3
Author:
Andrew G D Rowley, Christian Vincenot

Constructor Summary
RTPReceptionStats()
           
 
Method Summary
 void addPDUDuplicate()
          Adds a duplicate packet to the count
 void addPDUInvalid()
          Adds an invalid packet to the count
 void addPDULost(int lost)
          Adds a lost packet to the count
 void addPDUMisOrd()
          Adds a misordered packet to the count
 void addPDUProcessed()
          Adds a processed packet to the count
 void addSequenceWrap()
          Adds a sequence number wrap
 int getPDUDuplicate()
          Returns the number of duplicates received.
 int getPDUInvalid()
          Returns the number of invalid packets received.
 int getPDUlost()
          Returns the number of packets lost.
 int getPDUMisOrd()
          Returns the number of packets misordered.
 int getPDUProcessed()
          Returns the number of packets processed.
 int getSequenceWrap()
          Returns he number of times the sequence number has wrapped for this source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPReceptionStats

public RTPReceptionStats()
Method Detail

getPDUlost

public int getPDUlost()
Returns the number of packets lost.

Specified by:
getPDUlost in interface ReceptionStats
Returns:
the number of packets lost

getPDUProcessed

public int getPDUProcessed()
Returns the number of packets processed.

Specified by:
getPDUProcessed in interface ReceptionStats
Returns:
the number of packets processed

getPDUMisOrd

public int getPDUMisOrd()
Returns the number of packets misordered.

Specified by:
getPDUMisOrd in interface ReceptionStats
Returns:
the number of packets misordered

getPDUInvalid

public int getPDUInvalid()
Returns the number of invalid packets received.

Specified by:
getPDUInvalid in interface ReceptionStats
Returns:
the number of invalid packets received

getPDUDuplicate

public int getPDUDuplicate()
Returns the number of duplicates received.

Specified by:
getPDUDuplicate in interface ReceptionStats
Returns:
the number of duplicates received

getSequenceWrap

public int getSequenceWrap()
Returns he number of times the sequence number has wrapped for this source.

Returns:
The number of times the sequence number has wrapped for this source

addPDULost

public void addPDULost(int lost)
Adds a lost packet to the count

Parameters:
lost - number of lost packets to add

addPDUProcessed

public void addPDUProcessed()
Adds a processed packet to the count


addPDUMisOrd

public void addPDUMisOrd()
Adds a misordered packet to the count


addPDUInvalid

public void addPDUInvalid()
Adds an invalid packet to the count


addPDUDuplicate

public void addPDUDuplicate()
Adds a duplicate packet to the count


addSequenceWrap

public void addSequenceWrap()
Adds a sequence number wrap