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

## COVERAGE SUMMARY FOR SOURCE FILE [VideoSession.java]

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
VideoSession.java | 0% (0/1) | 0% (0/7) | 0% (0/65) | 0% (0/12)

### COVERAGE BREAKDOWN BY CLASS AND METHOD

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
class VideoSession | 0% (0/1) | 0% (0/7) | 0% (0/65) | 0% (0/12)
<static initializer> |  | 0% (0/1) | 0% (0/8) | 0% (0/1)
VideoSession (Config, Socket, String, int): void |  | 0% (0/1) | 0% (0/17) | 0% (0/3)
VideoSession (Config, String, int): void |  | 0% (0/1) | 0% (0/20) | 0% (0/4)
getBandwidth (): int |  | 0% (0/1) | 0% (0/5) | 0% (0/1)
getFeedbackInPort (): int |  | 0% (0/1) | 0% (0/5) | 0% (0/1)
getFeedbackOutPort (): int |  | 0% (0/1) | 0% (0/5) | 0% (0/1)
getSSMPort (): int |  | 0% (0/1) | 0% (0/5) | 0% (0/1)

1 | package cz.vutbr.feec.session.rtprtcp;
2 |
3 | import net.java.dev.jssm.Socket;
4 | import cz.vutbr.feec.session.rtprtcp.internal.SessionType;
5 |
6 | /**
7 | * The Class VideoSession.
8 | *
9 | * @brief Session for managing video stream. This class could not be instantied
10 | * directly, only throught AVSession.
11 | * @author burgetrm
12 | */
13 | public class VideoSession extends AbstractSession {
14 |
15 | /**
16 | * Creates session for stream and configures according to Config class.
17 | *
18 | * @param cfg
19 | * the cfg
20 | */
21 | public VideoSession(Config cfg, String name, int payloadType) {
22 | super(cfg, name, payloadType);
23 | assert cfg.getMemberType() == SessionType.RECEIVER
24 | || cfg.getMemberType() == SessionType.FEEDBACK_TARGET;
25 | }
26 |
27 | /**
28 | * Creates session for stream and configures according to Config class.
29 | *
30 | * @param multicastSocket
31 | * the multicast socket
32 | * @param cfg
33 | * the cfg
34 | */
35 | public VideoSession(Config cfg, Socket multicastSocket, String name,
36 | int payload) {
37 | super(cfg, multicastSocket, name, payload);
38 | assert cfg.getMemberType() == SessionType.FEEDBACK_TARGET;
39 | }
40 |
41 | /*
42 | * (non-Javadoc)
43 | *
44 | * @see cz.vutbr.feec.utko.iptv.session.AbstractSession#getBandwidth()
45 | */
46 | @Override
47 | public int getBandwidth() {
48 | return cfg.getBandwidthVideo();
49 | }
50 |
51 | /**
52 | * returns port of feedback for VIDEO from config for this session.
53 | *
54 | * @return the feedback in port
55 | */
56 | @Override
57 | public int getFeedbackInPort() {
58 | return cfg.getFeedbackInPortVideo();
59 | }
60 |
61 | /**
62 | * returns port of feedback for VIDEO from config for this session.
63 | *
64 | * @return the feedback out port
65 | */
66 | @Override
67 | public int getFeedbackOutPort() {
68 | return cfg.getFeedbackOutPortVideo();
69 | }
70 |
71 | /*
72 | * (non-Javadoc)
73 | *
74 | * @see cz.vutbr.feec.utko.iptv.session.AbstractSession#getSSMPort()
75 | */
76 | @Override
77 | /**
78 | * returns port of VIDEO from config for this session.
79 | */
80 | public int getSSMPort() {
81 | return cfg.getSSMPortVideo();
82 | }
83 | }

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