com.faa.flyfaa
Class GDP

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

public class GDP
extends java.lang.Object

Describes a Ground Delay Program object to store Delays by Destination data. The following SQL is used to generate these objects:

select arpt, included, reason, max, avg, ex_arpt, distance, dist_arpt from ois_program where active = 1 order by arpt

History: March 11, 2000 - Creation
May 15, 2001 - J. Carroll - Added exempt airports
May 21, 2002 - J. Carroll - Converted to a java class July 18, 2003 - J. Carroll - Added methods to support distance-based GDPs


Field Summary
private  java.lang.String ARPT
          Airport ID for which the Ground Delay Program has been issued.
private  double AvgDelay
          The average delay, in minutes, that has been issued to affected flights.
private  int distance
          The distance associated with a distance-based GDP.
private  java.lang.String DistanceAirports
          The list of airports associated by distance with a distance-based GDP.
private  java.lang.String Facilities
          Indicates which traffic is included in the program.
(package private)  java.lang.String Logf
          Identifies what the name of the log file is
private  java.lang.String Reason
          The reason that the Ground Delay Program had to be implemented.
 
Constructor Summary
GDP()
          GDP constructor method.
GDP(java.lang.String ARPT, java.lang.String facs, double AvgDelay, java.lang.String Reason, int distance, java.lang.String DistanceAirports)
          GDP constructor method with parameters.
 
Method Summary
 java.lang.String getARPT()
          Gets the Airport ID for this Ground Delay Program.
 double getAvgDelay()
          Gets the average delay, in minutes, issued to flights affected by this Ground Delay Program.
 int getDistance()
          Gets the distance associated with a distance-based GDP.
 java.lang.String getDistanceAirports()
          Gets the list of airports associated with a distance-based GDP.
 java.lang.String getFacilities()
          Gets the facilities included in this Ground Delay Program
 java.lang.String getReason()
          Gets the reason for this Ground Delay Program.
 boolean isDistanceAirport(java.lang.String a)
          Determines if a given Airport is in the list of airports associated with a distance-based GDP.
 boolean isDistanceBased()
          Determines if a GDP is distance-based or not.
protected  void setARPT(java.lang.String id)
          Sets the Airport ID for this Ground Delay Program.
protected  void setAvgDelay(double avg)
          Sets the average delay, in minutes, issued to flights affected by this Ground Delay Program.
protected  void setDistance(int d)
          Sets the distance associated with a distance-based GDP.
protected  void setDistanceAirports(java.lang.String airportlist)
          Sets the airports associated with a distance-based Ground Delay Program.
protected  void setFacilities(java.lang.String facs)
          Sets the facilities to be included in this Ground Delay Program.
protected  void setReason(java.lang.String r)
          Sets the reason for this Ground Delay Program.
 java.lang.String toString()
          Overrides the toString() method of Object.
 
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
Identifies what the name of the log file is

ARPT

private java.lang.String ARPT
Airport ID for which the Ground Delay Program has been issued.

Facilities

private java.lang.String Facilities
Indicates which traffic is included in the program. Traffic departing from airports under the jurisdiction of the listed facilities will be issued delay times.

AvgDelay

private double AvgDelay
The average delay, in minutes, that has been issued to affected flights.

Reason

private java.lang.String Reason
The reason that the Ground Delay Program had to be implemented.

distance

private int distance
The distance associated with a distance-based GDP.

DistanceAirports

private java.lang.String DistanceAirports
The list of airports associated by distance with a distance-based GDP.
Constructor Detail

GDP

public GDP()
GDP constructor method.

GDP

public GDP(java.lang.String ARPT,
           java.lang.String facs,
           double AvgDelay,
           java.lang.String Reason,
           int distance,
           java.lang.String DistanceAirports)
GDP constructor method with parameters.

Parameters:
ARPT - String containing the airport ID for this Ground Delay Program
facs - String containing the facilities included in this Ground Delay Program
AvgDelay - double containing the average delay, in minutes, issued to affected flights
Reason - String containing the reason for this Ground Delay Program
distance - int containing the distance (greater than zero for a distance-based GDP)
DistanceAirports - String containing the list of distance-based airports
Method Detail

getARPT

public java.lang.String getARPT()
Gets the Airport ID for this Ground Delay Program.

Returns:
String containing the Ground Delay Program's airport ID

setARPT

protected void setARPT(java.lang.String id)
Sets the Airport ID for this Ground Delay Program.

Parameters:
id - String containing the airport ID for this Ground Delay Program

getFacilities

public java.lang.String getFacilities()
Gets the facilities included in this Ground Delay Program

Returns:
String containing the facilities included in this Ground Delay Program

setFacilities

protected void setFacilities(java.lang.String facs)
Sets the facilities to be included in this Ground Delay Program.

Parameters:
facs - String containing the facilities to be included in this Ground Delay Program

getAvgDelay

public double getAvgDelay()
Gets the average delay, in minutes, issued to flights affected by this Ground Delay Program.

Returns:
double containing the average delay, in minutes, issued to flights affected by this Ground Delay Program

setAvgDelay

protected void setAvgDelay(double avg)
Sets the average delay, in minutes, issued to flights affected by this Ground Delay Program.

Parameters:
avg - double containing the average delay, in minutes, issued to flights affected by this Ground Delay Program.

getReason

public java.lang.String getReason()
Gets the reason for this Ground Delay Program.

Returns:
String containing the reason for this Ground Delay Program

setReason

protected void setReason(java.lang.String r)
Sets the reason for this Ground Delay Program.

Parameters:
r - String containing the reason for this Ground Delay Program

getDistance

public int getDistance()
Gets the distance associated with a distance-based GDP. Should be zero if the GDP is not a distance-based GDP.

Returns:
int containing the distance associated with this Ground Delay Program. If this GDP is not distance-based, this method returns zero.

setDistance

protected void setDistance(int d)
Sets the distance associated with a distance-based GDP.

Parameters:
d - int containing the magnitude of the distance, in nautical miles, of a distance-based Ground Delay Program.

isDistanceBased

public boolean isDistanceBased()
Determines if a GDP is distance-based or not.

Returns:
boolean indicating if the Ground Delay Program is distance-based.

getDistanceAirports

public java.lang.String getDistanceAirports()
Gets the list of airports associated with a distance-based GDP. Will be an empty string if the GDP is not a distance-based GDP.

Returns:
String containing the list of airports associated with this Ground Delay Program. If this GDP is not distance-based, this method returns an empty string.

setDistanceAirports

protected void setDistanceAirports(java.lang.String airportlist)
Sets the airports associated with a distance-based Ground Delay Program.

Parameters:
airportlist - String containing the list of airports which are within a certain distance of the affected airport. Set to an empty string for non-distance-based GDPs.

isDistanceAirport

public boolean isDistanceAirport(java.lang.String a)
Determines if a given Airport is in the list of airports associated with a distance-based GDP.

Parameters:
a - String representing the airport being checked to see if it is among those in the list of distance-based airports
Returns:
boolean indicating if the given Airport is one of the distance-based airports.

toString

public java.lang.String toString()
Overrides the toString() method of Object.

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