tim@217: /** tim@217: * tim@217: */ tim@217: package de.intevation.gnv.timeseries.gap; tim@217: /** tim@217: * @author Tim Englich tim@217: * tim@217: */ tim@217: 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 tim@217: * @param unit tim@217: * @param key tim@217: * @param value 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: tim@217: /** tim@217: * @see de.intevation.gnv.timeseries.gap.TimeGap#getUnit() tim@217: */ tim@217: public String getUnit() { tim@217: return this.unit; tim@217: } tim@217: tim@217: /** tim@217: * @see de.intevation.gnv.timeseries.gap.TimeGap#getKey() tim@217: */ tim@217: public int getKey() { tim@217: return this.key; tim@217: } tim@217: tim@217: /** tim@217: * @see de.intevation.gnv.timeseries.gap.TimeGap#getValue() tim@217: */ tim@217: public int getValue() { tim@217: return this.value; tim@217: } tim@217: tim@217: }