Class WindData

java.lang.Object
org.deltava.beans.wx.WindData
All Implemented Interfaces:
Serializable, GeoLocation, GeospaceLocation, Cacheable

public class WindData extends Object implements GeospaceLocation, Cacheable
A bean to store GFS winds aloft and tropopause data.
Since:
5.2
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • WindData

      public WindData(PressureLevel lvl, double lat, double lng)
      Creates the bean.
      Parameters:
      lvl - the PressureLevel
      lat - the latitude
      lng - the longitude
  • Method Details

    • getLatitude

      public double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      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 interface GeospaceLocation
      Returns:
      the altitude in feet
    • getLevel

      public PressureLevel getLevel()
      Returns the pressure level for this data.
      Returns:
      a PressureLevel
    • 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

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object