support.Flight
Class AirportSpecs

java.lang.Object
  |
  +--support.Flight.AirportSpecs

public class AirportSpecs
extends java.lang.Object

Data bucket holding information about an airport.


Field Summary
private static int CODE
           
private  java.lang.String code_
           
private static int CODEEND
           
private static int GMT
           
private static int GMTEND
           
private  int gmtOff_
           
private static int NAME
           
private  java.lang.String name_
           
private static int X
           
private  int x_
           
private static int XEND
           
private static int Y
           
private  int y_
           
private static int YEND
           
 
Constructor Summary
(package private) AirportSpecs(java.lang.String bar)
          #Fields: # 3 - Airport abbreviation # 1 - # 5 - Time Offset (from GMT) # 1 - # 3 - X coordinate on map # 1 - # 3 - Y coordinate on map # 1 - # remainder - Name of City/Airport i.e.
 
Method Summary
 java.lang.String code()
           
 int GMToffset()
          The GMT offset is the number of minutes to be added to transform from Greenwich Mean Time to local airport time.
 java.lang.String name()
           
 java.lang.String timeZone()
           
 java.lang.String toString()
          Gives a string in a format useful for debugging.
 int x()
           
 int y()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

code_

private java.lang.String code_

name_

private java.lang.String name_

gmtOff_

private int gmtOff_

x_

private int x_

y_

private int y_

CODE

private static int CODE

CODEEND

private static int CODEEND

GMT

private static int GMT

GMTEND

private static int GMTEND

X

private static int X

XEND

private static int XEND

Y

private static int Y

YEND

private static int YEND

NAME

private static int NAME
Constructor Detail

AirportSpecs

AirportSpecs(java.lang.String bar)
#Fields: # 3 - Airport abbreviation # 1 - # 5 - Time Offset (from GMT) # 1 - # 3 - X coordinate on map # 1 - # 3 - Y coordinate on map # 1 - # remainder - Name of City/Airport i.e. ABQ -0800 195 275 Albuquerque, New Mexico
Method Detail

code

public java.lang.String code()
Returns:
the 3-letter code of the airport (PVD, etc)

name

public java.lang.String name()
Returns:
the full name of the airport (Providence T.F. Green, etc)

GMToffset

public int GMToffset()
The GMT offset is the number of minutes to be added to transform from Greenwich Mean Time to local airport time. In the United States, this number is negative. To transform local airport time to GMT, you need to subtract the offset, which means subtracting a negative number.

x

public int x()
Returns:
the x position (in pixels) of the airport on the map

y

public int y()
Returns:
the y position (in pixels) of the airport on the map

timeZone

public java.lang.String timeZone()
Returns:
the time zone, in hhmm format (i.e. -500)

toString

public java.lang.String toString()
Gives a string in a format useful for debugging. (If you have an AirportSpecs a, you can just System.err.println(a).)
Returns:
A string corresponding to the airport.
Overrides:
toString in class java.lang.Object