Class FlightReportFunctions

java.lang.Object
org.deltava.taglib.functions.FlightReportFunctions

public class FlightReportFunctions extends Object
A JSP Function Library to define Flight Report-related functions.
Since:
1.0
Version:
11.4
Author:
Luke
  • Method Details

    • ACARSID

      public static int ACARSID(FlightReport fr)
      Returns the ACARS flight ID for this Flight Report.
      Parameters:
      fr - the Flight Report
      Returns:
      the ACARS database ID
    • eventID

      public static int eventID(FlightReport fr)
      Returns the Event ID for this Flight Report.
      Parameters:
      fr - the Flight Report
      Returns:
      the Event database ID
    • assignID

      public static int assignID(FlightReport fr)
      Returns the Flight Assignment ID for this Flight Report.
      Parameters:
      fr - the Flight Report
      Returns:
      the Assignment database ID
    • disposalID

      public static int disposalID(FlightReport fr)
      Returns the Disposal ID for this Flight Report.
      Parameters:
      fr - the FlightReport
      Returns:
      the Disposal database ID
    • pilotID

      public static int pilotID(FlightReport fr)
      Returns the Pilot ID for this Flight Report.
      Parameters:
      fr - the Flight Report
      Returns:
      the Pilot database ID
    • tourID

      public static int tourID(FlightReport fr)
      Returns the Tour ID for this Flight Report.
      Parameters:
      fr - the Flight Report
      Returns:
      the Tour database ID
    • isACARS

      public static boolean isACARS(FlightReport fr)
      Returns if this Flight was logged using ACARS.
      Parameters:
      fr - the Flight Report
      Returns:
      TRUE if this flight used ACARS, otherwise FALSE
    • isXACARS

      public static boolean isXACARS(FlightReport fr)
      Returns if this Flight was logged using ACARS.
      Parameters:
      fr - the Flight Report
      Returns:
      TRUE if this flight used XACARS, otherwise FALSE
    • isMSFS

      public static boolean isMSFS(FlightReport fr)
      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

      public static boolean isOnline(FlightReport fr)
      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

      public static boolean isCheckRide(FlightReport fr)
      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

      public static boolean isDispatch(FlightReport fr)
      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

      public static boolean isDraft(FlightReport fr)
      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

      public static boolean isHistoric(FlightReport fr)
      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

      public static boolean isCharter(FlightReport fr)
      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

      public static boolean isAcademy(FlightReport fr)
      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

      public static boolean isRated(FlightReport fr)
      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

      public static boolean isDivert(FlightReport fr)
      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

      public static boolean hasOnTime(FlightReport fr)
      Returns if this Flight has On-Time data.
      Parameters:
      fr - the FlightReport
      Returns:
      TRUE if OnTime data is present, otherwise FALSE
    • hasFDE

      public static boolean hasFDE(FlightReport fr)
      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

      public static boolean routeWarn(FlightReport fr)
      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

      public static boolean rangeWarn(FlightReport fr)
      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

      public static boolean runwayWarn(FlightReport fr)
      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

      public static boolean timeWarn(FlightReport fr)
      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

      public static boolean refuelWarn(FlightReport fr)
      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

      public static boolean etopsWarn(FlightReport fr)
      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

      public static boolean airspaceWarn(FlightReport fr)
      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

      public static boolean weightWarn(FlightReport fr)
      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

      public static boolean isSimBrief(FlightReport fr)
      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

      public static boolean hasWarn(FlightReport fr)
      Returns if any warnings have been set.
      Parameters:
      fr - the FlightReport
      Returns:
      TRUE if any warnings are set, otherwise FALSE
      See Also:
    • promoLeg

      public static boolean promoLeg(FlightReport fr)
      Returns if this Flight counts towards promotion to Captain.
      Parameters:
      fr - the FlightReport
      Returns:
      TRUE if the Leg counts towards promotion, otherwise FALSE
    • hasVisibleCapabilities

      public static boolean hasVisibleCapabilities(FlightReport fr)
      Returns if this Flight has visible aircraft capabilities.
      Parameters:
      fr - the FlightReport
      Returns:
      TRUE if it has visible Capabilities flags, otherwise FALSE
    • promoTypes

      public static String promoTypes(FlightReport fr)
      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

      public static String network(FlightReport fr)
      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

      public static boolean hasSDK(FlightReport fr)
      Returns whether the Flight was logged using an aircraft-specific SDK.
      Parameters:
      fr - the FlightReport
      Returns:
      TRUE if an SDK was detected, otherwise FALSE