Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/DefaultTimeGap.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 3ddc22aab764 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
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 equivalent 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 } |