Class Tomorrow
java.lang.Object
cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.forecast.days.Tomorrow
- All Implemented Interfaces:
IForecastDayTimesAndDays
WeatherForecast for tommorow- Author:
- krystof-cejchan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget all possible forecast forTIMEs provided in constructorintintgetDate()getDay()getForecastByTime(TIME time) implemented by Today, Tomorrow and AfterTomorrow, therefor no day is neededintintintintintdoubleTIME[]getTime()TIME[]getTimes()doubledoubleintvoidprint()prints current object.toString to the consoletoString()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
-
Tomorrow
- Throws:
CouldNotFindLocation
-
-
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
-
getMoonSet
-
getSunSet
-
getSunRise
-
getAverageTemperatureC
public int getAverageTemperatureC() -
getAverageTemperatureF
public int getAverageTemperatureF() -
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() -
print
public void print()prints current object.toString to the console -
getTimes
-
getLocation
- Returns:
- location provided in the constructor of this class or its parent class
if you need to get more detailed information, useNearestArea
-
toString
-