com.faa.flyfaa
Class Airport

java.lang.Object
  |
  +--com.faa.flyfaa.Airport

public class Airport
extends java.lang.Object

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

Logf

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.

Name

private java.lang.String Name
Contains the 3- or possibly 4-character Name of an Airport

Longname

private java.lang.String Longname
Contains the Airport's descriptive long name

Center

private java.lang.String Center
Contains the Air Route Traffic Control Center (ARTCC) to which this Airport belongs

City

private java.lang.String City
Contains the name of the City served by this Airport

State

private java.lang.String State
Contains the two-character abbreviation of this Airport's state

Tooltip

private java.lang.String Tooltip
Contains the HTML text which pops up when your mouse hovers over this Airport

Color

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.)

TZ_Offset

private double TZ_Offset
Contains the number of hours this Airport's time zone is offset from GMT

Daylight_Savings_Flag

private boolean Daylight_Savings_Flag
Indicates whether or not this Airport uses Daylight Savings Time

Pacing_Flag

private boolean Pacing_Flag
Indicates whether or not this Airport is a pacing airport (a major airport)

X

private int X
Contains this Airport's X-axis coordinate on the U.S. map

Y

private int Y
Contains this Airport's Y-axis coordinate on the U.S. map

R

private int R
Contains the radius of the circular region where this Airport's colored dot appears

RegX

private int RegX
Contains this Airport's X coordinate on the regional map

RegY

private int RegY
Contains this Airport's Y coordinate on the regional map
Constructor Detail

Airport

public Airport()
Airport constructor method.

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)
Airport constructor method with parameters for Airport characteristics.

Parameters:
Name - String containing the Airport's 3 (or possibly 4)-character identifier
Longname - String containing the Airport's descriptive long name
Center - String containing the ARTCC that the Airport is in
City - String containing the name of the city the airport services
State - String containing the two-character state abbreviation
TZ_Offset - double containing the number of hours the airport's time zone is offset from GMT
Tooltip - String containing the HTML text which pops up when your mouse hovers over this airport
Daylight_Savings_Flag - boolean indication of whether or not this airport uses daylight savings time
Pacing_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.)

Airport

public Airport(java.lang.String Name)
Airport constructor method with a parameter for the Airport name only. To distinguish this Airport from other, known airports, the long name is set to "Unknown Airport", the Center is set to "ZXX", the City is set to "Unknown City", and so on. Attempts to reference coordinates of this airport should be avoided.

Parameters:
Name - String containing the Airport's 3 (or possibly 4)-character identifier
Method Detail

getName

public java.lang.String getName()
Gets the Airport's short name.

Returns:
String containing the Airport's 3-character short name

setName

protected void setName(java.lang.String id)
Sets the Airport's short name.

Parameters:
id - String containing the 3 (possibly 4)-character short name for this airport

getLongName

public java.lang.String getLongName()
Gets the Airport's long name.

Returns:
String containing the Airport's descriptive long name

setLongName

protected void setLongName(java.lang.String longname)
Sets the Airport's long name.

Parameters:
longname - String containing the descriptive long name to use for this Airport

getCenter

public java.lang.String getCenter()
Gets the Airport's Center (ARTCC).

Returns:
String containing the Airport's ARTCC

setCenter

protected void setCenter(java.lang.String ARTCC)
Sets the Airport's Center.

Parameters:
ARTCC - String containing the name of the ARTCC this airport is in

getCity

public java.lang.String getCity()
Gets the Airport's City.

Returns:
String containing the name of the city this airport services

setCity

protected void setCity(java.lang.String CityName)
Sets the Airport's City.

Parameters:
CityName - String containing the name of the city this airport services

getState

public java.lang.String getState()
Gets the Airport's State.

Returns:
String containing the name of the state this airport's city is in

setState

protected void setState(java.lang.String st)
Sets the Airport's State.

Parameters:
st - String containing the abbreviation of the state that this airport's city is in

getTZ_Offset

public double getTZ_Offset()
Gets the Airport's Time Zone Offset.

Returns:
double containing the number of hours to add to GMT to get local time for this airport (in Standard Time)

