comparison gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/DefaultTimeGap.java @ 217:3dcd2b0b456e

Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45 gnv-artifacts/trunk@275 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 29 Oct 2009 15:58:47 +0000
parents
children 3ddc22aab764
comparison
equal deleted inserted replaced
216:9db263ee2678 217:3dcd2b0b456e
1 /**
2 *
3 */
4 package de.intevation.gnv.timeseries.gap;
5 /**
6 * @author Tim Englich <tim.englich@intevation.de>
7 *
8 */
9 public class DefaultTimeGap implements TimeGap{
10
11 /**
12 * The UNIT of the TimeGap
13 * See the Constants in de.intevation.gnv.timeseries.gap.TimeGap
14 */
15 private String unit;
16
17 /**
18 * The Key of the TimeGap which must be äquivalent to the
19 * Key used in the DWH
20 */
21 private int key;
22
23 /**
24 * The Value of the Gap.
25 * Use the Unit and the Time Constants to Calculate the
26 * value in Milliseconds
27 */
28 private int value;
29
30 /**
31 * Constructor
32 * @param unit
33 * @param key
34 * @param value
35 */
36 public DefaultTimeGap(String unit, int key, int value) {
37 super();
38 this.unit = unit;
39 this.key = key;
40 this.value = value;
41 }
42
43 /**
44 * @see de.intevation.gnv.timeseries.gap.TimeGap#getUnit()
45 */
46 public String getUnit() {
47 return this.unit;
48 }
49
50 /**
51 * @see de.intevation.gnv.timeseries.gap.TimeGap#getKey()
52 */
53 public int getKey() {
54 return this.key;
55 }
56
57 /**
58 * @see de.intevation.gnv.timeseries.gap.TimeGap#getValue()
59 */
60 public int getValue() {
61 return this.value;
62 }
63
64 }

http://dive4elements.wald.intevation.org