public class ParticipantStats
extends java.lang.Object
Constructor and Description |
---|
ParticipantStats(java.lang.Long ssrc,
java.lang.Integer seqNum,
java.lang.Integer port)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
calculateCumulativePacketLost()
Calculate the number of packets lost according to the RFC 3550.
|
void |
calculateFractionLost()
Calculate the fraction lost according to the RFC 3550.
|
java.lang.Long |
calculateLsr(java.lang.Long MswNtpTimestamp,
java.lang.Long LswNtpTimestamp)
Calculate the LSR according to the RFC 3550.
|
void |
calculateSeqNumMax(java.lang.Integer sequenceNumber)
Compare the sequence number with the previous maximum calculated.
|
void |
calculateTimeJitter(java.lang.Long time,
java.lang.Long timestamp)
Calculate the time jitter, the sum of time jitter and the sum of square time jitter according to the RFC 3550.
|
java.lang.Integer |
getCumulativePacketLost() |
java.lang.Integer |
getCycle() |
java.lang.Long |
getDlsr() |
boolean |
getFirstReport() |
java.lang.Integer |
getFractionLost() |
java.lang.Integer |
getLastPacketSum() |
java.lang.Long |
getLastTimeJitterSum() |
java.lang.Long |
getLastTimeJitterSumSquare() |
java.lang.Long |
getLsr() |
boolean |
getNewMeasure() |
java.lang.Integer |
getPacketSum() |
java.lang.Integer |
getPort() |
java.lang.Long |
getPreviousTime() |
java.lang.Integer |
getSeqNumMax() |
java.lang.Long |
getSsrc() |
java.lang.Long |
getTimeJitter() |
java.lang.Long |
getTimeJitterSum() |
java.lang.Long |
getTimeJitterSumSquare() |
void |
incPacketSum()
Increment number of packet by 1.
|
void |
newMeasure()
Start a new measure.
|
void |
rtpReceiver()
If the participant doesn't send RTP packet, he becomes a receiver.
|
void |
rtpSender()
If the participant send RTP packet, he becomes a sender.
|
void |
setDlsr(java.lang.Long time) |
void |
setFirstReport() |
void |
setLastSeqNum(java.lang.Integer sequenceNumber) |
void |
setLsr(java.lang.Long lsr) |
void |
setPacketSum(java.lang.Integer packetSum) |
void |
setPreviousSeqNum(java.lang.Integer previousSeqNum) |
void |
setPreviousTime(java.lang.Long previousTime) |
void |
setPreviousTimestamp(java.lang.Long previousTimestamp) |
void |
setSampling(java.lang.Double sampling) |
void |
setSsrc(java.lang.Long ssrc) |
void |
setTimeJitter(java.lang.Long timeJitter) |
void |
setTimeJitterSum(java.lang.Long timeJitterSum) |
void |
setTimeJitterSumSquare(java.lang.Long timeJitterSumSquare) |
public ParticipantStats(java.lang.Long ssrc, java.lang.Integer seqNum, java.lang.Integer port)
ssrc
- : the SSRC of the participant.seqNum
- : the sequence number of the first RTP packet of the participant.port
- : the RTP port of the participant.public void incPacketSum()
public void calculateTimeJitter(java.lang.Long time, java.lang.Long timestamp)
time
- : the receive time of the last RTP packet.timestamp
- : the receive timestamp of the last RTP packet.public void calculateSeqNumMax(java.lang.Integer sequenceNumber)
sequenceNumber
- : the sequence number to compare with the max.public void calculateFractionLost()
public void calculateCumulativePacketLost()
public void newMeasure()
public java.lang.Long calculateLsr(java.lang.Long MswNtpTimestamp, java.lang.Long LswNtpTimestamp)
MswNtpTimestamp
- : the MSW NTP timestamp of the SR report.LswNtpTimestamp
- : the LSW NTP timestamp of the SR report.public void rtpSender()
public void rtpReceiver()
public java.lang.Integer getPacketSum()
public java.lang.Integer getLastPacketSum()
public java.lang.Long getTimeJitter()
public java.lang.Long getTimeJitterSum()
public java.lang.Long getLastTimeJitterSum()
public java.lang.Long getTimeJitterSumSquare()
public java.lang.Long getLastTimeJitterSumSquare()
public java.lang.Integer getCycle()
public java.lang.Integer getSeqNumMax()
public java.lang.Long getSsrc()
public java.lang.Long getLsr()
public java.lang.Long getDlsr()
public boolean getNewMeasure()
public boolean getFirstReport()
public java.lang.Integer getPort()
public java.lang.Long getPreviousTime()
public java.lang.Integer getFractionLost()
public java.lang.Integer getCumulativePacketLost()
public void setPacketSum(java.lang.Integer packetSum)
public void setTimeJitter(java.lang.Long timeJitter)
public void setTimeJitterSum(java.lang.Long timeJitterSum)
public void setTimeJitterSumSquare(java.lang.Long timeJitterSumSquare)
public void setPreviousTime(java.lang.Long previousTime)
public void setPreviousTimestamp(java.lang.Long previousTimestamp)
public void setPreviousSeqNum(java.lang.Integer previousSeqNum)
public void setSampling(java.lang.Double sampling)
public void setSsrc(java.lang.Long ssrc)
public void setLsr(java.lang.Long lsr)
public void setDlsr(java.lang.Long time)
public void setFirstReport()
public void setLastSeqNum(java.lang.Integer sequenceNumber)