Class Cyclone
java.lang.Object
org.deltava.beans.wx.Cyclone
- All Implemented Interfaces:
GeoLocation
A class to store cyclones and anti-cyclones.
- Since:
- 5.2
- Version:
- 5.2
- Author:
- Luke
-
Nested Class Summary
Nested Classes -
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 TypeMethodDescriptiondoubleReturns the latitude of this location.doubleReturns the longitude of this location.intReturns the central pressure.getType()Returns the type of pressure center.voidsetPressure(int mb) Sets the central pessure of the cyclone.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Cyclone
Creates the bean.- Parameters:
t- the cyclone typeloc- the GeoLocation
-
-
Method Details
-
getType
-
getPressure
public int getPressure()Returns the central pressure.- Returns:
- the pressure in millibars
-
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
-
setPressure
public void setPressure(int mb) Sets the central pessure of the cyclone.- Parameters:
mb- the pressure in millibars
-