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

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

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
FeedbackSessionStatus.java | 0% (0/1) | 0% (0/16) | 0% (0/219) | 0% (0/51)

### COVERAGE BREAKDOWN BY CLASS AND METHOD

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
class FeedbackSessionStatus | 0% (0/1) | 0% (0/16) | 0% (0/219) | 0% (0/51)
FeedbackSessionStatus (): void |  | 0% (0/1) | 0% (0/11) | 0% (0/4)
addListener (EventListener): void |  | 0% (0/1) | 0% (0/6) | 0% (0/2)
initThread (): void |  | 0% (0/1) | 0% (0/13) | 0% (0/4)
isRunning (): boolean |  | 0% (0/1) | 0% (0/3) | 0% (0/1)
received (FTAPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
received (FTCPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
received (FTSPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
received (LMSPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
received (LMVPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
sent (FTAPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
sent (FTCPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
sent (FTSPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
sent (LMSPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
sent (LMVPacket): void |  | 0% (0/1) | 0% (0/16) | 0% (0/3)
start (): void |  | 0% (0/1) | 0% (0/13) | 0% (0/5)
stop (): void |  | 0% (0/1) | 0% (0/13) | 0% (0/5)

1 | package cz.vutbr.feec.session.feedback;
2 |
3 | import java.util.Vector;
4 |
5 | import cz.vutbr.feec.packets.ttp.FTAPacket;
6 | import cz.vutbr.feec.packets.ttp.FTCPacket;
7 | import cz.vutbr.feec.packets.ttp.FTSPacket;
8 | import cz.vutbr.feec.packets.ttp.LMSPacket;
9 | import cz.vutbr.feec.packets.ttp.LMVPacket;
10 | import cz.vutbr.feec.session.ISession;
11 |
12 | abstract public class FeedbackSessionStatus implements ISession, EventListener {
13 |
14 | protected ThreadInMulticast inMulticast;
15 |
16 | protected ThreadInUnicast inUnicast;
17 |
18 | protected ThreadOut outUnicast;
19 |
20 | protected boolean isRunning = false;
21 |
22 | private Vector<EventListener> rcvLtns = new Vector<EventListener>();
23 |
24 | public void addListener(EventListener listener) {
25 | rcvLtns.add(listener);
26 | }
27 |
28 | public FeedbackSessionStatus() {
29 | }
30 |
31 | protected void initThread() {
32 | inUnicast.setSession(this);
33 | inMulticast.setSession(this);
34 | outUnicast.setSession(this);
35 | }
36 |
37 | public void start() {
38 | isRunning = true;
39 | inUnicast.startThread();
40 | inMulticast.startThread();
41 | outUnicast.startThread();
42 | }
43 |
44 | public void stop() {
45 | isRunning = false;
46 | inUnicast.stopThread();
47 | inMulticast.stopThread();
48 | outUnicast.stopThread();
49 | }
50 |
51 |
52 | public void received(FTAPacket packet) {
53 | for (EventListener l : rcvLtns) {
54 | l.received(packet);
55 | }
56 |
57 | }
58 |
59 |
60 | public void received(FTCPacket packet) {
61 | for (EventListener l : rcvLtns) {
62 | l.received(packet);
63 | }
64 | }
65 |
66 |
67 | public void received(FTSPacket packet) {
68 | for (EventListener l : rcvLtns) {
69 | l.received(packet);
70 | }
71 | }
72 |
73 |
74 | public void received(LMSPacket packet) {
75 | for (EventListener l : rcvLtns) {
76 | l.received(packet);
77 | }
78 | }
79 |
80 |
81 | public void received(LMVPacket packet) {
82 | for (EventListener l : rcvLtns) {
83 | l.received(packet);
84 | }
85 | }
86 |
87 |
88 | public void sent(FTAPacket packet) {
89 | for (EventListener l : rcvLtns) {
90 | l.sent(packet);
91 | }
92 | }
93 |
94 |
95 | public void sent(FTCPacket packet) {
96 | for (EventListener l : rcvLtns) {
97 | l.sent(packet);
98 | }
99 | }
100 |
101 |
102 | public void sent(FTSPacket packet) {
103 | for (EventListener l : rcvLtns) {
104 | l.sent(packet);
105 | }
106 | }
107 |
108 |
109 | public void sent(LMSPacket packet) {
110 | for (EventListener l : rcvLtns) {
111 | l.sent(packet);
112 | }
113 | }
114 |
115 |
116 | public void sent(LMVPacket packet) {
117 | for (EventListener l : rcvLtns) {
118 | l.sent(packet);
119 | }
120 | }
121 |
122 |
123 | public boolean isRunning() {
124 | return isRunning;
125 | }
126 |
127 | }

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