EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.probespec.framework.probes.example] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
SimpleDemandingComponent.java | 0% (0/1) | 0% (0/3) | 0% (0/30) | 0% (0/7) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class SimpleDemandingComponent | 0% (0/1) | 0% (0/3) | 0% (0/30) | 0% (0/7) |
SimpleDemandingComponent (): void | 0% (0/1) | 0% (0/8) | 0% (0/3) | |
getDemand (ASimpleActiveResource): double | 0% (0/1) | 0% (0/14) | 0% (0/2) | |
setDemand (ASimpleActiveResource, double): void | 0% (0/1) | 0% (0/8) | 0% (0/2) |
1 | package de.uka.ipd.sdq.probespec.framework.probes.example; |
2 | |
3 | import java.util.HashMap; |
4 | import java.util.Map; |
5 | |
6 | public class SimpleDemandingComponent implements ISimpleDemanding { |
7 | |
8 | private Map<ASimpleActiveResource, Double> demandMap; |
9 | |
10 | public SimpleDemandingComponent() { |
11 | super(); |
12 | demandMap = new HashMap<ASimpleActiveResource, Double>(); |
13 | } |
14 | |
15 | @Override |
16 | public double getDemand(ASimpleActiveResource resource) { |
17 | if (!demandMap.containsKey(resource)) return 0; |
18 | return demandMap.get(resource); |
19 | } |
20 | |
21 | @Override |
22 | public void setDemand(ASimpleActiveResource resource, double demand) { |
23 | demandMap.put(resource, demand); |
24 | } |
25 | |
26 | } |
[all classes][de.uka.ipd.sdq.probespec.framework.probes.example] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |