Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/DefaultTimeGap.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.timeseries.gap; | |
10 | |
11 /** | |
12 * The default implementation of <code>TimeGap</code>. | |
13 * | |
14 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
15 */ | |
16 public class DefaultTimeGap implements TimeGap { | |
17 | |
18 /** | |
19 * The UNIT of the TimeGap | |
20 * See the Constants in de.intevation.gnv.timeseries.gap.TimeGap | |
21 */ | |
22 private String unit; | |
23 | |
24 /** | |
25 * The Key of the TimeGap which must be equivalent to the | |
26 * Key used in the DWH | |
27 */ | |
28 private int key; | |
29 | |
30 /** | |
31 * The Value of the Gap. | |
32 * Use the Unit and the Time Constants to Calculate the | |
33 * value in Milliseconds | |
34 */ | |
35 private int value; | |
36 | |
37 /** | |
38 * Constructor | |
39 * | |
40 * @param unit Unit of this value. | |
41 * @param key The key of this time gap. | |
42 * @param value The value of this gap. | |
43 */ | |
44 public DefaultTimeGap(String unit, int key, int value) { | |
45 super(); | |
46 this.unit = unit; | |
47 this.key = key; | |
48 this.value = value; | |
49 } | |
50 | |
51 | |
52 public String getUnit() { | |
53 return this.unit; | |
54 } | |
55 | |
56 | |
57 public int getKey() { | |
58 return this.key; | |
59 } | |
60 | |
61 | |
62 public int getValue() { | |
63 return this.value; | |
64 } | |
65 | |
66 } | |
67 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |