Class Today
java.lang.Object
cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.forecast.days.Today
- All Implemented Interfaces:
IForecastDayTimesAndDays
WeatherForecast for today- Version:
- 17
- Author:
- krystof-cejchan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget all possible forecast forTIMEs provided in constructorintintjava.time.LocalDategetDate()getDay()getForecastByTime(TIME time) implemented by Today, Tomorrow and AfterTomorrow, therefor no day is neededintintintintintjava.time.LocalTimejava.time.LocalTimedoublejava.time.LocalTimejava.time.LocalTimeTIME[]getTime()doubledoubleinttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.forecast.days.hour.IForecastDayTimesAndDays
addHour
-
Constructor Details
-
Today
- Throws:
IOException
-
-
Method Details
-
getDay
- Specified by:
getDayin interfaceIForecastDayTimesAndDays- Returns:
- day which implementing class represents
-
getTime
- Specified by:
getTimein interfaceIForecastDayTimesAndDays- Returns:
- time provided by user when calling this class or superclass
-
getForecastByTime
Description copied from interface:IForecastDayTimesAndDaysimplemented by Today, Tomorrow and AfterTomorrow, therefor no day is needed- Specified by:
getForecastByTimein interfaceIForecastDayTimesAndDays- Parameters:
time- for weather data- Returns:
- ForecastAtHour object containing all data for specific day and time
- Throws:
NoDataFoundForThisDayAndTime
-
getAllForecastsForToday
get all possible forecast forTIMEs provided in constructor- Returns:
- map of time and forecast
-
getMoonIllumination
public int getMoonIllumination() -
getMoonPhase
-
getMoonRise
public java.time.LocalTime getMoonRise() -
getMoonSet
public java.time.LocalTime getMoonSet() -
getSunSet
public java.time.LocalTime getSunSet() -
getSunRise
public java.time.LocalTime getSunRise() -
getAverageTemperatureC
public int getAverageTemperatureC() -
getaverageTemperatureF
public int getaverageTemperatureF() -
getDate
public java.time.LocalDate getDate() -
getMaxTemperatureC
public int getMaxTemperatureC() -
getMaxTemperatureF
public int getMaxTemperatureF() -
getMinTemperatureC
public int getMinTemperatureC() -
getMinTemperatureF
public int getMinTemperatureF() -
getSunHour
public double getSunHour() -
getTotalSnowCM
public double getTotalSnowCM() -
getTotalSnowInches
public double getTotalSnowInches() -
getUvIndex
public int getUvIndex() -
getForecastHourlyList
-
toString
-