Class Gate
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.Gate
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, ComboAlias, GeoLocation, IconMapEntry, LabelMapEntry, MapEntry, MarkerMapEntry, UseCount, Cacheable
- Direct Known Subclasses:
SelectableGate
A bean to store airport Gate information.
- Since:
- 5.1
- Version:
- 12.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 TypeMethodDescriptionvoidMarks this gate as being used by an Airline.voidClears all Airlines associated with this Gate.intcompareTo(NavigationDataBean ndb2) Compares two objects by comparing their codes.booleanReturns what Airlines use this Gate.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.intReturns the gate number.Returns the gate type.intReturns the gate heading.intReturns the Google Earth icon code.Returns the icon color for this entry if displayed in a Google Map.Returns the text to display in this marker's infobox if displayed in a Google Map.getLabel()Returns the label text.intReturns the Google Earth palette code.Generates an ID for this Gate, unique for a particular AirportintReturns the number of times this object has been used.getZone()Returns whether this Gate is used for international flights or other special customs zones.booleanReturns whether a Gate serves a paticular Airline.inthashCode()voidsetHeading(int hdg) Updates the gate heading.voidUpdates the object's name.voidsetUseCount(int cnt) Updates the number of times this gate has been used.voidUpdates the customs zone used for this Gate.Methods inherited from class NavigationDataBean
cacheKey, clone, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setRegion, toStringModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.clone()static NavigationDataBeanCreats a bean from a unique ID that matches the ACARS dispatch client.static NavigationDataBeanCreates a bean from a type, latitude and longitude.Returns if this waypoint is on an Airway.getCode()Returns the object's code.protected StringHelper method to return the Latitude/Longitude for HTML infoboxes.protected StringHelper method to return the item type and code for HTML infoboxes.final doubleReturns the latitude of this location.final doubleReturns the longitude of this location.getName()Returns the object's name.final StringReturns the ICAO region code for this entry.final NavaidgetType()Returns the object's type.static CodeTypeisCoordinates(String code) Returns whether a waypoint code is actually encoded coordinates.booleanReturns whether this waypoint is part of a terminal route.voidUpdates if this entry is on an airway.voidUpdates the object's code.voidUpdates the ICAO region code for this entry.toString()Returns this navigation aid's unique ID in a format that matches the ACARS dispatch client.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
-
Gate
public Gate(double lat, double lon) Creates the bean.- Parameters:
lat- the latitude in degreeslon- the longitude in degrees
-
-
Method Details
-
getUniqueID
Generates an ID for this Gate, unique for a particular Airport- Returns:
- a unique ID
-
getHeading
public int getHeading()Returns the gate heading.- Returns:
- the heading in degrees
-
getGateType
-
getGateNumber
public int getGateNumber()Returns the gate number.- Returns:
- the gate number
-
getAirlines
Returns what Airlines use this Gate.- Returns:
- a Collection of Airline beans
-
getZone
Returns whether this Gate is used for international flights or other special customs zones.- Returns:
- a GateZone
-
getUseCount
public int getUseCount()Description copied from interface:UseCountReturns the number of times this object has been used.- Specified by:
getUseCountin interfaceUseCount- Returns:
- the number of uses
-
getLabel
Description copied from interface:LabelMapEntryReturns the label text.- Specified by:
getLabelin interfaceLabelMapEntry- Overrides:
getLabelin classNavigationDataBean- Returns:
- the label text
-
hasAirline
Returns whether a Gate serves a paticular Airline.- Parameters:
a- the Airline- Returns:
- TRUE if a is null or the Airline uses this Gate, otherwise FALSE
-
setUseCount
public void setUseCount(int cnt) Updates the number of times this gate has been used.- Parameters:
cnt- the number of flights
-
setHeading
public void setHeading(int hdg) Updates the gate heading.- Parameters:
hdg- the heading in degrees
-
setName
Description copied from class:NavigationDataBeanUpdates the object's name.- Overrides:
setNamein classNavigationDataBean- Parameters:
name- the name- See Also:
-
addAirline
Marks this gate as being used by an Airline.- Parameters:
a- the Airline bean
-
clearAirlines
public void clearAirlines()Clears all Airlines associated with this Gate. -
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColorin interfaceMarkerMapEntry- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntryReturns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBoxin interfaceMapEntry- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-
getPaletteCode
public int getPaletteCode()Description copied from interface:IconMapEntryReturns the Google Earth palette code.- Specified by:
getPaletteCodein interfaceIconMapEntry- Returns:
- the palette code
-
getIconCode
public int getIconCode()Description copied from interface:IconMapEntryReturns the Google Earth icon code.- Specified by:
getIconCodein interfaceIconMapEntry- Returns:
- the icon code within the palette
-
hashCode
public int hashCode()- Overrides:
hashCodein classNavigationDataBean
-
equals
- Overrides:
equalsin classNavigationDataBean
-