Class TAF
java.lang.Object
org.deltava.beans.wx.WeatherDataBean
org.deltava.beans.wx.TAF
- All Implemented Interfaces:
Serializable, Comparable<WeatherDataBean>, GeoLocation, MapEntry, MarkerMapEntry, Cacheable
A bean to store Terminal Area Forecast data.
- Since:
- 2.2
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class WeatherDataBean
WeatherDataBean.TypeModifier and TypeClassDescriptionstatic enumAn enumeration to store valid weather data types. -
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.Fields inherited from interface MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, ORANGE, PURPLE, RED, WHITE, YELLOWModifier and TypeFieldDescriptionstatic final StringBlue Google Maps icon, displayed as $static/img/maps/point_blue.pngstatic final StringBrown Google Maps icon, displayed as $static/img/maps/point_brown.pngstatic final String[]All Google Maps icon colors.static final StringGreen Google Maps icon, displayed as $static/img/maps/point_green.pngstatic final StringGrey Google Maps icon, displayed as $static/img/maps/point_grey.pngstatic final StringOrange Google Maps icon, displayed as $static/img/maps/point_orange.pngstatic final StringPurple Google Maps icon, displayed as $static/img/maps/point_purple.pngstatic final StringRed Google Maps icon, displayed as $static/img/maps/point_red.pngstatic final StringWhite Google Maps icon, displayed as $static/img/maps/point_white.pngstatic final StringYellow Google Maps icon, displayed as $static/img/maps/point_yellow.png -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if this is a TAF amended since original issue.Returns the icon color for this entry if displayed in a Google Map.getType()Returns the data type.inthashCode()voidsetAmended(boolean isAmended) Sets whether this is a TAF amended since original issue.Methods inherited from class WeatherDataBean
cacheKey, compareTo, create, equals, getCode, getCreatedOn, getData, getDate, getInfoBox, getLatitude, getLongitude, getName, setAirport, setAirport, setData, setDate, toStringModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intCompares two beans by comparing their effectve dates, creation dates and data types.static WeatherDataBeanCreates an arbitrary weather bean type.booleangetCode()Returns the observation station code.Returns the creation date of this weather object.getData()Returns the weather data.getDate()Returns the effective date of this weather data.Returns the text to display in this marker's infobox if displayed in a Google Map.doubleReturns the latitude of this observation.doubleReturns the longitude of this observation.getName()Returns the observation station name.voidSets the geographic location of this Observation station.voidSets the geographic location of this Observation station.voidUpdates the weather data.voidSets the effective date of this weather data.toString()Methods 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
-
TAF
public TAF()
-
-
Method Details
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Returns:
- the icon color
-
getType
Description copied from class:WeatherDataBeanReturns the data type.- Specified by:
getTypein classWeatherDataBean- Returns:
- the data type
-
hashCode
public int hashCode()- Overrides:
hashCodein classWeatherDataBean
-
getAmended
public boolean getAmended()Returns if this is a TAF amended since original issue.- Returns:
- TRUE if amended, otherwise FALSE
-
setAmended
public void setAmended(boolean isAmended) Sets whether this is a TAF amended since original issue.- Parameters:
isAmended- TRUE if amended, otherwise FALSE
-