|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.faa.flyfaa.Airport
Describes a flyFAA Airport object, containing many of the particulars about an airport, including the airport full name, city and state, facility (ARTCC) to which it belongs, as well as Time Zone offset from Eastern time (e.g., Pacific Time = -3), and boolean indication of whether or not daylight savings time is used.
Field Summary | |
private java.lang.String |
Center
Contains the Air Route Traffic Control Center (ARTCC) to which this Airport belongs |
private java.lang.String |
City
Contains the name of the City served by this Airport |
private java.lang.String |
Color
Contains the name of the image to use to represent this Airport's colored dot on the map (green.gif, yellow.gif, etc.) |
private boolean |
Daylight_Savings_Flag
Indicates whether or not this Airport uses Daylight Savings Time |
(package private) java.lang.String |
Logf
Pointer to the log file, which will be named FLYlogyyyy_Monddhhmm.txt (for example, FLYlog2003_Jan291940.txt) and is currently set up to reside in the /web/trace/atcscc/java_logs directory. |
private java.lang.String |
Longname
Contains the Airport's descriptive long name |
private java.lang.String |
Name
Contains the 3- or possibly 4-character Name of an Airport |
private boolean |
Pacing_Flag
Indicates whether or not this Airport is a pacing airport (a major airport) |
private int |
R
Contains the radius of the circular region where this Airport's colored dot appears |
private int |
RegX
Contains this Airport's X coordinate on the regional map |
private int |
RegY
Contains this Airport's Y coordinate on the regional map |
private java.lang.String |
State
Contains the two-character abbreviation of this Airport's state |
private java.lang.String |
Tooltip
Contains the HTML text which pops up when your mouse hovers over this Airport |
private double |
TZ_Offset
Contains the number of hours this Airport's time zone is offset from GMT |
private int |
X
Contains this Airport's X-axis coordinate on the U.S. |
private int |
Y
Contains this Airport's Y-axis coordinate on the U.S. |
Constructor Summary | |
Airport()
Airport constructor method. |
|
Airport(java.lang.String Name)
Airport constructor method with a parameter for the Airport name only. |
|
Airport(java.lang.String Name,
java.lang.String Longname,
java.lang.String Center,
java.lang.String City,
java.lang.String State,
double TZ_Offset,
java.lang.String Tooltip,
boolean Daylight_Savings_Flag,
boolean Pacing_Flag,
java.lang.String Color)
Airport constructor method with parameters for Airport characteristics. |
Method Summary | |
java.lang.String |
getCenter()
Gets the Airport's Center (ARTCC). |
java.lang.String |
getCity()
Gets the Airport's City. |
java.lang.String |
getColor()
Gets the Airport's Color property. |
java.lang.String |
getColorOnly()
Gets the Airport's Color word (excluding the '.gif' part) |
boolean |
getDaylight_Savings_Flag()
Gets the Airport's Daylight Savings Flag. |
java.lang.String |
getLongName()
Gets the Airport's long name. |
java.lang.String |
getName()
Gets the Airport's short name. |
boolean |
getPacing_Flag()
Gets the Airport's Pacing Flag. |
int |
getR()
Gets the Airport's R property (the radius of the circular area where the airport's color appears) |
int |
getRegX()
Gets the Airport's Regx property (X coordinate on the regional map). |
int |
getRegY()
Gets the Airport's RegY property (Y coordinate on the regional map). |
java.lang.String |
getState()
Gets the Airport's State. |
java.lang.String |
getTooltip()
Gets the Airport's Tooltip. |
double |
getTZ_Offset()
Gets the Airport's Time Zone Offset. |
int |
getX()
Gets the Airport's X property (X coordinate on the U.S. |
int |
getY()
Gets the Airport's Y property (Y coordinate on the U.S. |
protected void |
setCenter(java.lang.String ARTCC)
Sets the Airport's Center. |
protected void |
setCity(java.lang.String CityName)
Sets the Airport's City. |
protected void |
setColor(java.lang.String color)
Sets the Airport's Color property. |
void |
setCoordinates(Airport item,
int x,
int y,
int r,
int Regx,
int Regy,
java.lang.String Color)
Sets the Airport's X, Y, R, Regional X, Regional Y and Color properties. |
protected void |
setDaylight_Savings_Flag(boolean dsf)
Sets the Airport's Daylight Savings Flag. |
protected void |
setLongName(java.lang.String longname)
Sets the Airport's long name. |
protected void |
setName(java.lang.String id)
Sets the Airport's short name. |
protected void |
setPacing_Flag(boolean pacing)
Sets the Airport's Pacing Flag. |
protected void |
setR(int r)
Sets the Airport's R property (the radius of the circular area where the airport's color appears) |
protected void |
setRegX(int regx)
Sets the Airport's RegX property (its X coordinate on the regional map). |
protected void |
setRegY(int regy)
Sets the Airport's RegY property (its Y coordinate on the regional map). |
protected void |
setState(java.lang.String st)
Sets the Airport's State. |
protected void |
setTooltip(java.lang.String ttt)
Sets the Airport's Tooltip text. |
protected void |
setTZ_Offset(double tzo)
Sets the Airport's Time Zone Offset. |
protected void |
setX(int x)
Sets the Airport's X property (its X coordinate on the U.S. |
protected void |
setY(int y)
Sets the Airport's Y property (its Y coordinate on the U.S. |
java.lang.String |
toString()
Override the default toString method. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String Logf
private java.lang.String Name
private java.lang.String Longname
private java.lang.String Center
private java.lang.String City
private java.lang.String State
private java.lang.String Tooltip
private java.lang.String Color
private double TZ_Offset
private boolean Daylight_Savings_Flag
private boolean Pacing_Flag
private int X
private int Y
private int R
private int RegX
private int RegY
Constructor Detail |
public Airport()
public Airport(java.lang.String Name, java.lang.String Longname, java.lang.String Center, java.lang.String City, java.lang.String State, double TZ_Offset, java.lang.String Tooltip, boolean Daylight_Savings_Flag, boolean Pacing_Flag, java.lang.String Color)
Name
- String containing the Airport's 3 (or possibly 4)-character identifierLongname
- String containing the Airport's descriptive long nameCenter
- String containing the ARTCC that the Airport is inCity
- String containing the name of the city the airport servicesState
- String containing the two-character state abbreviationTZ_Offset
- double containing the number of hours the airport's time zone is
offset from GMTTooltip
- String containing the HTML text which pops up when your mouse hovers
over this airportDaylight_Savings_Flag
- boolean indication of whether or not this airport
uses daylight savings timePacing_Flag
- boolean indication of whether this airport is a major airport
(sometimes referred to as a pacing airport)Color
- String containing the name of the graphic to use to represent this
airport's colored dot on the map (green.gif, yellow.gif, etc.)public Airport(java.lang.String Name)
Name
- String containing the Airport's 3 (or possibly 4)-character identifierMethod Detail |
public java.lang.String getName()
String
containing the Airport's 3-character short nameprotected void setName(java.lang.String id)
id
- String containing the 3 (possibly 4)-character short name for this airportpublic java.lang.String getLongName()
String
containing the Airport's descriptive long nameprotected void setLongName(java.lang.String longname)
longname
- String containing the descriptive long name to use for this Airportpublic java.lang.String getCenter()
String
containing the Airport's ARTCCprotected void setCenter(java.lang.String ARTCC)
ARTCC
- String containing the name of the ARTCC this airport is inpublic java.lang.String getCity()
String
containing the name of the city this airport servicesprotected void setCity(java.lang.String CityName)
CityName
- String containing the name of the city this airport servicespublic java.lang.String getState()
String
containing the name of the state this airport's city is inprotected void setState(java.lang.String st)
st
- String containing the abbreviation of the state that this airport's city is inpublic double getTZ_Offset()
double
containing the number of hours to add to GMT to get local
time for this airport (in Standard Time)protected void setTZ_Offset(double tzo)
tzo
- double containing the number of hours to add to GMT to get local
time for this airport (in Standard Time)public java.lang.String getTooltip()
String
containing the HTML text of the pop-up tooltipprotected void setTooltip(java.lang.String ttt)
ttt
- String containing the tooltip text for this airportpublic boolean getDaylight_Savings_Flag()
true
if this airport uses Daylight Savings Time, otherwise
false
protected void setDaylight_Savings_Flag(boolean dsf)
dsf
- boolean containing the indication of whether or not this airport
uses Daylight Savings Timepublic boolean getPacing_Flag()
true
if this airport is a major ("pacing") airport, otherwise
false
protected void setPacing_Flag(boolean pacing)
pacing
- boolean containing the indication of whether or not this airport
is a major ("pacing") airportpublic java.lang.String getColor()
String
containing the name of the .gif used to display this
airport's colored dot on the map (green.gif, yellow.gif, red.gif, orange.gif or blue.gif)public java.lang.String getColorOnly()
String
containing the name of the color word in the name of
the .gif file used to display this airport's colored dot on the map (will return 'green',
'yellow', 'red', 'orange' or 'blue')protected void setColor(java.lang.String color)
color
- String containing the name of the .gif file used to display this
airport's colored dot on the mappublic void setCoordinates(Airport item, int x, int y, int r, int Regx, int Regy, java.lang.String Color)
item
- Airport object whose coordinates are to be setx
- Airport's X-coordinate on the U.S. mapy
- Airport's Y-coordinate on the U.S. mapr
- Airport's radius in pixels (this has dubious utility)Regx
- Airport's X-coordinate on its regional mapRegy
- Airport's Y-coordinate on its regional mapColor
- String containing the name of the .gif file used to display this
airport's colored dot on the mappublic int getX()
int
containing the value of the X coordinate of this airport
on the U.S. mapprotected void setX(int x)
x
- int containing the value of this airport's X coordinate on the U.S. mappublic int getY()
int
containing the value of the Y coordinate of this airport
on the U.S. mapprotected void setY(int y)
y
- int containing the value of this airport's Y coordinate on the U.S. mappublic int getR()
int
containing the value of the radius of the airport's color circleprotected void setR(int r)
r
- int containing the value of the radius of the airport's color circlepublic int getRegX()
int
containing the value of the X coordinate of this airport
on the regional mapprotected void setRegX(int regx)
regx
- int containing the value of this airport's X coordinate on the regional mappublic int getRegY()
int
containing the value of the RegY coordinate of this airport
on the regional mapprotected void setRegY(int regy)
regy
- int containing the value of this airport's Y coordinate on the regional mappublic java.lang.String toString()
toString
in class java.lang.Object
String
String representation of this Airport object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |