Class WindData
java.lang.Object
org.deltava.beans.wx.WindData
- All Implemented Interfaces:
Serializable,GeoLocation,GeospaceLocation,Cacheable
A bean to store GFS winds aloft and tropopause data.
- Since:
- 5.2
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intReturns the altitude of the location above MSL.intReturns the jet stream wind direction.intReturns the jet stream wind speed.doubleReturns the latitude of this location.getLevel()Returns the pressure level for this data.doubleReturns the longitude of this location.intinthashCode()voidsetAltitude(int alt) voidsetJetStreamU(float u) Sets the U wind component speed.voidsetJetStreamV(float v) Sets the V wind component speed.voidsetTemperature(int tmp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
WindData
Creates the bean.- Parameters:
lvl- the PressureLevellat- the latitudelng- the longitude
-
-
Method Details
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocationReturns the altitude of the location above MSL.- Specified by:
getAltitudein interfaceGeospaceLocation- Returns:
- the altitude in feet
-
getLevel
-
getTemperature
public int getTemperature() -
getJetStreamSpeed
public int getJetStreamSpeed()Returns the jet stream wind speed.- Returns:
- the speed in knots
-
getJetStreamDirection
public int getJetStreamDirection()Returns the jet stream wind direction.- Returns:
- the direction in degrees
-
setJetStreamU
public void setJetStreamU(float u) Sets the U wind component speed.- Parameters:
u- the speed in m/s
-
setJetStreamV
public void setJetStreamV(float v) Sets the V wind component speed.- Parameters:
v- the speed in m/s
-
setAltitude
public void setAltitude(int alt) -
setTemperature
public void setTemperature(int tmp) -
cacheKey
-
hashCode
-