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 TypeMethodDescriptiondouble
Returns the latitude of this location.double
Returns the longitude of this location.int
Returns the central pressure.getType()
Returns the type of pressure center.void
setPressure
(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, wait
Methods 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: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
-
setPressure
public void setPressure(int mb) Sets the central pessure of the cyclone.- Parameters:
mb
- the pressure in millibars
-