EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.simucomframework.simulationdock] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
DispatchingSimulationObserver.java | 0% (0/1) | 0% (0/5) | 0% (0/42) | 0% (0/11) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class DispatchingSimulationObserver | 0% (0/1) | 0% (0/5) | 0% (0/42) | 0% (0/11) |
DispatchingSimulationObserver (): void | 0% (0/1) | 0% (0/8) | 0% (0/2) | |
addObserver (IStatusObserver): void | 0% (0/1) | 0% (0/6) | 0% (0/2) | |
removeAll (): void | 0% (0/1) | 0% (0/4) | 0% (0/2) | |
removeObserver (IStatusObserver): void | 0% (0/1) | 0% (0/6) | 0% (0/2) | |
updateStatus (int, double, long): void | 0% (0/1) | 0% (0/18) | 0% (0/3) |
1 | package de.uka.ipd.sdq.simucomframework.simulationdock; |
2 | |
3 | import java.util.ArrayList; |
4 | |
5 | import de.uka.ipd.sdq.simulation.IStatusObserver; |
6 | |
7 | public class DispatchingSimulationObserver implements IStatusObserver { |
8 | |
9 | private ArrayList<IStatusObserver> observers = new ArrayList<IStatusObserver>(); |
10 | |
11 | public void addObserver(IStatusObserver client) { |
12 | this.observers.add(client); |
13 | } |
14 | |
15 | public void removeObserver(IStatusObserver client) { |
16 | this.observers.remove(client); |
17 | } |
18 | |
19 | public void removeAll() { |
20 | this.observers.clear(); |
21 | } |
22 | |
23 | public void updateStatus(int percentDone, double currentSimTime, |
24 | long measurementsTaken) { |
25 | for (IStatusObserver observer : observers) { |
26 | observer.updateStatus(percentDone, currentSimTime, measurementsTaken); |
27 | } |
28 | } |
29 | |
30 | } |
[all classes][de.uka.ipd.sdq.simucomframework.simulationdock] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |