java.lang.Object
cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.current_weather.CurrentCondition

public final class CurrentCondition extends Object
Current weather / the latest weather data
Version:
17
Author:
krystof-cejchan
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor required to create this object of this class
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Cloud cover is an important component of understanding and predicting the weather.
    Not only does cloud cover impact sky conditions and inform precipitation predictions,
    it also helps regulate the temperature that occurs in a region.
    int
    Feels Like Index is a factored mixture of the Wind Chill Factor and the Heat Index.
    The combination of the heat index and the wind chill factor are denoted collectively by the single
    terms apparent temperature or relative outdoor temperature or simply Feels Like.
    int
    Feels Like Index is a factored mixture of the Wind Chill Factor and the Heat Index.
    The combination of the heat index and the wind chill factor are denoted collectively by the single
    terms apparent temperature or relative outdoor temperature or simply Feels Like.
    int
    Humidity is the amount of water vapor in the air.
    java.time.LocalDateTime
     
    java.time.LocalTime
     
    double
    Precipitation is any liquid or frozen water that forms in the atmosphere and falls to the Earth.
    It is one of the three main steps of the global water cycle.

    * source
    double
    Precipitation is any liquid or frozen water that forms in the atmosphere and falls to the Earth.
    It is one of the three main steps of the global water cycle.

    * source
    int
    The air around you has weight, and it presses against everything it touches.
    int
    The air around you has weight, and it presses against everything it touches.
    int
     
    int
     
    int
    int
     
    int
     
    int
     
    examples: Cloudy, Sunny, Snowy, Heavy Rainstorm...
    examples: west, south, south-east...
    int
     
    int
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CurrentCondition

      public CurrentCondition(String location) throws IOException
      Constructor required to create this object of this class
      Parameters:
      location - String location / area you want to get the forecast for
      Throws:
      IOException - if data are unavailable
  • Method Details

    • getFeelsLikeC

      public int getFeelsLikeC()
      Feels Like Index is a factored mixture of the Wind Chill Factor and the Heat Index.
      The combination of the heat index and the wind chill factor are denoted collectively by the single
      terms apparent temperature or relative outdoor temperature or simply Feels Like.

      * source
      Returns:
      feels-like temperature in Celsius
    • getFeelsLikeF

      public int getFeelsLikeF()
      Feels Like Index is a factored mixture of the Wind Chill Factor and the Heat Index.
      The combination of the heat index and the wind chill factor are denoted collectively by the single
      terms apparent temperature or relative outdoor temperature or simply Feels Like.

      * source
      Returns:
      feels-like temperature in Fahrenheit
    • getCloudCover

      public int getCloudCover()
      Cloud cover is an important component of understanding and predicting the weather.
      Not only does cloud cover impact sky conditions and inform precipitation predictions,
      it also helps regulate the temperature that occurs in a region.

      * source
      Returns:
      cloud coverage
    • getHumidity

      public int getHumidity()
      Humidity is the amount of water vapor in the air. If there is a lot of water vapor in the air,
      the humidity will be high. The higher the humidity, the wetter it feels outside.

      * source
      Returns:
      cloud coverage
    • getLocalObsDateTime

      public java.time.LocalDateTime getLocalObsDateTime()
      Returns:
      Local date and time LocalDateTime at the provided location
    • getObservationTime

      public java.time.LocalTime getObservationTime()
      Returns:
      Local time LocalTime of the observation
    • getPrecipInches

      public double getPrecipInches()
      Precipitation is any liquid or frozen water that forms in the atmosphere and falls to the Earth.
      It is one of the three main steps of the global water cycle.

      * source
      Returns:
      precipitation in inches
    • getPrecipMM

      public double getPrecipMM()
      Precipitation is any liquid or frozen water that forms in the atmosphere and falls to the Earth.
      It is one of the three main steps of the global water cycle.

      * source
      Returns:
      precipitation in millimeters
    • getPressure

      public int getPressure()
      The air around you has weight, and it presses against everything it touches. That pressure is called atmospheric pressure, or air pressure.

      source
      Returns:
      Atmospheric Pressure in Millibars
    • getPressureInches

      public int getPressureInches()
      The air around you has weight, and it presses against everything it touches. That pressure is called atmospheric pressure, or air pressure.

      source
      Returns:
      Atmospheric Pressure in inches
    • getTemp_C

      public int getTemp_C()
      Returns:
      current temperature in Celsius
    • getTemp_F

      public int getTemp_F()
      Returns:
      current temperature in Fahrenheit
    • getUvIndex

      public int getUvIndex()
      Returns:
      UV index
    • getVisibility

      public int getVisibility()
      Returns:
      how far can you see in kilometers
    • getVisibilityMiles

      public int getVisibilityMiles()
      Returns:
      how far can you see in miles
    • getWeatherCode

      public int getWeatherCode()
      Returns:
      weather code
    • getWeatherDescription

      public String getWeatherDescription()
      examples: Cloudy, Sunny, Snowy, Heavy Rainstorm...
      Returns:
      weather description
    • getWindDir16Point

      public String getWindDir16Point()
      examples: west, south, south-east...
      Returns:
      direction of wind
    • getWinDirDegree

      public int getWinDirDegree()
      Returns:
      wind direction degree
    • getWindSpeedKmph

      public int getWindSpeedKmph()
      Returns:
      wind speed in kilometers per hour
    • getWindSpeedMiles

      public int getWindSpeedMiles()
      Returns:
      wind speed in miles per hour
    • toString

      public String toString()
      Overrides:
      toString in class Object