setTZ_Offset

protected void setTZ_Offset(double tzo)
Sets the Airport's Time Zone Offset.

Parameters:
tzo - double containing the number of hours to add to GMT to get local time for this airport (in Standard Time)

getTooltip

public java.lang.String getTooltip()
Gets the Airport's Tooltip.

Returns:
String containing the HTML text of the pop-up tooltip

setTooltip

protected void setTooltip(java.lang.String ttt)
Sets the Airport's Tooltip text.

Parameters:
ttt - String containing the tooltip text for this airport

getDaylight_Savings_Flag

public boolean getDaylight_Savings_Flag()
Gets the Airport's Daylight Savings Flag.

Returns:
true if this airport uses Daylight Savings Time, otherwise false

setDaylight_Savings_Flag

protected void setDaylight_Savings_Flag(boolean dsf)
Sets the Airport's Daylight Savings Flag.

Parameters:
dsf - boolean containing the indication of whether or not this airport uses Daylight Savings Time

getPacing_Flag

public boolean getPacing_Flag()
Gets the Airport's Pacing Flag.

Returns:
true if this airport is a major ("pacing") airport, otherwise false

setPacing_Flag

protected void setPacing_Flag(boolean pacing)
Sets the Airport's Pacing Flag.

Parameters:
pacing - boolean containing the indication of whether or not this airport is a major ("pacing") airport

getColor

public java.lang.String getColor()
Gets the Airport's Color property.

Returns:
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)

getColorOnly

public java.lang.String getColorOnly()
Gets the Airport's Color word (excluding the '.gif' part)

Returns:
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')

setColor

protected void setColor(java.lang.String color)
Sets the Airport's Color property.

Parameters:
color - String containing the name of the .gif file used to display this airport's colored dot on the map

setCoordinates

public 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.

Parameters:
item - Airport object whose coordinates are to be set
x - Airport's X-coordinate on the U.S. map
y - Airport's Y-coordinate on the U.S. map
r - Airport's radius in pixels (this has dubious utility)
Regx - Airport's X-coordinate on its regional map
Regy - Airport's Y-coordinate on its regional map
Color - String containing the name of the .gif file used to display this airport's colored dot on the map

getX

public int getX()
Gets the Airport's X property (X coordinate on the U.S. map).

Returns:
int containing the value of the X coordinate of this airport on the U.S. map

setX

protected void setX(int x)
Sets the Airport's X property (its X coordinate on the U.S. map).

Parameters:
x - int containing the value of this airport's X coordinate on the U.S. map

getY

public int getY()
Gets the Airport's Y property (Y coordinate on the U.S. map).

Returns:
int containing the value of the Y coordinate of this airport on the U.S. map

setY

protected void setY(int y)
Sets the Airport's Y property (its Y coordinate on the U.S. map).

Parameters:
y - int containing the value of this airport's Y coordinate on the U.S. map

getR

public int getR()
Gets the Airport's R property (the radius of the circular area where the airport's color appears)

Returns:
int containing the value of the radius of the airport's color circle

setR

protected void setR(int r)
Sets the Airport's R property (the radius of the circular area where the airport's color appears)

Parameters:
r - int containing the value of the radius of the airport's color circle

getRegX

public int getRegX()
Gets the Airport's Regx property (X coordinate on the regional map).

Returns:
int containing the value of the X coordinate of this airport on the regional map

setRegX

protected void setRegX(int regx)
Sets the Airport's RegX property (its X coordinate on the regional map).

Parameters:
regx - int containing the value of this airport's X coordinate on the regional map

getRegY

public int getRegY()
Gets the Airport's RegY property (Y coordinate on the regional map).

Returns:
int containing the value of the RegY coordinate of this airport on the regional map

setRegY

protected void setRegY(int regy)
Sets the Airport's RegY property (its Y coordinate on the regional map).

Parameters:
regy - int containing the value of this airport's Y coordinate on the regional map

toString

public java.lang.String toString()
Override the default toString method.

Overrides:
toString in class java.lang.Object
Returns:
String String representation of this Airport object