com.github.fedy2.weather.data
Class Atmosphere

java.lang.Object
  extended by com.github.fedy2.weather.data.Atmosphere

public class Atmosphere
extends Object

Information about atmospheric pressure, humidity, and visibility.

Author:
"Federico De Faveri defaveri@gmail.com"

Constructor Summary
Atmosphere()
           
Atmosphere(Integer humidity, Float visibility, Float pressure, BarometricPressureState rising)
           
 
Method Summary
 Integer getHumidity()
          Returns the humidity, in percent.
 Float getPressure()
          Returns the barometric pressure, in the units specified by the pressure attribute of the units field in the Channel class.
 BarometricPressureState getRising()
          Returns the state of the barometric pressure.
 Float getVisibility()
          Returns the visibility, in the units specified by the distance attribute of the units field in the Channel class.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Atmosphere

public Atmosphere()

Atmosphere

public Atmosphere(Integer humidity,
                  Float visibility,
                  Float pressure,
                  BarometricPressureState rising)
Parameters:
humidity -
visibility -
pressure -
rising -
Method Detail

getHumidity

public Integer getHumidity()
Returns the humidity, in percent.

Returns:
the humidity

getVisibility

public Float getVisibility()
Returns the visibility, in the units specified by the distance attribute of the units field in the Channel class. Note that the visibility is specified as the actual value * 100. For example, a visibility of 16.5 miles will be specified as 1650. A visibility of 14 kilometers will appear as 1400.

Returns:
the visibility

getPressure

public Float getPressure()
Returns the barometric pressure, in the units specified by the pressure attribute of the units field in the Channel class.

Returns:
the pressure

getRising

public BarometricPressureState getRising()
Returns the state of the barometric pressure.

Returns:
the rising

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.