|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.faa.flyfaa.GDP
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 |
|
Field Detail |
java.lang.String Logf
private java.lang.String ARPT
private java.lang.String Facilities
private double AvgDelay
private java.lang.String Reason
private int distance
private java.lang.String DistanceAirports
Constructor Detail |
public GDP()
public GDP(java.lang.String ARPT, java.lang.String facs, double AvgDelay, java.lang.String Reason, int distance, java.lang.String DistanceAirports)
ARPT
- String containing the airport ID for this Ground Delay Programfacs
- String containing the facilities included in this Ground Delay ProgramAvgDelay
- double containing the average delay, in minutes, issued to affected flightsReason
- String containing the reason for this Ground Delay Programdistance
- int containing the distance (greater than zero for a distance-based GDP)DistanceAirports
- String containing the list of distance-based airportsMethod Detail |
public java.lang.String getARPT()
String
containing the Ground Delay Program's airport IDprotected void setARPT(java.lang.String id)
id
- String containing the airport ID for this Ground Delay Programpublic java.lang.String getFacilities()
String
containing the facilities included in this Ground Delay Programprotected void setFacilities(java.lang.String facs)
facs
- String containing the facilities to be included in this Ground Delay Programpublic double getAvgDelay()
double
containing the average delay, in minutes, issued to flights
affected by this Ground Delay Programprotected void setAvgDelay(double avg)
avg
- double containing the average delay, in minutes, issued to flights
affected by this Ground Delay Program.public java.lang.String getReason()
String
containing the reason for this Ground Delay Programprotected void setReason(java.lang.String r)
r
- String containing the reason for this Ground Delay Programpublic int getDistance()
int
containing the distance associated with this Ground Delay
Program. If this GDP is not distance-based, this method returns zero.protected void setDistance(int d)
d
- int containing the magnitude of the distance, in nautical miles, of a
distance-based Ground Delay Program.public boolean isDistanceBased()
boolean
indicating if the Ground Delay Program is distance-based.public java.lang.String getDistanceAirports()
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.protected void setDistanceAirports(java.lang.String airportlist)
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.public boolean isDistanceAirport(java.lang.String a)
a
- String representing the airport being checked to see if it is among those
in the list of distance-based airportsboolean
indicating if the given Airport is one of the distance-based
airports.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |