Class FlightReportFunctions
java.lang.Object
org.deltava.taglib.functions.FlightReportFunctions
A JSP Function Library to define Flight Report-related functions.
- Since:
- 1.0
- Version:
- 11.4
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
ACARSID
(FlightReport fr) Returns the ACARS flight ID for this Flight Report.static boolean
Returns if this Flight entered Prohibited or Restricted airspace.static int
assignID
(FlightReport fr) Returns the Flight Assignment ID for this Flight Report.static int
Returns the Disposal ID for this Flight Report.static boolean
Returns if this Flight was operated using non-ETOPS-rated aircraft on an ETOPS route.static int
eventID
(FlightReport fr) Returns the Event ID for this Flight Report.static boolean
hasFDE
(FlightReport fr) Returns if a Flight Report has a valid FDE file name.static boolean
Returns if this Flight has On-Time data.static boolean
hasSDK
(FlightReport fr) Returns whether the Flight was logged using an aircraft-specific SDK.static boolean
Returns if this Flight has visible aircraft capabilities.static boolean
hasWarn
(FlightReport fr) Returns if any warnings have been set.static boolean
Returns if this Flight is a Flight Academy Training Flight.static boolean
isACARS
(FlightReport fr) Returns if this Flight was logged using ACARS.static boolean
Returns if this Flight is a Charter operation.static boolean
Returns if this Flight is a Check Ride.static boolean
Returns if this Flight was planned by a Dispatcher.static boolean
isDivert
(FlightReport fr) Returns if this Flight was a diversion to another airport.static boolean
isDraft
(FlightReport fr) Returns if this Flight Report is a Draft.static boolean
Returns if this Flight is a Historic flight.static boolean
isMSFS
(FlightReport fr) Returns if this Flight was logged using Microsoft Flight Simulator 2020 or above.static boolean
isOnline
(FlightReport fr) Returns if the Flight was flown online.static boolean
isRated
(FlightReport fr) Returns if the Flight was flown using a rated equipment type.static boolean
Returns if the flight was planned using SimBrief.static boolean
isXACARS
(FlightReport fr) Returns if this Flight was logged using ACARS.static String
network
(FlightReport fr) Returns the name of the online network used on this Flight.static int
pilotID
(FlightReport fr) Returns the Pilot ID for this Flight Report.static boolean
promoLeg
(FlightReport fr) Returns if this Flight counts towards promotion to Captain.static String
Returns the Equipment Programs this Flight counts towards promotion to Captain in.static boolean
Returns if the Flight's distance exceeds the parameters in the Schedule database.static boolean
Returns if in-flight refueling was detected.static boolean
Returns if the Flight's route does not exist in the Schedule database.static boolean
Returns if the takeoff or landing runway exceeds the Aircraft's minimums.static boolean
timeWarn
(FlightReport fr) Returns if the Flight's duration exceeds the parameters in the Schedule database.static int
tourID
(FlightReport fr) Returns the Tour ID for this Flight Report.static boolean
Returns if excessive takeoff or landing weight was detected.
-
Method Details
-
ACARSID
Returns the ACARS flight ID for this Flight Report.- Parameters:
fr
- the Flight Report- Returns:
- the ACARS database ID
-
eventID
Returns the Event ID for this Flight Report.- Parameters:
fr
- the Flight Report- Returns:
- the Event database ID
-
assignID
Returns the Flight Assignment ID for this Flight Report.- Parameters:
fr
- the Flight Report- Returns:
- the Assignment database ID
-
disposalID
Returns the Disposal ID for this Flight Report.- Parameters:
fr
- the FlightReport- Returns:
- the Disposal database ID
-
pilotID
Returns the Pilot ID for this Flight Report.- Parameters:
fr
- the Flight Report- Returns:
- the Pilot database ID
-
tourID
Returns the Tour ID for this Flight Report.- Parameters:
fr
- the Flight Report- Returns:
- the Tour database ID
-
isACARS
Returns if this Flight was logged using ACARS.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if this flight used ACARS, otherwise FALSE
-
isXACARS
Returns if this Flight was logged using ACARS.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if this flight used XACARS, otherwise FALSE
-
isMSFS
Returns if this Flight was logged using Microsoft Flight Simulator 2020 or above.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if this flight used MSFS2020 or 2024, otherwise FALSE
-
isOnline
Returns if the Flight was flown online.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ATTR_ONLINE MASK attribute is present, otherwise FALSE
- See Also:
-
isCheckRide
Returns if this Flight is a Check Ride.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ATTR_CHECKRIDE attribute is present, otherwise FALSE
- See Also:
-
isDispatch
Returns if this Flight was planned by a Dispatcher.- Parameters:
fr
- the Flight report- Returns:
- TRUE if the ATTR_DISPATCH attribute is present, otherwise FALSE
- See Also:
-
isDraft
Returns if this Flight Report is a Draft.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the Flight is in Draft status, otherwise FALSE
- See Also:
-
isHistoric
Returns if this Flight is a Historic flight.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ATTR_HISTORIC attribute is present, otherwise FALSE
- See Also:
-
isCharter
Returns if this Flight is a Charter operation.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ATTR_CHARTER attribute is present, otherwise FALSE
- See Also:
-
isAcademy
Returns if this Flight is a Flight Academy Training Flight.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ATTR_ACADEMY attribute is present, otherwise FALSE
- See Also:
-
isRated
Returns if the Flight was flown using a rated equipment type.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the NOTRATED attribute is not present, otherwise FALSE
- See Also:
-
isDivert
Returns if this Flight was a diversion to another airport.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if the DIVERT attribute is present, otherwsie FALSE
- See Also:
-
hasOnTime
Returns if this Flight has On-Time data.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if OnTime data is present, otherwise FALSE
-
hasFDE
Returns if a Flight Report has a valid FDE file name.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if a valid FDE file name is present, otherwise FALSE
-
routeWarn
Returns if the Flight's route does not exist in the Schedule database.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ROUTEWARN atribute is present, otherwise FALSE
- See Also:
-
rangeWarn
Returns if the Flight's distance exceeds the parameters in the Schedule database.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the RANGEWARN attribute is present, otherwise FALSE
- See Also:
-
runwayWarn
Returns if the takeoff or landing runway exceeds the Aircraft's minimums.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the RWYWARN attribute is present, otherwise FALSE
- See Also:
-
timeWarn
Returns if the Flight's duration exceeds the parameters in the Schedule database.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the TIMEWARN attribute is present, otherwise FALSE
- See Also:
-
refuelWarn
Returns if in-flight refueling was detected.- Parameters:
fr
- the Flight report- Returns:
- TRUE if the REFUELWARN attribute is present, otherwise FALSE
- See Also:
-
etopsWarn
Returns if this Flight was operated using non-ETOPS-rated aircraft on an ETOPS route.- Parameters:
fr
- the Flight Report- Returns:
- TRUE if the ETOPSWARN attribute is present, otherwise FALSE
- See Also:
-
airspaceWarn
Returns if this Flight entered Prohibited or Restricted airspace.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if the AIRSPACEWARN attribute is present, otherwise FALSE
- See Also:
-
weightWarn
Returns if excessive takeoff or landing weight was detected.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if the WEIGHTWARN attribute is present, otherwise FALSE
- See Also:
-
isSimBrief
Returns if the flight was planned using SimBrief.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if the SIMBRIEF attribute is present, otherwise FALSE
- See Also:
-
hasWarn
Returns if any warnings have been set.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if any warnings are set, otherwise FALSE
- See Also:
-
promoLeg
Returns if this Flight counts towards promotion to Captain.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if the Leg counts towards promotion, otherwise FALSE
-
hasVisibleCapabilities
Returns if this Flight has visible aircraft capabilities.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if it has visible Capabilities flags, otherwise FALSE
-
promoTypes
Returns the Equipment Programs this Flight counts towards promotion to Captain in.- Parameters:
fr
- the FlightReport- Returns:
- a comma-delimited string of Equipment Program names
-
network
Returns the name of the online network used on this Flight.- Parameters:
fr
- the FlightReport- Returns:
- the name of the network, or "Offline" if flown offline
- See Also:
-
hasSDK
Returns whether the Flight was logged using an aircraft-specific SDK.- Parameters:
fr
- the FlightReport- Returns:
- TRUE if an SDK was detected, otherwise FALSE
-