public class Atmosphere extends Object implements Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Atmosphere.PressureChange |
| Constructor and Description |
|---|
Atmosphere()
Simple constructor.
|
Atmosphere(int humidity,
double visibility,
double pressure,
Atmosphere.PressureChange change) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(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
|
String |
toString() |
public Atmosphere()
public Atmosphere(int humidity,
double visibility,
double pressure,
Atmosphere.PressureChange change)
humidity - humidity, in percentvisibility - visibility distance (value beyond 1/100ths of a unit will be truncated)pressure - barometric pressurechange - state of the barometric pressurepublic int getHumidity()
public void setHumidity(int humidity)
humidity - humidity, in percentpublic double getVisibility()
public void setVisibility(double visibility)
visibility - distance (value beyond 1/100ths of a unit will be truncated)public double getPressure()
public void setPressure(double pressure)
pressure - pressurepublic Atmosphere.PressureChange getChange()
public void setChange(Atmosphere.PressureChange change)
change - PressureChange objectCopyright © 2021. All rights reserved.