tim@217: package de.intevation.gnv.timeseries.gap;
sascha@779:
tim@217: /**
ingo@810: * The default implementation of TimeGap
.
ingo@810: *
sascha@780: * @author Tim Englich
tim@217: */
ingo@810: public class DefaultTimeGap implements TimeGap {
tim@217:
tim@217: /**
tim@217: * The UNIT of the TimeGap
tim@217: * See the Constants in de.intevation.gnv.timeseries.gap.TimeGap
tim@217: */
tim@217: private String unit;
sascha@778:
tim@217: /**
tim@461: * The Key of the TimeGap which must be equivalent to the
tim@217: * Key used in the DWH
tim@217: */
tim@217: private int key;
sascha@778:
tim@217: /**
tim@217: * The Value of the Gap.
tim@217: * Use the Unit and the Time Constants to Calculate the
tim@217: * value in Milliseconds
tim@217: */
tim@217: private int value;
sascha@778:
tim@217: /**
tim@217: * Constructor
ingo@810: *
ingo@810: * @param unit Unit of this value.
ingo@810: * @param key The key of this time gap.
ingo@810: * @param value The value of this gap.
tim@217: */
tim@217: public DefaultTimeGap(String unit, int key, int value) {
tim@217: super();
tim@217: this.unit = unit;
tim@217: this.key = key;
tim@217: this.value = value;
tim@217: }
tim@217:
ingo@810:
tim@217: public String getUnit() {
tim@217: return this.unit;
tim@217: }
tim@217:
ingo@810:
tim@217: public int getKey() {
tim@217: return this.key;
tim@217: }
tim@217:
ingo@810:
tim@217: public int getValue() {
tim@217: return this.value;
tim@217: }
tim@217:
tim@217: }
ingo@810: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :