com.faa.flyfaa
Class Closure

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

public class Closure
extends java.lang.Object

Describes a flyFAA Airport Closure object, containing the particulars about an airport closure, including the airport identifier, the time the airport was closed, the reason it was closed, and when it will reopen (if known). Since there is a requirement that airport closure and reopening times for unknown airports be displayed in UTC time, this class contains more fields than usual. Most of the class variables relate to one of the columns in the SQL below. The properties ClosureDate and ReopeningDate are now defined as Strings, as it is easier to retrieve the closing and reopening times, which must have their timezone information included, from the tooltip.


 The AIRPORT CLOSURE SQL as used by the livewire application:
   Select arpt, to_char(CLOSURE_TIME,'Mon ')||to_char(CLOSURE_TIME,'dd')||' at ' as closed_at
   , reason,  NVL((to_char(REOPEN_TIME,'Mon ')||to_char(REOPEN_TIME,'dd')),'not known') as reopening_at
   , TO_CHAR(CLOSURE_TIME,'hh24:mi\" UTC\"') as closed_utc
   , NVL(TO_CHAR(REOPEN_TIME,'hh24:mi\" UTC\"'),'not known') as reopen_utc
   , TO_CHAR(CLOSURE_TIME,'HH24MI') AS C_TIME
   , NVL(TO_CHAR(REOPEN_TIME,'HH24MI'),'NULL') AS R_TIME
   , TO_NUMBER(TO_CHAR(CLOSURE_TIME,'YYYY'),'9999') as c_yy
   , (TO_NUMBER(TO_CHAR(CLOSURE_TIME,'MM'),'09')-1) as c_mm
   , TO_CHAR(CLOSURE_TIME,'DD') as c_dd
   , TO_CHAR(CLOSURE_TIME,'HH24') as c_hh
   , TO_CHAR(CLOSURE_TIME,'MI') as c_mi
   , NVL(TO_CHAR(TO_NUMBER(TO_CHAR(REOPEN_TIME,'YYYY'),'9999')),'NULL') as r_yy
   , NVL(TO_CHAR((TO_NUMBER(TO_CHAR(REOPEN_TIME,'MM'),'09')-1)),'NULL') as r_mm
   , NVL(TO_CHAR(REOPEN_TIME,'DD'),'NULL') as r_dd
   , NVL(TO_CHAR(REOPEN_TIME,'HH24'),'NULL') as r_hh
   , NVL(TO_CHAR(REOPEN_TIME,'MI'),'NULL') as r_mi
   from ois_airport_closures
   where active = 1
   order by arpt;

 

See Also:
setClosureObjRecords

Field Summary
private  java.lang.String ARPT
          Airport ID of the closed airport.
private  java.lang.String ClosedAt
          The month and day that the airport was closed, followed by ' at ', for example, 'Jun 16 at '
private  java.lang.String ClosureDate
          The closure date/time in local time as a string
private  java.lang.String ClosureDay
          The day of the closure date in DD format
private  java.lang.String ClosureHour
          The hour of the closure date in HH24 format
private  java.lang.String ClosureMinute
          The minute of the closure date in MI format
private  int ClosureMonth
          The month of the closure date in MM format (0-11)
private  java.lang.String ClosureTime
          The hour and minute ('hhmm') of closure time.
private  java.lang.String ClosureTimeUTC
          The hour and minute of the closure time in UTC ('hh:mm UTC')
private  int ClosureYear
          The year of the closure date in YYYY format
(package private)  java.lang.String Logf
          Pointer to the log file, which will be named FLYlogyyyy_Monddhhmm.txt (for example, FLYlog2003_Jan291940.txt) and is currently set up to reside in the /web/trace/atcscc/java_logs directory.
private  java.lang.String Reason
          The reason that the airport was closed.
private  java.lang.String ReopeningAt
          The month and day that the airport will reopen, or 'not known'.
private  java.lang.String ReopeningDate
          The reopening date/time in local time as a string
private  java.lang.String ReopeningDay
          The day of the reopening date in DD format
private  java.lang.String ReopeningHour
          The hour of the reopening date in HH24 format
private  java.lang.String ReopeningMinute
          The minute of the reopening date in MI format
private  java.lang.String ReopeningMonth
          The month of the reopening date in MM format (0-11)
private  java.lang.String ReopeningTime
          The hour and minute ('hhmm') of the airport reopening time, or 'NULL' if it is not known
private  java.lang.String ReopeningTimeUTC
          The hour and minute of the reopening time in UTC ('hh:mm UTC')
private  java.lang.String ReopeningYear
          The year of the reopening date in YYYY format
 
Constructor Summary
Closure()
          Closure constructor method.
Closure(java.lang.String strARPT, java.lang.String strClosedAt, java.lang.String strReason, java.lang.String strReopeningAt, java.lang.String strCTime, java.lang.String strRTime, java.lang.String strClosedUTC, java.lang.String strReopenUTC, int intClosureMonth, java.lang.String strClosureDay, java.lang.String strReopenMonth, java.lang.String strReopenDay, int intClosedYear, java.lang.String strClosedHour, java.lang.String strClosedMinute, java.lang.String strClosingTime, java.lang.String strReopeningTime)
          Closure constructor method with arguments to specify the closure time and the reopening time, if it is known.
 
Method Summary
 java.lang.String getARPT()
          Gets the Airport ID for this Airport Closure.
 java.lang.String getClosedAt()
          Gets the Closed at date for this Airport Closure.
 java.lang.String getClosureDate()
          Gets a Calendar object representing the Closure Date for this Airport Closure.
 java.lang.String getClosureDay()
          Gets the ClosureDay for this Airport Closure.
 java.lang.String getClosureHour()
          Gets the ClosureHour for this Airport Closure.
 java.lang.String getClosureMinute()
          Gets the ClosureMinute for this Airport Closure.
 int getClosureMonth()
          Gets the ClosureMonth for this Airport Closure.
 java.lang.String getClosureTime()
          Gets the closure time (HH24MI) for this Airport Closure.
 java.lang.String getClosureTimeUTC()
          Gets the closure time in UTC for this Airport Closure.
 int getClosureYear()
          Gets the ClosureYear for this Airport Closure.
 java.lang.String getReason()
          Gets the reason for this Airport Closure.
 java.lang.String getReopeningAt()
          Gets the month and day of the airport's reopening, or 'not known'.
 java.lang.String getReopeningDate()
          Gets a Calendar object representing the Reopening Date for this Airport Closure, if known.
 java.lang.String getReopeningDay()
          Gets the ReopeningDay for this Airport Closure.
 java.lang.String getReopeningHour()
          Gets the ReopeningHour for this Airport Closure.
 java.lang.String getReopeningMinute()
          Gets the ReopeningMinute for this Airport Closure.
 java.lang.String getReopeningMonth()
          Gets the ReopeningMonth for this Airport Closure.
 java.lang.String getReopeningTime()
          Gets the reopening time for this Airport Closure.
 java.lang.String getReopeningTimeUTC()
          Gets the reopening time in UTC for this Airport Closure.
 java.lang.String getReopeningYear()
          Gets the ReopeningYear for this Airport Closure.
protected  void setARPT(java.lang.String id)
          Sets the Airport ID for this Airport Closure.
protected  void setClosedAt(java.lang.String cd)
          Sets the Closed at Date for this Airport Closure.
protected  void setClosureDate(java.lang.String cd)
          Sets the closure date for this airport closure.
protected  void setClosureDay(java.lang.String s)
          Sets the ClosureDay for this Airport Closure.
protected  void setClosureHour(java.lang.String s)
          Sets the ClosureHour for this Airport Closure.
protected  void setClosureMinute(java.lang.String s)
          Sets the ClosureMinute for this Airport Closure.
protected  void setClosureMonth(int mm)
          Sets the ClosureMonth for this Airport Closure.
protected  void setClosureTime(java.lang.String ct)
          Sets the closure time for this Airport Closure.
protected  void setClosureTimeUTC(java.lang.String ct)
          Sets the closure time in UTC for this Airport Closure.
protected  void setClosureYear(int yyyy)
          Sets the ClosureYear for this Airport Closure.
protected  void setReason(java.lang.String r)
          Sets the reason for this Airport Closure.
protected  void setReopeningAt(java.lang.String rd)
          Sets the airport's reopening date (month and day).
protected  void setReopeningDate(java.lang.String rod)
          Sets the reopening date for this airport closure.
protected  void setReopeningDay(java.lang.String s)
          Sets the ReopeningDay for this Airport Closure.
protected  void setReopeningHour(java.lang.String s)
          Sets the ReopeningHour for this Airport Closure.
protected  void setReopeningMinute(java.lang.String s)
          Sets the ReopeningMinute for this Airport Closure.
protected  void setReopeningMonth(java.lang.String s)
          Sets the ReopeningMonth for this Airport Closure.
protected  void setReopeningTime(java.lang.String rt)
          Sets the reopening time for this Airport Closure.
protected  void setReopeningTimeUTC(java.lang.String rot)
          Sets the reopening time in UTC for this Airport Closure.
protected  void setReopeningYear(java.lang.String s)
          Sets the ReopeningYear for this Airport Closure.
 java.lang.String toString()
          Override the default toString method.
 
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
Pointer to the log file, which will be named FLYlogyyyy_Monddhhmm.txt (for example, FLYlog2003_Jan291940.txt) and is currently set up to reside in the /web/trace/atcscc/java_logs directory.

ARPT

private java.lang.String ARPT
Airport ID of the closed airport.

ClosedAt

private java.lang.String ClosedAt
The month and day that the airport was closed, followed by ' at ', for example, 'Jun 16 at '
(corresponds to 'closed_at')

Reason

private java.lang.String Reason
The reason that the airport was closed.
(corresponds to 'reason')

ReopeningAt

private java.lang.String ReopeningAt
The month and day that the airport will reopen, or 'not known'. For example, 'Jun 17'
(corresponds to 'reopening_at')

ClosureTime

private java.lang.String ClosureTime
The hour and minute ('hhmm') of closure time.
(corresponds to 'C_TIME' [HH24MI])

ReopeningTime

private java.lang.String ReopeningTime
The hour and minute ('hhmm') of the airport reopening time, or 'NULL' if it is not known
(corresponds to 'R_TIME' [HH24MI or "NULL"])

ClosureTimeUTC

private java.lang.String ClosureTimeUTC
The hour and minute of the closure time in UTC ('hh:mm UTC')

ReopeningTimeUTC

private java.lang.String ReopeningTimeUTC
The hour and minute of the reopening time in UTC ('hh:mm UTC')

ClosureYear

private int ClosureYear
The year of the closure date in YYYY format
(corresponds to 'c_yy' [YYYY])

ClosureMonth

