Class Wind

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Wind
    extends Object
    implements Serializable, Cloneable
    Units for various aspects of the forecast. Attributes:
    • temperature: degree units, f for Fahrenheit or c for Celsius (character)
    • distance: units for distance, mi for miles or km for kilometers (string)
    • pressure: units of barometric pressure, in for pounds per square inch or mb for millibars (string)
    • speed: units of speed, mph for miles per hour or kph for kilometers per hour (string)
    Note that the default RSS feed uses Fahrenheit degree units and English units for all other attributes (miles, pounds per square inch, miles per hour). If Celsius has been specified as the degree units for the feed (using the u request parameter), all the units are in metric format (Celsius, kilometers, millibars, kilometers per hour).
    See Also:
    Serialized Form
    • Constructor Detail

      • Wind

        public Wind()
      • Wind

        public Wind​(int chill,
                    int direction,
                    int speed)
        Parameters:
        chill - wind chill adjusted temperature
        direction - direction of wind in degrees
        speed - speed of wind
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getChill

        public int getChill()
        Wind chill adjusted temperature.
        Returns:
        int temperature value
        See Also:
        Units
      • setChill

        public void setChill​(int chill)
        Wind chill adjusted temperature.
        Parameters:
        chill - int temperature value
        See Also:
        Units
      • getDirection

        public int getDirection()
        Direction of wind in degrees
        Returns:
        int direction of wind.
      • setDirection

        public void setDirection​(int direction)
        Direction of wind in degrees
        Parameters:
        direction - int direction of wind.
      • getSpeed

        public int getSpeed()
        Speed of wind
        Returns:
        int speed of wind
        See Also:
        Units
      • setSpeed

        public void setSpeed​(int speed)
        Speed of wind
        Parameters:
        speed - int speed of wind
        See Also:
        Units