com.faa.flyfaa
Class Delay

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

public class Delay
extends java.lang.Object

Describes a Delay object, representing an airport which is experiencing delays. The object contains the airport id, the amount of arrival delays in minutes, the amount of departure delays in minutes, and the reason. The DelayRecords array is filled with Delay objects by the setDelayRecords function using the following SQL:

select arpt, ad, dd, reason from ois_delay where active = 1 order by arpt

These objects are used by the dynamic maps to generate tooltips and by the text-only pages to report the delay information.


Field Summary
private  int AD
          Amount of arrival delay in minutes
private  java.lang.String ARPT
          Airport ID where this delay is being experienced
private  int DD
          Amount of departure delay in minutes
private  java.lang.String reason
          Reason for the delay
 
Constructor Summary
Delay()
          Delay constructor method.
Delay(java.lang.String ARPT, int nAD, int nDD, java.lang.String strReason)
          Delay constructor method with parameters.
 
Method Summary
 int getAD()
          Gets the Arrival Delay for this delay.
 java.lang.String getARPT()
          Gets the Airport ID for this delay.
 int getDD()
          Gets the Departure Delay for this delay.
 java.lang.String getReason()
          Gets the reason for this delay.
protected  void setAD(int ad)
          Sets the Arrival Delay for this delay.
protected  void setARPT(java.lang.String id)
          Sets the Airport ID for this delay.
protected  void setDD(int dd)
          Sets the Departure Delay for this delay.
protected  void setReason(java.lang.String reason)
          Sets the reason for this delay.
 java.lang.String toString()
          Gets the string representation of this delay.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ARPT

private java.lang.String ARPT
Airport ID where this delay is being experienced

AD

private int AD
Amount of arrival delay in minutes

DD

private int DD
Amount of departure delay in minutes

reason

private java.lang.String reason
Reason for the delay
Constructor Detail

Delay

public Delay()
Delay constructor method. Sets the ARPT to 'UNK'.

Delay

public Delay(java.lang.String ARPT,
             int nAD,
             int nDD,
             java.lang.String strReason)
Delay constructor method with parameters.

Parameters:
ARPT - String containing the airport ID for this delay
nAD - int containing the number of minutes of arrival delay
nDD - int containing the number of minutes of departure delay
strReason - String containing the reason for this delay
Method Detail

getARPT

public java.lang.String getARPT()
Gets the Airport ID for this delay.

Returns:
String containing the Delay's airport ID

setARPT

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

Parameters:
id - String containing the airport ID for this delay

getAD

public int getAD()
Gets the Arrival Delay for this delay.

Returns:
int containing the amount of this Delay's arrival delay

setAD

protected void setAD(int ad)
Sets the Arrival Delay for this delay.

Parameters:
ad - int containing the amount of arrival delay for this delay

getDD

public int getDD()
Gets the Departure Delay for this delay.

Returns:
int containing the amount of this Delay's departure delay

setDD

protected void setDD(int dd)
Sets the Departure Delay for this delay.

Parameters:
dd - int containing the amount of this Delay's departure delay

setReason

protected void setReason(java.lang.String reason)
Sets the reason for this delay.

Parameters:
id - String containing the reason for this delay

getReason

public java.lang.String getReason()
Gets the reason for this delay.

Returns:
String containing the reason for this Delay

toString

public java.lang.String toString()
Gets the string representation of this delay.

Overrides:
toString in class java.lang.Object
Returns:
String containing the string representation of this Delay