|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.faa.flyfaa.FlyFAAProjectBean
JavaBean to hold properties of what in livewire was the project object. Since there was only one project object, there is only one FlyFAAProjectBean. It is attached to the application as the property 'Project'. The FlyFAAProjectBean object is created by usmap.jsp or any of the regional jsp pages (nwmap.jsp, ncmap.jsp, nemap.jsp, swmap.jsp, scmap.jsp, semap.jsp, or fwmap.jsp).
For example,
<jsp:useBean id="proj" scope="application" class="com.faa.flyfaa.FlyFAAProjectBean" /> <% FlyfaaDbBean db = proj.getDbBean(); if (db == null) { db = new FlyfaaDbBean(); } db.setCache(c_cache); try { proj.setDbBean(db); if (!proj.getPI()) { // if the FlyFAAProjectBean has not been instantiated, then if (proj.FlyFAAProjectBeanStalk()) { // Performs same job as old setFlyFaaInitData application.setAttribute("Project", proj); } } }
Field Summary | |
(package private) java.util.Map |
airportsMap
HashMap for storing Airport objects indexed by the airport ID (for ALL AIRPORTS). |
int |
alert_layers_end
This value is used as a parameter to Alert_Airports() by usmap.jsp. |
int |
alert_layers_start
The next available lay[] item index after the U.S. |
protected java.util.Map |
alrtMap
HashMap for CURRENT ALERTED AIRPORTS: Each item is keyed by the airport id the same way that the airportsMap is, and the value is a Boolean. |
protected java.util.List |
ClosureA
Array for Airport Closures; contains Closure objects. |
private FlyfaaDbBean |
DbAccess
A reference to the database access bean |
(package private) java.util.Timer |
dbtimer
A Timer object with which to schedule the DatabaseUpdater |
(package private) DatabaseUpdater |
dbu
A DatabaseUpdater to read Traffic Management Information from the database periodically |
protected java.util.List |
DelayA
Array for Delays; contains Delay objects. |
protected boolean |
FlyLock
True primarily when delay/GDP/GSTOP/Closure data is being read from the database. |
(package private) java.util.ArrayList |
fwA
An array for the Far West Region; contains 3-character FAA airport identifiers |
protected java.util.List |
GDPA
Array for most recently retrieved Ground Delay Programs; contains GDP objects. |
protected java.util.List |
GStopA
Array for Ground Stops; contains GStop objects. |
private java.util.Map |
keycenters
A hashmap for storing the centers associated with the (currently 46) different keywords used by TMSs ('ZNY1', 'NOWEST', '6WEST', etc.) |
private java.lang.String |
keywordQuery
String to use for holding a query during object construction... |
(package private) java.lang.String |
Logf
String containing the name of the log file. |
(package private) java.util.ArrayList |
ncA
An array for the North Central Region; contains 3-character FAA airport identifiers |
(package private) java.util.ArrayList |
neA
An array for the Northeast Region; contains 3-character FAA airport identifiers |
(package private) java.util.ArrayList |
nwA
An array for the Northwest Region; contains 3-character FAA airport identifiers |
(package private) java.util.Map |
oldAirportsMap
HashMap for storing Airport objects indexed by the airport ID (for ALL AIRPORTS). |
protected java.util.List |
oldClosureA
Array for saving Closure information while new Closure info is being read. |
protected java.util.List |
oldDelayA
Array for saving Delay information while new Delay info is being read. |
protected java.util.List |
oldGDPA
Array for saving Ground Delay Program information while new GDP info is being read. |
protected java.util.List |
oldGStopA
Array for saving Ground Stop information while new GStop info is being read. |
protected java.util.Map |
oldMap
HashMap for PREVIOUSLY ALERTED AIRPORTS (airports which were put into alrtMap during the previous 60-second database refresh). |
protected java.util.List |
pacingA
Array for PACING AIRPORTS; indexed by FAA_AIRPORTS.TOOL_ORDER, contains 3-character airport identifiers |
protected boolean |
PI
A boolean to ensure that the ProjectBean's initialization only occurs once |
private java.sql.ResultSet |
rs
ResultSet for use by multiple database queries |
private java.sql.ResultSet |
rs2
ResultSet for use by routines which need two simultaneous queries |
(package private) java.util.ArrayList |
scA
An array for the South Central Region; contains 3-character FAA airport identifiers |
(package private) java.util.ArrayList |
seA
An array for the Southeast Region; contains 3-character FAA airport identifiers |
(package private) java.util.ArrayList |
swA
An array for the Southwest Region; contains 3-character FAA airport identifiers |
protected java.util.Date |
tmTimeStamp
Time just after finishing fetching new delay/GDP/GSTOP/Closure data |
protected java.util.Date |
vd_dbstart
Time when data starts being fetched (when lock is set). |
Constructor Summary | |
FlyFAAProjectBean()
FlyFAA's ("Project Object") Class constructor. |
Method Summary | |
(package private) void |
Alert_Airport(Airport a,
int x,
int y,
int r,
int Regx,
int Regy,
java.lang.String Color)
Modifies an existing airport object (in airportsMap) to store the alerted airport information, including X-coordinate on map, Y-coordinate on map, radius of hotspot, X- and Y- coordinate on the regional map (for pacing airports), and color to be displayed. |
java.lang.String |
Alert_Airports(int first_layer,
int last_layer)
Method to write the 'dolayers' client-side javascript function into the document. |
java.lang.String |
alert_layers(int firstielayer)
Generates javascript code to mark the alerted airports (layers) so that they are displayed in the browser. |
java.lang.String |
alert_regional_layers(int firstlayer,
int firstielayer,
java.lang.String region,
java.util.ArrayList airports)
Generates javascript code to mark the alerted airports (layers) in a given region so that they are displayed in the browser. |
java.lang.String |
convertGMTtoLocal(int month,
int day_of_month,
double hhmm,
double offsetHours,
boolean bUseDayLight)
Converts a GMT time string from OIS into a local time string. |
java.lang.String |
deleteSpaces(java.lang.String base)
Parses a given String, deleting spaces wherever they may be found. |
java.lang.String |
Disclaimer(java.lang.String type)
Returns a disclaimer in an HTML <TR> tag. |
java.lang.String |
DisplayAllInitiatives(java.util.List a,
boolean useOldArray)
Returns a String of HTML representing a given set of Traffic Management Initiatives in plain text based on the supplied ArrayList. |
java.lang.String |
DisplayDelayInfo(java.lang.String DelayedAirport,
boolean dynamic,
int delayx,
boolean plain)
Generates HTML code to represent the airport delay and closure information. |
java.lang.String[] |
DisplayDelayObjRecords(java.lang.String strARPT,
boolean bGdelayGstop,
boolean isdynamic,
int specificDelay)
Generates a string of HTML code to summarize the general Arrival and Departure delay information for a given airport. |
java.lang.String |
DisplayPlainTextDelayInfo()
Returns a String containing the HTML representing the plain text content for the upper frame. |
(package private) void |
FillARPTData(java.sql.Connection conn)
Using the database's AIRPORTS, CITIES, STATES and CENTERS tables, this routine fills the airportsMap with airport information, fills the
pacingA array if the airport is a pacing airport, and fills up the regional
arrays depending on which state the airport is in. |
java.lang.String |
FillDelayData(FlyfaaDbBean dbb)
Reads from the database a list of Ground Delay Programs, Ground Stops, Delay Information and Airport Closure information. |
boolean |
FlyFAAProjectBeanStalk()
FlyFAA's ("Project Object") Class construction completion method. |
Airport |
getAirport(java.lang.String airport_id,
boolean useOldOne)
Gets an Airport object from the AirportsMap based on a given airport_id if the useOldOne flag is not set, or from the oldAirportsMap if the
useOldOne flag is set (which means that the DatabaseUpdater Thread is
running). |
java.lang.String |
GetClosureInfoByARPT(java.lang.String airport,
java.lang.String longname)
Generates HTML code to describe airport closure information. |
FlyfaaDbBean |
getDbBean()
Getter method to return the FlyfaaDbBean property. |
java.util.Date |
getDbStartTime()
Gets the date/timestamp when new Traffic Management Initiative data starts being read from the database. |
java.lang.String |
GetFacilities(java.lang.String facs)
Parses the list of included facilities for a Ground Delay Program or Ground Stop (which may include keywords) and returns a string of ARTCC names. |
java.lang.String[] |
GetGDelayInfoByARPT(java.lang.String strFacility,
java.lang.String strARPT)
Generates an array of Strings containing HTML representing a summary of delay information affecting a given airport caused by Ground Delay Programs. |
java.lang.String |
GetGStopGDelayInfoByARPT(java.lang.String strARPT,
java.lang.String strARPTLongName,
java.lang.String strARPTCity,
java.lang.String strARPTState)
Generates HTML code to summarize the general status of Ground Stops and Ground Delay Programs which may be affecting a given airport. |
java.lang.String[] |
GetGStopInfoByARPT(java.lang.String strFacility,
java.lang.String strARPT,
Airport requestARPTObj)
Generates an array of Strings containing HTML representing a summary of delay information affecting a given airport caused by Ground Stops. |
Airport |
getKnownAirport(java.lang.String airport_id,
boolean useOldOne)
Gets an Airport object from the AirportsMap based on a given airport_id if the useOldOne flag is not set, or from the oldAirportsMap if the
useOldOne flag is set (which means that the DatabaseUpdater Thread is
running). |
java.lang.String[] |
GetOtherClosureInfo(java.lang.String airp)
Returns a string with information about closed airports other than the one the user selected. |
boolean |
getPI()
Getter method to return the flag indicating whether the FlyFAAProjectBean has been created yet. |
java.util.ArrayList |
getRegionalArray(char ns,
char wce)
Returns one of the regional ArrayLists. |
java.util.Date |
getTmTimeStamp()
Getter method to return the date/timestamp representing the date/time just after the most recent time when delay/GDP/GSTOP/Closure information was read from the database. |
(package private) void |
Init_Alerted_Airport_Data(java.sql.Connection conn)
Query the database to find alerted airports. |
boolean |
isDST(java.util.Calendar date_of_interest,
double offsetHours)
Determines if the input date (in GMT time) would equate to a daylight savings time in the U.S. |
boolean |
isFlyLocked()
Returns the value of the FlyLock, a boolean intended to limit to one user at a time access to critical sections of code. |
java.lang.String |
LastUpdatedTime()
Displays the last updated time in HTML text and a link to the Glossary of Terms. |
boolean |
lockFly()
Locks the FlyLock and returns true if the FlyLock was unlocked. |
java.lang.String |
MakeAlertDivs(boolean useOldMap)
Generates and returns a String of HTML code to represent the circular hotspots on the map for the alerted airports. |
java.lang.String |
MakeRegionalAlertDivs(char abbreviation1,
char abbreviation2,
int topv,
int leftv,
int width,
int height,
boolean useOldMap)
Make Alert DIVs for the a given region of the U.S. |
java.lang.String |
MakeRegionalToolTips(java.lang.String region,
FlyFAAProjectBean project,
boolean useOldMap)
Generates HTML code to represent the pop-up tooltips for airport mouseovers. |
java.lang.String |
MakeToolTips(FlyFAAProjectBean project,
boolean useOldMap)
Generates HTML code to represent the pop-up tooltips for airport mouseovers. |
void |
setClosureObjRecords(java.sql.Connection conn,
java.lang.String strSQL)
Sets up the Array of Airport Closure Objects based on querying the ois_airport_closures table. |
void |
setDbBean(FlyfaaDbBean fdb)
Sets the FlyfaaDbBean property of the project. |
void |
setDbStartTime()
Sets the date/timestamp when new delay data starts being read from the database to the current time. |
void |
setDelayObjRecords(java.sql.Connection conn,
java.lang.String strSQL)
Sets up the Array of Delay Objects based on querying the ois_delay table. |
void |
setGDelayObjRecords(java.sql.Connection conn,
java.lang.String strSQL)
Sets up the Array of Ground Delay Objects based on querying the ois_program table. |
void |
setGStopObjRecords(java.sql.Connection conn,
java.lang.String strSQL)
Sets up the Array of Ground Stop Objects based on querying the ois_gstop table. |
void |
setPI(boolean init_value)
Sets the flag which indicates that the FlyFAAProjectBean has been instantiated yet to the given argument. |
void |
setTmTimeStamp()
Sets the date/timestamp when data was last read from the database to a Date representing the current time. |
void |
setTmTimeStamp(long date)
Overloaded method to set the date/timestamp when data was last read from the database to a given date/time. |
(package private) java.lang.String |
setToolTips(java.sql.Connection c,
java.lang.String SQL)
Method to set the Tooltip property in the Airport objects contained in the arptMap. |
java.lang.String |
TickerUpdatedTime(java.util.Date whichTime,
java.lang.String tag)
Returns the time of a given date, optionally enclosed within a given HTML tag supplied as input. |
boolean |
unlockFly()
Unlocks the FlyLock, notifies all threads waiting on it and returns true, unless the FlyLock is not currently set, in which case this method returns false. |
(package private) java.lang.String |
Update_Airport_Project_Data(java.sql.Connection conn,
java.lang.String TTQuery)
Query database to find alerted airports. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String Logf
private java.lang.String keywordQuery
private java.sql.ResultSet rs
private java.sql.ResultSet rs2
protected java.util.Date tmTimeStamp
protected java.util.Date vd_dbstart
protected boolean FlyLock
checkFAAData
method.protected java.util.List GDPA
GDP
objects.
Read from this Array if FlyLock is not set.protected java.util.List oldGDPA
protected java.util.List GStopA
GStop
objects.protected java.util.List oldGStopA
protected java.util.List DelayA
Delay
objects.protected java.util.List oldDelayA
protected java.util.List ClosureA
Closure
objects.protected java.util.List oldClosureA
protected java.util.Map alrtMap
protected java.util.Map oldMap
protected java.util.List pacingA
java.util.Map airportsMap
Airport
objects.java.util.Map oldAirportsMap
Airport
objects. This
map becomes a copy of airportsMap when the DatabaseUpdater Thread starts. Airport info should
be read from this map while the DatabaseUpdater Thread is running, which is when the FlyLock
is set.java.util.ArrayList nwA
java.util.ArrayList ncA
java.util.ArrayList neA
java.util.ArrayList swA
java.util.ArrayList scA
java.util.ArrayList seA
java.util.ArrayList fwA
public final int alert_layers_start
public final int alert_layers_end
private java.util.Map keycenters
private FlyfaaDbBean DbAccess
protected boolean PI
DatabaseUpdater dbu
java.util.Timer dbtimer
Constructor Detail |
public FlyFAAProjectBean()
Method Detail |
public boolean FlyFAAProjectBeanStalk() throws java.sql.SQLException, java.io.IOException
false
if FlyFAAProjectBean has already been constructed,
otherwise true
java.sql.SQLException
- if a database access error occursjava.io.IOException
- if a database connection cannot be obtained within 5 secondspublic boolean getPI()
true
if FlyFAAProjectBean has been instantiated, otherwise false
public void setPI(boolean init_value)
init_value
- true
if the FlyFAAProjectBean has just been instantiatedpublic java.util.ArrayList getRegionalArray(char ns, char wce) throws java.lang.IllegalArgumentException
ns
- char representing the first character of the region ('f', 'n' or 's')wce
- char representing the second character of the region ('w', 'c' or 'e').
Note: the far west region is distinguished solely based upon the value of the first charjava.lang.IllegalArgumentException
- if an invalid region is givenpublic java.util.Date getTmTimeStamp()
java.util.Date
- Date/timestamp just after reading
delay datapublic void setTmTimeStamp()
public FlyfaaDbBean getDbBean()
FlyfaaDbBean
- Reference to the Database accessor beanpublic void setDbBean(FlyfaaDbBean fdb)
fdb
- FlyfaaDbBean to be assigned as the project object's database accessor beanpublic void setTmTimeStamp(long date)
date
- long date in milliseconds since January 1, 1970, 00:00:00 GMTpublic java.util.Date getDbStartTime()
java.util.Date
just before starting database access.DatabaseUpdater.checkFAAData()
public void setDbStartTime()
public boolean isFlyLocked()
public boolean unlockFly()
true
if it was, false
if not)public boolean lockFly()
true
if the FlyLock was locked, otherwise false
public java.lang.String deleteSpaces(java.lang.String base)
base
- String from which spaces are to be deletedString
- the input string with all spaces removedpublic java.lang.String GetFacilities(java.lang.String facs)
facs
- String containing the list of included facilities (may include keywords)String
of ARTCC namespublic java.lang.String FillDelayData(FlyfaaDbBean dbb) throws java.sql.SQLException, java.io.IOException
Update_Airport_Project_Data
java.sql.SQLException
- if a database access error occursjava.io.IOException
- if a database connection cannot be obtained within 5 secondscheckFAAData
public void setDelayObjRecords(java.sql.Connection conn, java.lang.String strSQL) throws java.sql.SQLException
conn
- handle to a database connectionstrSQL
- String containing the SQL query to be executedjava.sql.SQLException
- if a database access error occurspublic void setGDelayObjRecords(java.sql.Connection conn, java.lang.String strSQL) throws java.sql.SQLException
conn
- handle to a database connectionstrSQL
- String containing the SQL query to be executedjava.sql.SQLException
- if a database access error occurspublic void setGStopObjRecords(java.sql.Connection conn, java.lang.String strSQL) throws java.sql.SQLException
conn
- handle to a database connectionstrSQL
- String containing the SQL query to be executedjava.sql.SQLException
- if a database access error occurspublic void setClosureObjRecords(java.sql.Connection conn, java.lang.String strSQL) throws java.sql.SQLException
conn
- handle to a database connectionstrSQL
- String containing the SQL query to be executedjava.sql.SQLException
- if a database access error occursvoid FillARPTData(java.sql.Connection conn) throws java.sql.SQLException
airportsMap
with airport information, fills the
pacingA array if the airport is a pacing airport, and fills up the regional
arrays depending on which state the airport is in.conn
- Handle to a database connectionjava.sql.SQLException
- if a database access error occurspublic Airport getAirport(java.lang.String airport_id, boolean useOldOne)
useOldOne
flag is not set, or from the oldAirportsMap if the
useOldOne
flag is set (which means that the DatabaseUpdater Thread is
running). This method will generate an Airport object if the given airport_id does
not exist in whichever hashmap is searched first.airport_id
- String containing the airport ID of the airport of interest.useOldOne
- false
to get airport from the airportsMap, true
meaning to get the airport info from the oldAirportsMapAirport constructor
which is then stored in both the
airportsMap and the oldAirportsMap.getKnownAirport
public Airport getKnownAirport(java.lang.String airport_id, boolean useOldOne)
useOldOne
flag is not set, or from the oldAirportsMap if the
useOldOne
flag is set (which means that the DatabaseUpdater Thread is
running). This method will return null if the given airport_id does not exist in
whichever hashmap is searched first. This method is used by the DisplayDelayInfo method
to prevent hackers from causing too many Airport objects to be created by overutilizing
the flyfaaindex.jsp with a possible 17,576 different combinations of the ARPT parameter.airport_id
- String containing the airport ID of the airport of interest.useOldOne
- false
to get airport from the airportsMap, true
meaning to get the airport info from the oldAirportsMapgetAirport
void Init_Alerted_Airport_Data(java.sql.Connection conn) throws java.sql.SQLException
Alert_Airport
for each alerted airport.
This function is currently the last function called by FlyFAAProjectBeanStalk()
at application initialization time.conn
- handle to a database connectionjava.sql.SQLException
- if a database access error occursvoid Alert_Airport(Airport a, int x, int y, int r, int Regx, int Regy, java.lang.String Color)
a
- Airport object to be alertedx
- int X coordinate on U.S. mapy
- int Y coordinate on U.S. mapr
- int radius of hotspot where airport's colored circle appearsRegx
- int X coordinate of airport on regional mapRegy
- int Y coordinate of airport on regional mapColor
- String containing the color to be displayed for this airportjava.lang.String Update_Airport_Project_Data(java.sql.Connection conn, java.lang.String TTQuery) throws java.sql.SQLException, java.io.IOException
conn
- handle to a database connectionTTQuery
- String containing the ToolTip SQL query to be executedsetToolTips
java.sql.SQLException
- if a database access error occursjava.lang.String setToolTips(java.sql.Connection c, java.lang.String SQL) throws java.sql.SQLException, java.io.IOException
c
- handle to a database connectionSQL
- String containing the ToolTip SQL query to be executedDisplayDelayInfo
java.sql.SQLException
- if a database access error occursUpdate_Airport_Project_Data
public java.lang.String Alert_Airports(int first_layer, int last_layer)
SELECT COUNT(B.ARPT) FROM FAA_STATES A, FAA_AIRPORTS B, FAA_CITIES C WHERE (A.ST IN ('VA','WV','MD','DE','PA','NJ','NY','CT','RI','VT','NH','ME','DC','MA') AND (B.CITY_ID=C.CITY_ID AND C.STATE_ID=A.STATE_ID))The test is for less than, so the last layer in the northeast will be 134.
first_layer
- number of the first lay[] array item after the maplast_layer
- number of the next lay[] array item after the map + the number of
airports in this regionpublic java.lang.String alert_regional_layers(int firstlayer, int firstielayer, java.lang.String region, java.util.ArrayList airports)
firstlayer
- value of next available lay array item index after the mapfirstielayer
- value of next available ielayer array item index after the mapregion
- String representing the region (one of 'nw','nc','ne','sw','sc','se','fw')airports
- pointer to one of the ArrayLists containing the airports belonging to
this region defined in FlyFAAProjectBean (nwA, ncA, and so on)public java.lang.String alert_layers(int firstielayer)
firstielayer
- value of next available ielayer array item indexpublic java.lang.String MakeToolTips(FlyFAAProjectBean project, boolean useOldMap) throws java.sql.SQLException, java.io.IOException
project
- FlyFAAProjectBean referenceuseOldMap
- true
if the DatabaseUpdater Thread is running, meaning
that the ArrayLists containing GDPs, GStops, Delays, and Closures (GDPA, GStopA, DelayA,
ClosureA) as well as airportsMap for the airport colors, are being updated, meaning
that the backup copies of this data, oldGDPA, oldGStopA, oldDelayA, and oldAirportsMap,
should be used instead. The jsp page passes in the state of the FlyLock as it was when
the page starts, and uses that same value later on when MakeAlertDivs() is called. If
this value is false
, the DatabaseUpdater Thread is sleeping, therefore it has
been decreed to be safe to use the new ArrayLists.java.sql.SQLException
- if a database access error occursjava.io.IOException
- if a database connection cannot be obtained within 5 secondspublic java.lang.String MakeRegionalToolTips(java.lang.String region, FlyFAAProjectBean project, boolean useOldMap) throws java.sql.SQLException, java.io.IOException
<DIV ID="PDXLayer" CLASS="tooltip"> <TABLE BORDER="1" CELLSPACING="0" BGCOLOR="#FFFFCC"><TR><td CLASS="tip"> <center><b>Portland International</b></center> </TD></TR></TABLE> </DIV>
region
- String identifying the region of interest: 'nw','nc','ne','sw','sc','se','fw'project
- FlyFAAProjectBean referenceuseOldMap
- true
if the DatabaseUpdater Thread is running, meaning
that the ArrayLists containing GDPs, GStops, Delays, and Closures (GDPA, GStopA, DelayA,
ClosureA) as well as airportsMap for the airport colors, are being updated, meaning
that the backup copies of this data, oldGDPA, oldGStopA, oldDelayA, and oldAirportsMap,
should be used instead. The jsp page passes in the state of the FlyLock as it was when
the page starts, and uses that same value later on when MakeAlertDivs() is called. If
this value is false
, the DatabaseUpdater Thread is sleeping, therefore it has
been decreed to be safe to use the new ArrayLists.java.sql.SQLException
- if a database access error occursjava.io.IOException
- if a database connection cannot be obtained within 5 secondspublic java.lang.String MakeRegionalAlertDivs(char abbreviation1, char abbreviation2, int topv, int leftv, int width, int height, boolean useOldMap)
abbreviation1
- char indicating the first character of the regional abbreviation:
'f' for far west, 'n' for north, or 's' for southabbreviation2
- char indicating the second character of the regional abbreeviation:
'w' for west, 'c' for central, or 'e' for east. Note: far west region is identified based
solely on abbreviation1.topv
- int provides the top style position of the map for this regionleftv
- int provides the left style position of the map for this regionwidth
- int provides the width of the map for this regionheight
- int provides the height of the map for this regionuseOldMap
- boolean indicating state of DatabaseUpdater. If true
,
DatabaseUpdater is running; in this case, the getAirport function will read airport info
from a backup copy of the airportsMap.public java.lang.String MakeAlertDivs(boolean useOldMap)
useOldMap
- true
if oldAirportsMap should be used (i.e., if the FlyLock
was set when the jsp page initiated the call to this method), otherwise false
public java.lang.String DisplayDelayInfo(java.lang.String DelayedAirport, boolean dynamic, int delayx, boolean plain)
DelayedAirport
- The airport for which delays are being reporteddynamic
- Used by the MakeToolTips method. If true
, only the DelayInfo
array will be returned (as the 'get_tip_local' stored procedure would if it was smart enough
to do all of the fancy conversion of minutes to hours and minutes, which it's not. Also,
if dynamic is true, delayx will be passed with the DelayA index.delayx
- DelayA index; used if dynamic is trueplain
- true
if this information is for a plain text pagepublic java.lang.String GetClosureInfoByARPT(java.lang.String airport, java.lang.String longname)
airport
- The airport IDlongname
- The airport long namepublic java.lang.String Disclaimer(java.lang.String type)
type
- String indicating if this disclaimer is "special". If the value of this
parameter is 'spec', it means to use Javascript HREF for link to airlines' websites, which
will close this window and open the link to the airlines' websites in the opener's window.public java.lang.String[] GetOtherClosureInfo(java.lang.String airp)
airp
- String identifying the airport that the user selectedpublic java.lang.String[] GetGStopInfoByARPT(java.lang.String strFacility, java.lang.String strARPT, Airport requestARPTObj) throws java.lang.Exception
strFacility
- ARTCC within which the airport of interest liesstrARPT
- the name of the airport for which Ground Stop information is to be generatedrequestARPTObj
- pointer to the airport object for which Ground Stop information
is to be generatedjava.lang.Exception
- if an exception occurred while iterating through the GStops.public java.lang.String convertGMTtoLocal(int month, int day_of_month, double hhmm, double offsetHours, boolean bUseDayLight)
month
- month of the GMT time to be converted (if the current month [of time NOW]
is November or December, and this parameter represents January or February, the year is
assumed to be next year).day_of_month
- the day of the month (also known as the date) of the time to be convertedhhmm
- double value representing the hours and minutes of the time to be convertedoffsetHours
- double value representing the timezone offset for the locationbUseDayLight
- boolean value indicating whether the Daylight Savings Time is used at
the locationpublic boolean isDST(java.util.Calendar date_of_interest, double offsetHours)
date_of_interest
- Calendar representing the date/time (in GMT) of the time for which
the determination of whether it is DST or not is to be made.offsetHours
- number of hours that the timezone of the location to which the given
date/time applies differs from GMTtrue
if the input date/time would be in Daylight Savings Time,
false
otherwise.public java.lang.String[] GetGDelayInfoByARPT(java.lang.String strFacility, java.lang.String strARPT) throws java.lang.Exception
strFacility
- ARTCC within which the airport of interest liesstrARPT
- the airport for which Ground Delay information is to be generatedjava.lang.Exception
- if an exception occurred while iterating through the GDPspublic java.lang.String GetGStopGDelayInfoByARPT(java.lang.String strARPT, java.lang.String strARPTLongName, java.lang.String strARPTCity, java.lang.String strARPTState)
strARPT
- Airport of interest; that is, how are the GStops and GDPs affecting this airportstrARPTLongName
- The long name of the airport of intereststrARPTCity
- The city served by the airport of intereststrARPTState
- The state occupied by the airport of interestpublic java.lang.String[] DisplayDelayObjRecords(java.lang.String strARPT, boolean bGdelayGstop, boolean isdynamic, int specificDelay)
strARPT
- String identifying the airport of interest; that is, what sort of
general arrival and departure delays are being experienced at this airportbGdelayGstop
- boolean indicating if a GDP or GStop is affecting the airportisdynamic
- boolean flag used to avoid returning the "Less than 15-minute delay" messagespecificDelay
- int identifying the DelayA arrayList item index for a dynamic delaypublic java.lang.String LastUpdatedTime()
public java.lang.String TickerUpdatedTime(java.util.Date whichTime, java.lang.String tag)
whichTime
- java.util.Date representing the time to be displayed.tag
- HTML tag within which should surround the time, but not the 'EST' or 'EDT'.
For example, 'B' or 'I'.public java.lang.String DisplayPlainTextDelayInfo() throws java.lang.Exception
java.lang.Exception
- if DisplayAllInitiatives threw an exceptionpublic java.lang.String DisplayAllInitiatives(java.util.List a, boolean useOldArray) throws java.lang.Exception
a
- ArrayList representing the array of Traffic Management Initiatives to list.useOldArray
- boolean indicating if the old arrays should be usedjava.lang.Exception
- if something bad happened while accessing the data.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |