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 GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
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
-