com.sun.syndication.feed.module.yahooweather.types
Class Atmosphere

java.lang.Object
  extended by com.sun.syndication.feed.module.yahooweather.types.Atmosphere
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Atmosphere
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Forecast information about current atmospheric pressure, humidity, and visibility. Attributes:

Version:
$Id: Atmosphere.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Nested Class Summary
static class Atmosphere.PressureChange
           
 
Constructor Summary
Atmosphere()
          Simple constructor.
Atmosphere(int humidity, double visibility, double pressure, Atmosphere.PressureChange change)
          Constructs a new Atmosphere object
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 Atmosphere.PressureChange getChange()
          Change in pressure
 int getHumidity()
          Relative humidity
 double getPressure()
          Barometric pressure
 double getVisibility()
          Visibility distance
 int hashCode()
           
 void setChange(Atmosphere.PressureChange change)
          Change in pressure
 void setHumidity(int humidity)
          Relative humidity
 void setPressure(double pressure)
          Barometric pressure
 void setVisibility(double visibility)
          Visibility distance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Atmosphere

public Atmosphere()
Simple constructor.


Atmosphere

public Atmosphere(int humidity,
                  double visibility,
                  double pressure,
                  Atmosphere.PressureChange change)
Constructs a new Atmosphere object

Parameters:
humidity - humidity, in percent
visibility - visibility distance (value beyond 1/100ths of a unit will be truncated)
pressure - barometric pressure
change - state of the barometric pressure
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getHumidity

public int getHumidity()
Relative humidity

Returns:
humidity, in percent

setHumidity

public void setHumidity(int humidity)
Relative humidity

Parameters:
humidity - humidity, in percent

getVisibility

public double getVisibility()
Visibility distance

Returns:
distance

setVisibility

public void setVisibility(double visibility)
Visibility distance

Parameters:
visibility - distance (value beyond 1/100ths of a unit will be truncated)

getPressure

public double getPressure()
Barometric pressure

Returns:
pressure

setPressure

public void setPressure(double pressure)
Barometric pressure

Parameters:
pressure - pressure

getChange

public Atmosphere.PressureChange getChange()
Change in pressure

Returns:
Atmosphere.PressureChange object

setChange

public void setChange(Atmosphere.PressureChange change)
Change in pressure

Parameters:
change - PressureChange object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.