Class Cyclone

java.lang.Object
org.deltava.beans.wx.Cyclone
All Implemented Interfaces:
GeoLocation

public class Cyclone extends Object implements GeoLocation
A class to store cyclones and anti-cyclones.
Since:
5.2
Version:
5.2
Author:
Luke
  • Constructor Details

    • Cyclone

      public Cyclone(Cyclone.Type t, GeoLocation loc)
      Creates the bean.
      Parameters:
      t - the cyclone type
      loc - the GeoLocation
  • Method Details

    • getType

      public Cyclone.Type getType()
      Returns the type of pressure center.
      Returns:
      the Type
    • getPressure

      public int getPressure()
      Returns the central pressure.
      Returns:
      the pressure in millibars
    • 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
    • setPressure

      public void setPressure(int mb)
      Sets the central pessure of the cyclone.
      Parameters:
      mb - the pressure in millibars