Package org.deltava.beans.wx
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
-
Method Summary
Modifier and TypeMethodDescriptioncacheKey()
Returns the cache key for this object.int
Returns the altitude of the location above MSL.int
Returns the jet stream wind direction.int
Returns the jet stream wind speed.double
Returns the latitude of this location.getLevel()
Returns the pressure level for this data.double
Returns the longitude of this location.int
int
hashCode()
void
setAltitude
(int alt) void
setJetStreamU
(float u) Sets the U wind component speed.void
setJetStreamV
(float v) Sets the V wind component speed.void
setTemperature
(int tmp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocation
Returns the altitude of the location above MSL.- Specified by:
getAltitude
in 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
-