tim@217: package de.intevation.gnv.timeseries.gap; tim@217: public interface TimeGap { sascha@778: tim@217: public final static String TIME_UNIT_MINUTE = "m"; tim@217: public final static String TIME_UNIT_HOUR = "h"; tim@217: public final static String TIME_UNIT_DAY = "D"; tim@217: public final static String TIME_UNIT_WEEK = "W"; tim@217: public final static String TIME_UNIT_MONTH = "M"; tim@217: public final static String TIME_UNIT_YEAR = "Y"; sascha@778: tim@217: public final static long MINUTE_IN_MILLIS = 60 * 1000; tim@217: public final static long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; tim@217: public final static long DAY_IN_MILLIS = 24 * HOUR_IN_MILLIS; tim@217: public final static long WEEK_IN_MILLIS = 7 * DAY_IN_MILLIS; sascha@778: sascha@778: tim@217: /** tim@217: * Returns the Lookup-Key for the TimeGap tim@217: * @return tim@217: */ tim@217: int getKey(); sascha@778: tim@217: /** tim@217: * Returns the Value of the TimeValue in the Unit which is also given. tim@217: * @return tim@217: */ tim@217: int getValue(); sascha@778: tim@217: /** tim@217: * Returns the Unit of the Timegap (e.g. Minutes, Hours, Days, Weeks, Months, Years) tim@217: * @return tim@217: */ tim@217: String getUnit(); tim@217: tim@217: }