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
,MapEntry
,MarkerMapEntry
,UseCount
,Cacheable
- Direct Known Subclasses:
SelectableGate
A bean to store airport Gate information.
- Since:
- 5.1
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
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 TypeMethodDescriptionvoid
Marks this gate as being used by an Airline.void
Clears all Airlines associated with this Gate.int
compareTo
(NavigationDataBean ndb2) Compares two objects by comparing their codes.boolean
Returns 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.int
Returns the gate number.Returns the gate type.int
Returns the gate heading.int
Returns 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.int
Returns the Google Earth palette code.Generates an ID for this Gate, unique for a particular Airportint
Returns the number of times this object has been used.getZone()
Returns whether this Gate is used for international flights or other special customs zones.boolean
Returns whether a Gate serves a paticular Airline.int
hashCode()
void
setHeading
(int hdg) Updates the gate heading.void
Updates the object's name.void
setUseCount
(int cnt) Updates the number of times this gate has been used.void
Updates the customs zone used for this Gate.Methods inherited from class org.deltava.beans.navdata.NavigationDataBean
cacheKey, clone, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getPosition, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setRegion, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
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:UseCount
Returns the number of times this object has been used.- Specified by:
getUseCount
in interfaceUseCount
- Returns:
- the number of uses
-
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:NavigationDataBean
Updates the object's name.- Overrides:
setName
in 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:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getIconColor
Description copied from interface:MarkerMapEntry
Returns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColor
in interfaceMarkerMapEntry
- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntry
Returns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBox
in interfaceMapEntry
- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-
getPaletteCode
public int getPaletteCode()Description copied from interface:IconMapEntry
Returns the Google Earth palette code.- Specified by:
getPaletteCode
in interfaceIconMapEntry
- Returns:
- the palette code
-
getIconCode
public int getIconCode()Description copied from interface:IconMapEntry
Returns the Google Earth icon code.- Specified by:
getIconCode
in interfaceIconMapEntry
- Returns:
- the icon code within the palette
-
hashCode
public int hashCode()- Overrides:
hashCode
in classNavigationDataBean
-
equals
- Overrides:
equals
in classNavigationDataBean
-