Class FIR
java.lang.Object
org.deltava.beans.navdata.Airspace
org.deltava.beans.navdata.FIR
- All Implemented Interfaces:
Serializable, Comparable<Airspace>, GeoLocation, GeospaceLocation, MapEntry, Cacheable
A bean to store data about a Flight Information Region or ARTCC.
- Since:
- 3.2
- Version:
- 7.3
- Author:
- Luke
- See Also:
-
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 TypeMethodDescriptionvoidAdds an alias for this FIR.cacheKey()Returns the cache key for this object.Returns the aliases of this FIR.inthashCode()booleanisAux()Returns if this is an Auxilliary sector.booleanReturns if this is an Oceanic sector.voidsetAux(boolean isAux) Sets whether this is an Auxilliary sector.voidsetOceanic(boolean isOceanic) Sets whether this is an Oceanic sector.toString()Methods inherited from class Airspace
addBorderPoint, compareTo, contains, equals, findRestricted, getAltitude, getBorder, getCountry, getID, getInfoBox, getLatitude, getLongitude, getMaxAltitude, getMinAltitude, getName, getType, init, isExclusion, isRestricted, setBorder, setCountry, setExclusion, setMaxAltitude, setMinAltitude, setNameModifier and TypeMethodDescriptionvoidAdds a point to the airspace boundary.intCompares two Airspaces by comparing their types and IDs.booleancontains(GeospaceLocation loc) Returns whether a point is contained within this Airspace.booleanstatic Collection<Airspace> findRestricted(GeoLocation loc, int distance) Returns whether any restricted airspace is within a set distance of a point.intReturns the altitude of the location above MSL.Returns the coordinates of the FIR boundary.Returns the nation containing this Airspace.getID()Returns the Airspace ID.Returns the text to display in this marker's infobox if displayed in a Google Map.doubleReturns the latitude of this location.doubleReturns the longitude of this location.intReturns the maximum altitude of this airspace.intReturns the minimum altitude of this airspace.getName()Returns the Airspace name.getType()Returns the Airspace type.static voidinit(Collection<Airspace> data) Initializes restricted airspace.booleanReturns whether this is an exclusion zone of an existing Airspace.static AirspaceReturns whether a particular point is in restricted airspace.voidsetBorder(Collection<GeoLocation> locs) Sets the airspace boundary.voidSets the nation containing this Airspace.voidsetExclusion(boolean isExclusion) Sets whether this is an exclusion zone of an existing Airspace.voidsetMaxAltitude(int alt) Sets the maximum altitude of the Airspace.voidsetMinAltitude(int alt) Sets the minimum altitude of the Airspace.voidSets the Airspace name.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
-
FIR
-
-
Method Details
-
isOceanic
public boolean isOceanic()Returns if this is an Oceanic sector.- Returns:
- TRUE if Oceanic, otherwise FALSE
- See Also:
-
isAux
public boolean isAux()Returns if this is an Auxilliary sector.- Returns:
- TRUE if Auxilliary, otherwise FALSE
- See Also:
-
getAliases
Returns the aliases of this FIR.- Returns:
- a Collection of aliases
- See Also:
-
setAux
public void setAux(boolean isAux) Sets whether this is an Auxilliary sector.- Parameters:
isAux- TRUE if auxilliary, otherwise FALSE- See Also:
-
setOceanic
public void setOceanic(boolean isOceanic) Sets whether this is an Oceanic sector.- Parameters:
isOceanic- TRUE if oceanic, otherwise FALSE- See Also:
-
addAlias
Adds an alias for this FIR.- Parameters:
code- the alias- Throws:
NullPointerException- if code is null- See Also:
-
toString
-
hashCode
-
cacheKey
-