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

COVERAGE SUMMARY FOR SOURCE FILE [PDFConfiguration.java]

nameclass, %method, %block, %line, %
PDFConfiguration.java0%   (0/1)0%   (0/7)0%   (0/63)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PDFConfiguration0%   (0/1)0%   (0/7)0%   (0/63)0%   (0/18)
<static initializer> 0%   (0/1)0%   (0/7)0%   (0/3)
PDFConfiguration (int, double, IUnit): void 0%   (0/1)0%   (0/12)0%   (0/5)
getCurrentConfiguration (): PDFConfiguration 0%   (0/1)0%   (0/17)0%   (0/4)
getDistance (): double 0%   (0/1)0%   (0/3)0%   (0/1)
getNumSamplingPoints (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getUnit (): IUnit 0%   (0/1)0%   (0/3)0%   (0/1)
setCurrentConfiguration (int, double, IUnit): void 0%   (0/1)0%   (0/18)0%   (0/3)

1package de.uka.ipd.sdq.probfunction.math;
2 
3import de.uka.ipd.sdq.probfunction.math.exception.ConfigurationNotSetException;
4 
5public class PDFConfiguration {
6 
7        private static PDFConfiguration currentConfiguration = null;
8 
9        private int numSamplingPoints;
10        
11        private double distance;
12        
13        private IUnit unit;
14        
15        private static Object lock = new Object();
16        
17        private PDFConfiguration(int numSamplingPoints, double distance, IUnit unit) {
18                super();
19                this.numSamplingPoints = numSamplingPoints;
20                this.distance = distance;
21                this.unit = unit;
22        }
23 
24        public double getDistance() {
25                return distance;
26        }
27 
28        public int getNumSamplingPoints() {
29                return numSamplingPoints;
30        }
31 
32        public IUnit getUnit() {
33                return unit;
34        }
35        
36        public static PDFConfiguration getCurrentConfiguration() throws ConfigurationNotSetException{
37                synchronized (lock) {
38                        if (currentConfiguration == null)
39                                throw new ConfigurationNotSetException();
40                        return currentConfiguration;
41                }
42        }
43        
44        public static void setCurrentConfiguration(int numSamplingPoints, double distance, IUnit unit){
45                synchronized (lock) {
46                        currentConfiguration = new PDFConfiguration(numSamplingPoints,distance,unit);
47                }
48        }
49}

[all classes][de.uka.ipd.sdq.probfunction.math]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov