|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.faa.flyfaa.Closure
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;
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 |
|
Field Detail |
java.lang.String Logf
private java.lang.String ARPT
private java.lang.String ClosedAt
(corresponds to 'closed_at')
private java.lang.String Reason
(corresponds to 'reason')
private java.lang.String ReopeningAt
(corresponds to 'reopening_at')
private java.lang.String ClosureTime
(corresponds to 'C_TIME' [HH24MI])
private java.lang.String ReopeningTime
(corresponds to 'R_TIME' [HH24MI or "NULL"])
private java.lang.String ClosureTimeUTC
private java.lang.String ReopeningTimeUTC
private int ClosureYear
(corresponds to 'c_yy' [YYYY])
private int ClosureMonth
(corresponds to 'c_mm' [MM]')
private java.lang.String ClosureDay
(corresponds to 'c_dd' [DD]')
private java.lang.String ClosureHour
(corresponds to 'c_hh' [HH24]')
private java.lang.String ClosureMinute
(corresponds to 'c_mi' [MI]')
private java.lang.String ReopeningYear
(corresponds to 'r_yy' [YYYY]')
private java.lang.String ReopeningMonth
(corresponds to 'r_mm' [MM]')
private java.lang.String ReopeningDay
(corresponds to 'r_dd' [DD]')
private java.lang.String ReopeningHour
(corresponds to 'r_hh' [HH24]')
private java.lang.String ReopeningMinute
(corresponds to 'r_mi' [MI]')
private java.lang.String ClosureDate
private java.lang.String ReopeningDate
Constructor Detail |
public 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)
strARPT
- String containing the airport ID for this Airport ClosurestrClosedAt
- String containing the month and day that the airport was closed,
followed by ' at 'strReason
- String containing the reason that the airport was closedstrReopeningDate
- String containing the reopening date in 'Mon dd' format, or
'not known'strCTime
- String containing the Closure time in HH24MI formatstrRTime
- String containing the Reopening time in HH24MI format or 'NULL'strClosedUTC
- String containing the Closure time in HH24:MI UTC formatstrReopenUTC
- 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 closurestrReopenMonth
- 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 closurestrClosedHour
- String containing the hour of the closure time (HH24)strClosedMinute
- String containing the minute of the closure timestrClosingTime
- String representing the closing date and time in local timestrReopeningTime
- String representing the reopening date and time in local timeMethod Detail |
public java.lang.String getARPT()
String
containing the airport ID of the closed airportprotected void setARPT(java.lang.String id)
id
- String containing the airport ID for this Airport Closurepublic java.lang.String getClosedAt()
String
containing the Closed at date for this Airport Closure (the
month and day that the airport was closed, followed by ' at ')protected void setClosedAt(java.lang.String cd)
cd
- String containing the Closed at Date for this Airport Closurepublic java.lang.String getReason()
String
containing the reason for this Airport Closureprotected void setReason(java.lang.String r)
r
- String containing the reason for this Airport Closurepublic java.lang.String getReopeningAt()
String
containing the month and day of the airport's reopening dateprotected void setReopeningAt(java.lang.String rd)
rd
- String containing the reopening date (Mon dd format) or 'not known'public java.lang.String getClosureTime()
String
containing the closure time for this Airport Closureprotected void setClosureTime(java.lang.String ct)
ct
- String containing the closure time (HH24MI) of this Airport Closurepublic java.lang.String getReopeningTime()
String
containing the reopening time (HH24MI) or 'NULL'protected void setReopeningTime(java.lang.String rt)
rt
- String containing the reopening time for this Airport Closurepublic java.lang.String getClosureTimeUTC()
String
containing the closure time in UTC (hh:mm UTC)protected void setClosureTimeUTC(java.lang.String ct)
ct
- String containing the closure time in UTC for this Airport Closure (hh:mm UTC)public java.lang.String getReopeningTimeUTC()
String
containing the reopening time in UTC for this Airport Closureprotected void setReopeningTimeUTC(java.lang.String rot)
rot
- String containing the reopening time in UTC for this Airport Closurepublic int getClosureYear()
int
containing the ClosureYear for this Airport Closureprotected void setClosureYear(int yyyy)
yyyy
- int containing the ClosureYear for this Airport Closurepublic int getClosureMonth()
int
containing the ClosureMonth for this Airport Closureprotected void setClosureMonth(int mm)
mm
- int containing the ClosureMonth for this Airport Closurepublic java.lang.String getClosureDay()
String
containing the ClosureDay for this Airport Closureprotected void setClosureDay(java.lang.String s)
s
- String containing the ClosureDay for this Airport Closurepublic java.lang.String getClosureHour()
String
containing the ClosureHour for this Airport Closureprotected void setClosureHour(java.lang.String s)
s
- String containing the ClosureHour for this Airport Closurepublic java.lang.String getClosureMinute()
String
containing the ClosureMinute for this Airport Closureprotected void setClosureMinute(java.lang.String s)
s
- String containing the ClosureMinute for this Airport Closurepublic java.lang.String getReopeningYear()
String
containing the ReopeningYear for this Airport Closureprotected void setReopeningYear(java.lang.String s)
s
- String containing the ReopeningYear for this Airport Closurepublic java.lang.String getReopeningMonth()
String
containing the ReopeningMonth for this Airport Closureprotected void setReopeningMonth(java.lang.String s)
s
- String containing the ReopeningMonth for this Airport Closurepublic java.lang.String getReopeningDay()
String
containing the ReopeningDay for this Airport Closureprotected void setReopeningDay(java.lang.String s)
s
- String containing the ReopeningDay for this Airport Closurepublic java.lang.String getReopeningHour()
String
containing the ReopeningHour for this Airport Closureprotected void setReopeningHour(java.lang.String s)
s
- String containing the ReopeningHour for this Airport Closurepublic java.lang.String getReopeningMinute()
String
containing the ReopeningMinute for this Airport Closureprotected void setReopeningMinute(java.lang.String s)
s
- String containing the ReopeningMinute for this Airport Closurepublic java.lang.String getClosureDate()
Calendar
containing the Closure Date for this Airport Closureprotected void setClosureDate(java.lang.String cd)
cd
- String representing the closure date for this airport closure, in local time.public java.lang.String getReopeningDate()
String
containing the Reopening Date for this Airport Closure,
if it is known; otherwise, "not known".protected void setReopeningDate(java.lang.String rod)
rod
- String representing the reopening date for this airport closure, in local time.public java.lang.String toString()
toString
in class java.lang.Object
String
String representation of this Closure object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |