Class CurrentWeatherInfo
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.CurrentWeatherInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCity(Context context) getConditionFromHourlyCondition(RawWeatherInfo rawWeatherInfo, int start, int stop) Gets the most significant condition form the interval specified, or calculates it from other itemsgetConditionFromHourlySignificantCondition(RawWeatherInfo rawWeatherInfo, int start, int stop) static IntegergetMostSignificantCondition(ArrayList<Integer> conditions) longgetWhenNewServerDataExpected(Context context) getWindForecast(int number) static StringinterpolateConditionFromHigherIntervals(int position, RawWeatherInfo rawWeatherInfo) booleanisNewServerDataExpected(Context context) Checks if new Mosmix data can be expected on the DWD server.static StringiteratePositions(String[] stringArray, int position, int limit) setSunDurationFromClouds(Weather.WeatherInfo weatherInfo) void
-
Field Details
-
EMPTY_TAG
- See Also:
-
MOSMIX_UPDATE_INTERVAL
public static final int MOSMIX_UPDATE_INTERVAL- See Also:
-
MOSMIX_PUBLICATION_DELAY
public static final int MOSMIX_PUBLICATION_DELAY- See Also:
-
DMO_UPDATE_INTERVAL
public static final int DMO_UPDATE_INTERVAL- See Also:
-
DMO_PUBLICATION_DELAY
public static final int DMO_PUBLICATION_DELAY- See Also:
-
-
Constructor Details
-
CurrentWeatherInfo
public CurrentWeatherInfo() -
CurrentWeatherInfo
-
-
Method Details
-
setToEmpty
public void setToEmpty() -
getCity
-
getWindForecast
-
setSunDurationFromClouds
-
iteratePositions
-
interpolateConditionFromHigherIntervals
public static String interpolateConditionFromHigherIntervals(int position, RawWeatherInfo rawWeatherInfo) -
getConditionFromHourlyCondition
Gets the most significant condition form the interval specified, or calculates it from other items- Parameters:
rawWeatherInfo-start-stop-- Returns:
- true if condition could be determined, otherwise false
-
getConditionFromHourlySignificantCondition
public Integer getConditionFromHourlySignificantCondition(RawWeatherInfo rawWeatherInfo, int start, int stop) -
getMostSignificantCondition
-
isNewServerDataExpected
public boolean isNewServerDataExpected(Context context) Checks if new Mosmix data can be expected on the DWD server.- Returns:
- true, if new data can be expected.
-
getWhenNewServerDataExpected
public long getWhenNewServerDataExpected(Context context) -
getHumanReadableIssueTime
-