comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/Statistic.java @ 93:c476fbbaa4ca

Imported Statistics-Classes from old Project. Revision: 3101 Does not compile gnv-artifacts/trunk@138 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 28 Sep 2009 07:27:06 +0000
parents
children 7fb9441dd8af
comparison
equal deleted inserted replaced
92:090612335a48 93:c476fbbaa4ca
1 /**
2 * Title: Statistic, $Header: /share/gdi/SDI-Suite/Repository/projekte/BSH-GDI/genericViewer/src/main/java/de/conterra/bsh/gdi/gnviewer/output/statistics/Statistic.java,v 1.2 2007/12/21 12:31:15 blume Exp $
3 * Source: $Source: /share/gdi/SDI-Suite/Repository/projekte/BSH-GDI/genericViewer/src/main/java/de/conterra/bsh/gdi/gnviewer/output/statistics/Statistic.java,v $
4 * created by: Stefan Blume (blume)
5 * erstellt am: 14.12.2007
6 * Copyright: con terra GmbH, 2005
7 *
8 * modified by: $Author: blume $
9 * modified on: $Date: 2007/12/21 12:31:15 $
10 * Version: $Revision: 1.2 $
11 * TAG: $Name: $
12 * locked from: $Locker: $
13 * CVS State: $State: Exp $
14 * Project: $ProjectName$
15 */
16 package de.intevation.gnv.statistics;
17
18 import org.apache.log4j.Logger;
19
20 /**
21 * The class <code>Statistic</code> fulfills the following purposes:
22 * <ol>
23 * <li></li>
24 * </ol>
25 *
26 * @author blume
27 * @version 1.0
28 * @serial 1.0
29 * @see
30 * @since 14.12.2007 09:38:18
31 */
32 public class Statistic {
33
34 /**
35 * Default Logging instance
36 */
37 private static Logger sLogger = Logger.getLogger(Statistic.class);
38 private static boolean sDebug = sLogger.isDebugEnabled();
39
40 private double mValue;
41 private String mKey;
42
43 public Statistic(String pKey, double pValue) {
44 mKey = pKey;
45 mValue = pValue;
46 }
47
48 public double getValue() {
49 return mValue;
50 }
51
52 public String getKey() {
53 return mKey;
54 }
55
56 public String getStringValue() {
57 java.text.DecimalFormat df = new java.text.DecimalFormat("#.##");
58 return df.format(mValue);
59 }
60
61 }

http://dive4elements.wald.intevation.org