Class CurrentWeatherInfo


  • public class CurrentWeatherInfo
    extends java.lang.Object
    • Constructor Detail

      • CurrentWeatherInfo

        public CurrentWeatherInfo()
      • CurrentWeatherInfo

        public CurrentWeatherInfo​(Context context,
                                  RawWeatherInfo rawWeatherInfo)
    • Method Detail

      • setToEmpty

        public void setToEmpty()
      • getCity

        public java.lang.String getCity​(Context context)
      • getWindForecast

        public java.util.ArrayList<Weather.WindData> getWindForecast​(int number)
      • setSunDurationFromClouds

        public java.lang.Integer setSunDurationFromClouds​(Weather.WeatherInfo weatherInfo)
      • iteratePositions

        public static java.lang.String iteratePositions​(java.lang.String[] stringArray,
                                                        int position,
                                                        int limit)
      • interpolateConditionFromHigherIntervals

        public static java.lang.String interpolateConditionFromHigherIntervals​(int position,
                                                                               RawWeatherInfo rawWeatherInfo)
      • getConditionFromHourlyCondition

        public java.lang.Integer getConditionFromHourlyCondition​(RawWeatherInfo rawWeatherInfo,
                                                                 int start,
                                                                 int stop)
        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 java.lang.Integer getConditionFromHourlySignificantCondition​(RawWeatherInfo rawWeatherInfo,
                                                                            int start,
                                                                            int stop)
      • getMostSignificantCondition

        public static java.lang.Integer getMostSignificantCondition​(java.util.ArrayList<java.lang.Integer> conditions)
      • 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

        public java.lang.String getHumanReadableIssueTime()