EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.prototype.framework.strategies]

COVERAGE SUMMARY FOR SOURCE FILE [PassiveResourceRegistry.java]

nameclass, %method, %block, %line, %
PassiveResourceRegistry.java0%   (0/1)0%   (0/5)0%   (0/29)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PassiveResourceRegistry0%   (0/1)0%   (0/5)0%   (0/29)0%   (0/8)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/2)
PassiveResourceRegistry (): void 0%   (0/1)0%   (0/8)0%   (0/2)
addPassiveResource (PassiveResource): void 0%   (0/1)0%   (0/8)0%   (0/2)
getResource (String): PassiveResource 0%   (0/1)0%   (0/6)0%   (0/1)
singleton (): PassiveResourceRegistry 0%   (0/1)0%   (0/2)0%   (0/1)

1package de.uka.ipd.sdq.prototype.framework.strategies;
2 
3import java.util.HashMap;
4 
5public class PassiveResourceRegistry {
6        
7        private HashMap<String,PassiveResource> passiveResourceHash = new HashMap<String, PassiveResource>();
8        private static PassiveResourceRegistry singletonInstance = new PassiveResourceRegistry();
9        
10        private PassiveResourceRegistry(){}
11 
12        public static PassiveResourceRegistry singleton() {
13                return singletonInstance;
14        }
15        
16        public void addPassiveResource(PassiveResource p){
17                passiveResourceHash.put(p.getType(), p);
18        }
19        
20        public PassiveResource getResource(String type){
21                return this.passiveResourceHash.get(type);
22        }
23 
24        
25        
26}

[all classes][de.uka.ipd.sdq.prototype.framework.strategies]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov