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 intACARSID(FlightReport fr) Returns the ACARS flight ID for this Flight Report.static booleanReturns if this Flight entered Prohibited or Restricted airspace.static intassignID(FlightReport fr) Returns the Flight Assignment ID for this Flight Report.static intReturns the Disposal ID for this Flight Report.static booleanReturns if this Flight was operated using non-ETOPS-rated aircraft on an ETOPS route.static inteventID(FlightReport fr) Returns the Event ID for this Flight Report.static booleanhasFDE(FlightReport fr) Returns if a Flight Report has a valid FDE file name.static booleanReturns if this Flight has On-Time data.static booleanhasSDK(FlightReport fr) Returns whether the Flight was logged using an aircraft-specific SDK.static booleanReturns if this Flight has visible aircraft capabilities.static booleanhasWarn(FlightReport fr) Returns if any warnings have been set.static booleanReturns if this Flight is a Flight Academy Training Flight.static booleanisACARS(FlightReport fr) Returns if this Flight was logged using ACARS.static booleanReturns if this Flight is a Charter operation.static booleanReturns if this Flight is a Check Ride.static booleanReturns if this Flight was planned by a Dispatcher.static booleanisDivert(FlightReport fr) Returns if this Flight was a diversion to another airport.static booleanisDraft(FlightReport fr) Returns if this Flight Report is a Draft.static booleanReturns if this Flight is a Historic flight.static booleanisMSFS(FlightReport fr) Returns if this Flight was logged using Microsoft Flight Simulator 2020 or above.static booleanisOnline(FlightReport fr) Returns if the Flight was flown online.static booleanisRated(FlightReport fr) Returns if the Flight was flown using a rated equipment type.static booleanReturns if the flight was planned using SimBrief.static booleanisXACARS(FlightReport fr) Returns if this Flight was logged using ACARS.static Stringnetwork(FlightReport fr) Returns the name of the online network used on this Flight.static intpilotID(FlightReport fr) Returns the Pilot ID for this Flight Report.static booleanpromoLeg(FlightReport fr) Returns if this Flight counts towards promotion to Captain.static StringReturns the Equipment Programs this Flight counts towards promotion to Captain in.static booleanReturns if the Flight's distance exceeds the parameters in the Schedule database.static booleanReturns if in-flight refueling was detected.static booleanReturns if the Flight's route does not exist in the Schedule database.static booleanReturns if the takeoff or landing runway exceeds the Aircraft's minimums.static booleantimeWarn(FlightReport fr) Returns if the Flight's duration exceeds the parameters in the Schedule database.static inttourID(FlightReport fr) Returns the Tour ID for this Flight Report.static booleanReturns 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
-