|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.schedule.Airport
public class Airport
A class for storing airport information.
| Field Summary | |
|---|---|
static Airport |
ALL
Special airport object for "All Airports" |
static String[] |
CODETYPES
Airport Code types. |
static int |
IATA
|
static int |
ICAO
|
| Fields inherited from interface org.deltava.beans.MapEntry |
|---|
BLUE, BROWN, COLORS, GREEN, GREY, LINECOLORS, ORANGE, PURPLE, RED, WHITE, YELLOW |
| Fields inherited from interface org.deltava.beans.GeoLocation |
|---|
DEGREE_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE |
| Constructor Summary | |
|---|---|
Airport(String name)
Create a new Airport object. |
|
Airport(String iata,
String icao,
String name)
Create a new Airport object. |
|
| Method Summary | |
|---|---|
void |
addAirlineCode(String aCode)
Adds an airline to the list of airlines associated with this Airport. |
int |
compareTo(Airport a2)
Sort the airports by comparing their IATA codes. |
boolean |
equals(Object o2)
Compares airports by ensuring that both the IATA and ICAO code are the same. |
boolean |
getADSE()
Returns whether this Airport has ADSE-X radar. |
Collection<String> |
getAirlineCodes()
Returns a list codes for the airlines associated with this Airport. |
int |
getAltitude()
Return this airport's altitude. |
String |
getComboAlias()
Returns the alias to use in the HTML <OPTION> element. |
String |
getComboName()
Returns the visible name to use in the HTML <OPTION> element. |
String |
getIATA()
Return this airprort's IATA Code. |
String |
getICAO()
Return this airport's ICAO Code. |
int |
getIconCode()
Returns the Google Earth icon code. |
String |
getIconColor()
Return the default Google Maps icon color. |
String |
getInfoBox()
Returns the default Google Maps infobox text. |
double |
getLatitude()
Return this airport's latitude. |
double |
getLongitude()
Return this airport's longitude. |
double |
getMagVar()
Returns this airport's magnetic variation. |
String |
getName()
Return this airport's name. |
int |
getPaletteCode()
Returns the Google Earth palette code. |
GeoPosition |
getPosition()
Returns this airport's latitude and longitude. |
String |
getRegion()
Returns the ICAO region containing this Airport. |
String |
getRowClassName()
Returns the CSS class for this object if rendered in a view table. |
TZInfo |
getTZ()
Returns this airport's time zone. |
boolean |
hasAirlineCode(String code)
Determines if a particular airline services this Airport. |
int |
hashCode()
Retrurns the hashcode of the IATA/ICAO values. |
boolean |
hasPosition()
Returns if the position of this Airport has been set. |
void |
removeAirlineCode(String aCode)
Removes an airline from the list of airlines associated with this Airport. |
void |
setADSE(boolean hasADSE)
Sets whether this airport has ADSE-X radar. |
void |
setAirlines(Collection<String> airlines)
Resets the list of Airlines associated with this Airport. |
void |
setAltitude(int alt)
Sets this Airport's altitude. |
void |
setIATA(String code)
Sets this Airport's IATA code. |
void |
setICAO(String code)
Sets this Airport's ICAO code. |
void |
setLocation(double lat,
double lng)
Sets this airport's location. |
void |
setMagVar(double mv)
Sets this airport's magnetic variation. |
void |
setName(String name)
Sets this airport's name. |
void |
setRegion(String code)
Sets this airport's ICAO region. |
void |
setTZ(String tzID)
Sets this airport's Time Zone. |
void |
setTZ(TZInfo tz)
Set this airport's Time Zone. |
String |
toString()
Displays the airport name and IATA code. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IATA
public static final int ICAO
public static final String[] CODETYPES
public static final Airport ALL
| Constructor Detail |
|---|
public Airport(String iata,
String icao,
String name)
iata - The airport's IATA codeicao - The airport's ICAO codename - The airport's name
NullPointerException - If the IATA or ICAO codes are nullpublic Airport(String name)
name - The airport name| Method Detail |
|---|
public void setLocation(double lat,
double lng)
lat - This airport's latitudelng - This airport's longitudepublic void setTZ(TZInfo tz)
tz - A Time Zone wrapper for the time zonegetTZ()public void setTZ(String tzID)
tzID - A valid JVM time zone IDpublic void setMagVar(double mv)
mv - the magnetic variation in degreespublic void setADSE(boolean hasADSE)
hasADSE - TRUE if ADSE-X present, otherwise FALSEpublic void setName(String name)
name - the airport namegetName()public void setICAO(String code)
code - the ICAO code
NullPointerException - if code is nullgetICAO()public void setIATA(String code)
code - the IATA code
NullPointerException - if code is nullgetIATA()public void setRegion(String code)
code - the region codegetRegion()public void setAltitude(int alt)
alt - the altitude in feet MSLgetAltitude()public String getIATA()
public String getICAO()
getICAO in interface ICAOAirportpublic String getName()
public int getAltitude()
getAltitude in interface GeospaceLocationpublic String getRegion()
public TZInfo getTZ()
public double getMagVar()
public GeoPosition getPosition()
public final double getLatitude()
getLatitude in interface GeoLocationGeoPosition.getLatitude()public final double getLongitude()
getLongitude in interface GeoLocationGeoPosition.getLongitude()public boolean getADSE()
setADSE(boolean)public int compareTo(Airport a2)
compareTo in interface Comparable<Airport>public String getComboAlias()
ComboAlias
getComboAlias in interface ComboAliaspublic String getComboName()
ComboAlias
getComboName in interface ComboAliaspublic void addAirlineCode(String aCode)
aCode - The airline code
NullPointerException - if aCode is nullremoveAirlineCode(String),
setAirlines(Collection),
Airline.getCode()public void removeAirlineCode(String aCode)
aCode - The airline code
NullPointerException - if aCode is nulladdAirlineCode(String),
setAirlines(Collection),
Airline.getCode()public void setAirlines(Collection<String> airlines)
airlines - a Collection of Airline codesaddAirlineCode(String),
getAirlineCodes()public Collection<String> getAirlineCodes()
Airline.getCode()public boolean hasAirlineCode(String code)
code - The airline code
Airline.getCode()public boolean hasPosition()
public String getIconColor()
getIconColor in interface MarkerMapEntrypublic int getPaletteCode()
getPaletteCode in interface IconMapEntrypublic int getIconCode()
getIconCode in interface IconMapEntrypublic String getInfoBox()
getInfoBox in interface MapEntrypublic boolean equals(Object o2)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic String getRowClassName()
ViewEntry
getRowClassName in interface ViewEntrypublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||