private int ClosureMonth
The month of the closure date in MM format (0-11)
(corresponds to 'c_mm' [MM]')

ClosureDay

private java.lang.String ClosureDay
The day of the closure date in DD format
(corresponds to 'c_dd' [DD]')

ClosureHour

private java.lang.String ClosureHour
The hour of the closure date in HH24 format
(corresponds to 'c_hh' [HH24]')

ClosureMinute

private java.lang.String ClosureMinute
The minute of the closure date in MI format
(corresponds to 'c_mi' [MI]')

ReopeningYear

private java.lang.String ReopeningYear
The year of the reopening date in YYYY format
(corresponds to 'r_yy' [YYYY]')

ReopeningMonth

private java.lang.String ReopeningMonth
The month of the reopening date in MM format (0-11)
(corresponds to 'r_mm' [MM]')

ReopeningDay

private java.lang.String ReopeningDay
The day of the reopening date in DD format
(corresponds to 'r_dd' [DD]')

ReopeningHour

private java.lang.String ReopeningHour
The hour of the reopening date in HH24 format
(corresponds to 'r_hh' [HH24]')

ReopeningMinute

private java.lang.String ReopeningMinute
The minute of the reopening date in MI format
(corresponds to 'r_mi' [MI]')

ClosureDate

private java.lang.String ClosureDate
The closure date/time in local time as a string

ReopeningDate

private java.lang.String ReopeningDate
The reopening date/time in local time as a string
Constructor Detail

Closure

public Closure()
Closure constructor method. Sets the reopening date info to 'NULL'.

Closure

public Closure(java.lang.String strARPT,
               java.lang.String strClosedAt,
               java.lang.String strReason,
               java.lang.String strReopeningAt,
               java.lang.String strCTime,
               java.lang.String strRTime,
               java.lang.String strClosedUTC,
               java.lang.String strReopenUTC,
               int intClosureMonth,
               java.lang.String strClosureDay,
               java.lang.String strReopenMonth,
               java.lang.String strReopenDay,
               int intClosedYear,
               java.lang.String strClosedHour,
               java.lang.String strClosedMinute,
               java.lang.String strClosingTime,
               java.lang.String strReopeningTime)
Closure constructor method with arguments to specify the closure time and the reopening time, if it is known.

Parameters:
strARPT - String containing the airport ID for this Airport Closure
strClosedAt - String containing the month and day that the airport was closed, followed by ' at '
strReason - String containing the reason that the airport was closed
strReopeningDate - String containing the reopening date in 'Mon dd' format, or 'not known'
strCTime - String containing the Closure time in HH24MI format
strRTime - String containing the Reopening time in HH24MI format or 'NULL'
strClosedUTC - String containing the Closure time in HH24:MI UTC format
strReopenUTC - String containing the Reopening time in HH24:MI UTC format, or 'NULL'
intClosureMonth - int containing the month of the airport closure (0-11)
strClosureDay - String containing the day of the month of the airport closure
strReopenMonth - String containing the month of the airport reopening date, or 'NULL'
strReopenDay - String containing the day of the month of the airport reopening date, or 'NULL'
intClosedYear - int containing the year of the airport closure
strClosedHour - String containing the hour of the closure time (HH24)
strClosedMinute - String containing the minute of the closure time
strClosingTime - String representing the closing date and time in local time
strReopeningTime - String representing the reopening date and time in local time
Method Detail

getARPT

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

Returns:
String containing the airport ID of the closed airport

setARPT

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

Parameters:
id - String containing the airport ID for this Airport Closure

getClosedAt

public java.lang.String getClosedAt()
Gets the Closed at date for this Airport Closure.

Returns:
String containing the Closed at date for this Airport Closure (the month and day that the airport was closed, followed by ' at ')

setClosedAt

protected void setClosedAt(java.lang.String cd)
Sets the Closed at Date for this Airport Closure.

Parameters:
cd - String containing the Closed at Date for this Airport Closure

getReason

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

Returns:
String containing the reason for this Airport Closure

setReason

protected void setReason(java.lang.String r)
Sets the reason for this Airport Closure.

Parameters:
r - String containing the reason for this Airport Closure

getReopeningAt

public java.lang.String getReopeningAt()
Gets the month and day of the airport's reopening, or 'not known'.

Returns:
String containing the month and day of the airport's reopening date

setReopeningAt

protected void setReopeningAt(java.lang.String rd)
Sets the airport's reopening date (month and day). Use 'not known' if the reopening date is unknown.

Parameters:
rd - String containing the reopening date (Mon dd format) or 'not known'

getClosureTime

public java.lang.String getClosureTime()
Gets the closure time (HH24MI) for this Airport Closure.

Returns:
String containing the closure time for this Airport Closure

setClosureTime

protected void setClosureTime(java.lang.String ct)
Sets the closure time for this Airport Closure.

Parameters:
ct - String containing the closure time (HH24MI) of this Airport Closure

getReopeningTime

public java.lang.String getReopeningTime()
Gets the reopening time for this Airport Closure.

Returns:
String containing the reopening time (HH24MI) or 'NULL'

setReopeningTime

protected void setReopeningTime(java.lang.String rt)
Sets the reopening time for this Airport Closure.

Parameters:
rt - String containing the reopening time for this Airport Closure

getClosureTimeUTC

public java.lang.String getClosureTimeUTC()
Gets the closure time in UTC for this Airport Closure.

Returns:
String containing the closure time in UTC (hh:mm UTC)

setClosureTimeUTC

protected void setClosureTimeUTC(java.lang.String ct)
Sets the closure time in UTC for this Airport Closure.

Parameters:
ct - String containing the closure time in UTC for this Airport Closure (hh:mm UTC)

getReopeningTimeUTC

public java.lang.String getReopeningTimeUTC()
Gets the reopening time in UTC for this Airport Closure.

Returns:
String containing the reopening time in UTC for this Airport Closure

setReopeningTimeUTC

protected void setReopeningTimeUTC(java.lang.String rot)
Sets the reopening time in UTC for this Airport Closure.

Parameters:
rot - String containing the reopening time in UTC for this Airport Closure

getClosureYear

public int getClosureYear()
Gets the ClosureYear for this Airport Closure.

Returns:
int containing the ClosureYear for this Airport Closure

setClosureYear

protected void setClosureYear(int yyyy)
Sets the ClosureYear for this Airport Closure.

Parameters:
yyyy - int containing the ClosureYear for this Airport Closure

getClosureMonth

public int getClosureMonth()
Gets the ClosureMonth for this Airport Closure.

Returns:
int containing the ClosureMonth for this Airport Closure

setClosureMonth

protected void setClosureMonth(int mm)
Sets the ClosureMonth for this Airport Closure.

Parameters:
mm - int containing the ClosureMonth for this Airport Closure

getClosureDay

public java.lang.String getClosureDay()
Gets the ClosureDay for this Airport Closure.

Returns:
String containing the ClosureDay for this Airport Closure

setClosureDay

protected void setClosureDay(java.lang.String s)
Sets the ClosureDay for this Airport Closure.

Parameters:
s - String containing the ClosureDay for this Airport Closure

getClosureHour

public java.lang.String getClosureHour()
Gets the ClosureHour for this Airport Closure.

Returns:
String containing the ClosureHour for this Airport Closure

setClosureHour

protected void setClosureHour(java.lang.String s)
Sets the ClosureHour for this Airport Closure.

Parameters:
s - String containing the ClosureHour for this Airport Closure

getClosureMinute

public java.lang.String getClosureMinute()
Gets the ClosureMinute for this Airport Closure.

Returns:
String containing the ClosureMinute for this Airport Closure

setClosureMinute

protected void setClosureMinute(java.lang.String s)
Sets the ClosureMinute for this Airport Closure.

Parameters:
s - String containing the ClosureMinute for this Airport Closure

getReopeningYear

public java.lang.String getReopeningYear()
Gets the ReopeningYear for this Airport Closure.

Returns:
String containing the ReopeningYear for this Airport Closure

setReopeningYear

protected void setReopeningYear(java.lang.String s)
Sets the ReopeningYear for this Airport Closure.

Parameters:
s - String containing the ReopeningYear for this Airport Closure

getReopeningMonth

public java.lang.String getReopeningMonth()
Gets the ReopeningMonth for this Airport Closure.

Returns:
String containing the ReopeningMonth for this Airport Closure

setReopeningMonth

protected void setReopeningMonth(java.lang.String s)
Sets the ReopeningMonth for this Airport Closure.

Parameters:
s - String containing the ReopeningMonth for this Airport Closure

getReopeningDay

public java.lang.String getReopeningDay()
Gets the ReopeningDay for this Airport Closure.

Returns:
String containing the ReopeningDay for this Airport Closure

setReopeningDay

protected void setReopeningDay(java.lang.String s)
Sets the ReopeningDay for this Airport Closure.

Parameters:
s - String containing the ReopeningDay for this Airport Closure

getReopeningHour

public java.lang.String getReopeningHour()
Gets the ReopeningHour for this Airport Closure.

Returns:
String containing the ReopeningHour for this Airport Closure

setReopeningHour

protected void setReopeningHour(java.lang.String s)
Sets the ReopeningHour for this Airport Closure.

Parameters:
s - String containing the ReopeningHour for this Airport Closure

getReopeningMinute

public java.lang.String getReopeningMinute()
Gets the ReopeningMinute for this Airport Closure.

Returns:
String containing the ReopeningMinute for this Airport Closure

setReopeningMinute

protected void setReopeningMinute(java.lang.String s)
Sets the ReopeningMinute for this Airport Closure.

Parameters:
s - String containing the ReopeningMinute for this Airport Closure

getClosureDate

public java.lang.String getClosureDate()
Gets a Calendar object representing the Closure Date for this Airport Closure.

Returns:
Calendar containing the Closure Date for this Airport Closure

setClosureDate

protected void setClosureDate(java.lang.String cd)
Sets the closure date for this airport closure.
Parameters:
cd - String representing the closure date for this airport closure, in local time.

getReopeningDate

public java.lang.String getReopeningDate()
Gets a Calendar object representing the Reopening Date for this Airport Closure, if known. If the reopening date is not known, "not known" is returned.

Returns:
String containing the Reopening Date for this Airport Closure, if it is known; otherwise, "not known".

setReopeningDate

protected void setReopeningDate(java.lang.String rod)
Sets the reopening date for this airport closure.
Parameters:
rod - String representing the reopening date for this airport closure, in local time.

toString

public java.lang.String toString()
Override the default toString method.

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