Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT

file stats: | LOC: | 57 |  | Methods: | 8
| NCLOC: | 40 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

Metric.java

-

100%

100%

100%

1 |  | /**
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd.stat;
5 |  |
6 |  | /**
7 |  | * @author David Dixon-Peugh
8 |  | * <p/>
9 |  | * This class holds all sorts of statistical information.
10 |  | */
11 |  | public class Metric {
12 |  | private String metricName = null;
13 |  | private int count = 0;
14 |  | private double total = 0.0;
15 |  | private double low = -1.0;
16 |  | private double high = -1.0;
17 |  | private double mean = -1.0;
18 |  | private double stddev = -1.0;
19 |  |
20 | 183 | public Metric(String name, int count, double total, double low, double high, double mean, double stddev) {
21 | 183 | this.metricName = name;
22 | 183 | this.low = low;
23 | 183 | this.high = high;
24 | 183 | this.mean = mean;
25 | 183 | this.stddev = stddev;
26 | 183 | this.count = count;
27 | 183 | this.total = total;
28 |  | }
29 |  |
30 | 3 | public String getMetricName() {
31 | 3 | return metricName;
32 |  | }
33 |  |
34 | 3 | public double getLowValue() {
35 | 3 | return low;
36 |  | }
37 |  |
38 | 3 | public double getHighValue() {
39 | 3 | return high;
40 |  | }
41 |  |
42 | 3 | public double getAverage() {
43 | 3 | return mean;
44 |  | }
45 |  |
46 | 3 | public double getStandardDeviation() {
47 | 3 | return stddev;
48 |  | }
49 |  |
50 | 1 | public int getCount() {
51 | 1 | return count;
52 |  | }
53 |  |
54 | 1 | public double getTotal() {
55 | 1 | return total;
56 |  | }
57 |  | }