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

COVERAGE SUMMARY FOR SOURCE FILE [StoreHistogramCSV.java]

nameclass, %method, %block, %line, %
StoreHistogramCSV.java0%   (0/1)0%   (0/2)0%   (0/56)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class StoreHistogramCSV0%   (0/1)0%   (0/2)0%   (0/56)0%   (0/12)
StoreHistogramCSV (): void 0%   (0/1)0%   (0/3)0%   (0/1)
store (ManagedPDF, String): void 0%   (0/1)0%   (0/53)0%   (0/11)

1package de.uka.ipd.sdq.probfunction.math.util;
2 
3import java.io.BufferedWriter;
4import java.io.FileWriter;
5 
6import de.uka.ipd.sdq.probfunction.math.ISamplePDF;
7import de.uka.ipd.sdq.probfunction.math.ManagedPDF;
8 
9public class StoreHistogramCSV {
10        
11        public static void store(ManagedPDF pdf, String fileName){
12                ISamplePDF sPDF = pdf.getSamplePdfTimeDomain();
13                FileWriter writer;
14                BufferedWriter bufferedWriter;
15                
16                try {
17                        writer = new FileWriter(fileName);
18                        bufferedWriter = new BufferedWriter(writer);
19                        double pos = 0;
20                        for( Double d : sPDF.getValuesAsDouble()){
21                                bufferedWriter.write( pos + "; " + d + "\n");
22                                pos += sPDF.getDistance();
23                        }
24                        bufferedWriter.close();
25                        writer.close();
26                } catch(Exception e) {
27                }
28        }
29}

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