support.Flight
Class AirportSpecs

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

public class AirportSpecs
extends java.lang.Object

Data bucket holding information about an airport.

Author:
Benoit Hudson (bh), Mark Handy (mdh), Keith Schmidt (kas)

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

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