EMMA Coverage Report (generated Tue Dec 18 20:38:46 CET 2007)
[all classes][cz.vutbr.feec.session.rtprtcp.internal]

COVERAGE SUMMARY FOR SOURCE FILE [Session.java]

nameclass, %method, %block, %line, %
Session.java0%   (0/1)0%   (0/6)0%   (0/75)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Session0%   (0/1)0%   (0/6)0%   (0/75)0%   (0/16)
<static initializer> 0%   (0/1)0%   (0/10)0%   (0/2)
Session (): void 0%   (0/1)0%   (0/15)0%   (0/5)
getPayloadType (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getRandomOffset (): short 0%   (0/1)0%   (0/2)0%   (0/1)
onMemberLogout (): void 0%   (0/1)0%   (0/41)0%   (0/6)
setPayloadType (int): void 0%   (0/1)0%   (0/4)0%   (0/2)

1package cz.vutbr.feec.session.rtprtcp.internal;
2 
3import java.util.Random;
4 
5import cz.vutbr.feec.packets.rtp.RTPPacket;
6 
7/**
8 * The Class Session.
9 */
10public class Session extends MemberTable {
11        
12        /** The rtcp_bw. */
13        protected double rtcp_bw;
14        
15        /** The payload type. */
16        private int payloadType;
17 
18        /** The avg_rtcp_size. */
19        public double avg_rtcp_size = 60;
20 
21        // last computed deterministic interval for RTCP transmition
22        /** The T. */
23        public long T; 
24        
25        /** The tp. */
26        public double tp;
27 
28        /** The tc. */
29        public double tc;
30 
31        /** The tn. */
32        public double tn;
33 
34        /** The members. */
35        public int members;
36 
37        /** The pmembers. */
38        public int pmembers;/* previous members */
39 
40        /** The packet count. */
41        public int packetCount;
42 
43        /** The octet count. */
44        public int octetCount;
45        
46        /** The initial. */
47        public boolean initial = true;
48 
49        
50        /** The random offset. */
51        private static final short randomOffset = (short) Math.abs((new Random()).nextInt() & 0x000000FF);
52 
53        
54        // caching of last received rtp packet
55        /** The last RTP pkt received. */
56        public RTPPacket lastRTPPktReceived = null;
57        
58        /** The last RTP pkt sent. */
59        public RTPPacket lastRTPPktSent = null;
60 
61        /**
62         * Gets the payload type.
63         * 
64         * @return the payload type
65         */
66        public int getPayloadType() {
67                return payloadType;
68        }
69 
70        /**
71         * Sets the payload type.
72         * 
73         * @param payloadType the payload type
74         */
75        public void setPayloadType(int payloadType) {
76                this.payloadType = payloadType;
77        }
78        
79        /**
80         * On member logout.
81         */
82        protected void onMemberLogout() {
83                tn = tc +
84                (((double) members)/(pmembers))*(tn - tc);
85                tp = tc -
86                (((double) members)/(pmembers))*(tc - tp);
87 
88                setPreviousMemebersCount(members);
89        }
90 
91        /**
92         * Gets the random offset.
93         * 
94         * @return the random offset
95         */
96        public short getRandomOffset() {
97                return randomOffset;
98        }
99        
100 
101}

[all classes][cz.vutbr.feec.session.rtprtcp.internal]
EMMA 2.0.5312 EclEmma Fix 1 (C) Vladimir Roubtsov