Class BriefingPackage

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.simbrief.BriefingPackage
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, FlightTimes, RoutePair, Cacheable

public class BriefingPackage extends DatabaseBean implements RoutePair, FlightTimes
A bean to store a SimBrief briefing package.
Since:
10.3
Version:
12.3
Author:
Luke
See Also:
  • Constructor Details

    • BriefingPackage

      BriefingPackage(int id, PackageFormat fmt)
      Creates the bean.
      Parameters:
      id - the Flight Report database ID
      fmt - the PackageFormat
  • Method Details

    • getAirportD

      public Airport getAirportD()
      Description copied from interface: RoutePair
      Returns the departure Airport.
      Specified by:
      getAirportD in interface RoutePair
      Returns:
      the departure Airport
    • getAirportA

      public Airport getAirportA()
      Description copied from interface: RoutePair
      Returns the arrival Airport.
      Specified by:
      getAirportA in interface RoutePair
      Returns:
      the arrival Airport
    • getTimeD

      public ZonedDateTime getTimeD()
      Description copied from interface: FlightTimes
      Returns the departure time of the flight, with full timezone information. The date component of this value can be ignored, but may contain significant information like the flight date or the effective date for a schedule entry.
      Specified by:
      getTimeD in interface FlightTimes
      Returns:
      the full departure time of the flight
      See Also:
    • getTimeA

      public ZonedDateTime getTimeA()
      Description copied from interface: FlightTimes
      Returns the arrival time of the flight, with full timezone information. The date component of this value can be ignored, but may contain significant information.
      Specified by:
      getTimeA in interface FlightTimes
      Returns:
      the full arrival time of the flight
      See Also:
    • getSimBriefID

      public String getSimBriefID()
      Returns the SimBrief ID for this package.
      Returns:
      the static ID
    • getSimBriefUserID

      public String getSimBriefUserID()
      Returns the SimBrief User ID for this package.
      Returns:
      the SimBrief user ID
    • getRequestID

      public String getRequestID()
      Returns the SimBrief request ID.
      Returns:
      the SimBrief request ID
    • getFormat

      public PackageFormat getFormat()
      Returns the briefing package format.
      Returns:
      the format
    • getReleaseVersion

      public int getReleaseVersion()
      Returns the briefing release version.
      Returns:
      the version
    • getCreatedOn

      public Instant getCreatedOn()
      Returns the generation date of this package.
      Returns:
      the date/time the package was generated by SimBrief
    • getAIRAC

      public int getAIRAC()
      Returns the AIRAC version used for this route.
      Returns:
      the AIRAC version
    • getAlternates

      public List<Airport> getAlternates()
      Returns the arrival alternate Airports.
      Returns:
      a List of Airports
    • getCruiseAltitude

      public String getCruiseAltitude()
      Returns the cruise altitude.
      Returns:
      the altitude
    • getRoute

      public String getRoute()
      Returns the flight route.
      Returns:
      the flight route
    • getTailCode

      public String getTailCode()
      Returns the aircraft tail code.
      Returns:
      the tail code
    • getAirframeID

      public String getAirframeID()
      Returns the SimBrief custom airframe ID.
      Returns:
      the aiframe ID
    • getETOPS

      public ETOPS getETOPS()
      Returns the route ETOPS rating.
      Returns:
      the ETOPS rating
    • getETOPSAlternates

      public List<Airport> getETOPSAlternates()
      Returns the ETOPS diversion Airports.
      Returns:
      a List of Airports
    • getETOPSMidpoint

      public GeoLocation getETOPSMidpoint()
      Returns the ETOPS equal time point location.
      Returns:
      a GeoLocation, or null
    • getRunwayD

      public String getRunwayD()
      Returns the departure Runway.
      Returns:
      the departure runway name
    • getRunwayA

      public String getRunwayA()
      Returns the arrival Runway.
      Returns:
      the arrival runway name
    • getURL

      public String getURL()
      Returns the URL used to download the SimBrief package.
      Returns:
      the SimBrief URL
    • getBasePlanURL

      public String getBasePlanURL()
      Returns the base URL for downloadable Flight Plans.
      Returns:
      the URL
    • getFlightPlans

      public Collection<FlightPlan> getFlightPlans()
      Returns the Flight Plans in this briefing package.
      Returns:
      a Collection of FlightPlans
    • getXML

      public Document getXML()
      Returns the raw XML generated by SimBrief.
      Returns:
      the XML Document
    • getBaseFuel

      public int getBaseFuel()
      Returns the base fuel load.
      Returns:
      fuel the fuel in pounds
    • getTaxiFuel

      public int getTaxiFuel()
      Returns the taxi fuel load.
      Returns:
      fuel the fuel in pounds
    • getEnrouteFuel

      public int getEnrouteFuel()
      Returns the enroute fuel load.
      Returns:
      fuel the fuel in pounds
    • getAlternateFuel

      public int getAlternateFuel()
      Returns the alternate fuel load.
      Returns:
      fuel the fuel in pounds
    • getTotalFuel

      public int getTotalFuel()
      Returns the total fuel load.
      Returns:
      the fuel in pounds
    • getBriefingText

      public String getBriefingText()
      Returns the HTML pilot briefing text.
      Returns:
      the HTML text
    • getPax

      public int getPax()
      Returns the number of passengers booked for this flight.
      Returns:
      the number of passengers
    • getBaggageWeight

      public int getBaggageWeight()
      Returns the total baggage weight for this flight.
      Returns:
      the weight in pounds
    • getBagWeight

      public int getBagWeight()
      Returns the per-passenger baggage weight for this flight.
      Returns:
      the weight in pounds
    • getCargoWeight

      public int getCargoWeight()
      Returns the additional cargo weight for this flight.
      Returns:
      the weight in pounds
    • addPlan

      public void addPlan(FlightPlan fp)
      Adds a flight plan to the briefing package.
      Parameters:
      fp - a FlightPlan
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the generation date of this package.
      Parameters:
      dt - the date/time the package was generated by SimBrief
    • setSimBriefID

      public void setSimBriefID(String id)
      Updates the SimBrief plan ID.
      Parameters:
      id - the SimBrief ID
    • setReleaseVersion

      public void setReleaseVersion(int v)
      Updates the SimBrief release version.
      Parameters:
      v - the version
    • setSimBriefUserID

      public void setSimBriefUserID(String id)
      Updates the SimBrief User ID.
      Parameters:
      id - the SimBrief user ID
    • setRequestID

      public void setRequestID(String id)
      Updates the SimBrief request ID.
      Parameters:
      id - the SimBrief request ID
    • setAIRAC

      public void setAIRAC(int airac)
      Updates the AIRAC version used for this route.
      Parameters:
      airac - the AIRAC version
    • setAirportD

      public void setAirportD(Airport a)
      Updates the departure Airport.
      Parameters:
      a - the Airport
    • setAirportA

      public void setAirportA(Airport a)
      Updates the arrival Airport.
      Parameters:
      a - the Airport
    • setTimeD

      public void setTimeD(Instant dt)
      Sets the expected departure time.
      Parameters:
      dt - the departure date/time in UTC
    • setTimeA

      public void setTimeA(Instant dt)
      Sets the expected arrival time.
      Parameters:
      dt - the arrival date/time in UTC
    • addAirportL

      public void addAirportL(Airport a)
      Adds a destination alternate Airport.
      Parameters:
      a - the Airport
    • addETOPSAlternate

      public void addETOPSAlternate(Airport a)
      Adds an ETOPS alternate Airport.
      Parameters:
      a - the Airport
    • setETOPSMidpoint

      public void setETOPSMidpoint(GeoLocation loc)
      Sets the ETOPS equal time midpoint.
      Parameters:
      loc -
    • setCruiseAltitude

      public void setCruiseAltitude(String alt)
      Updates the cruise altitude.
      Parameters:
      alt - the altitude in feet
    • setRoute

      public void setRoute(String rt)
      Updates the flight route.
      Parameters:
      rt - the route
    • setETOPS

      public void setETOPS(ETOPS e)
      Updates the route's ETOPS rating.
      Parameters:
      e - an ETOPS
    • setTailCode

      public void setTailCode(String tc)
      Updates the aircraft tail code.
      Parameters:
      tc - the tail code
    • setAirframeID

      public void setAirframeID(String id)
      Updates the SimBrief custom airframe ID.
      Parameters:
      id - the ID
    • setRunwayD

      public void setRunwayD(String rwy)
      Updates the departure Runway.
      Parameters:
      rwy - the departure runway name
    • setRunwayA

      public void setRunwayA(String rwy)
      Updates the arrival Runway.
      Parameters:
      rwy - the arrival runway name
    • setURL

      public void setURL(String url)
      Updates the URL used to download the briefing package.
      Parameters:
      url - the SimBrief URL
    • setBasePlanURL

      public void setBasePlanURL(String url)
      Updates the base Flight Plan URL.
      Parameters:
      url - the URL
    • setXML

      public void setXML(Document doc)
      Updates the raw XML generated by SimBrief.
      Parameters:
      doc - the XML Document
    • setBaseFuel

      public void setBaseFuel(int fuel)
      Updates the base fuel load.
      Parameters:
      fuel - the fuel in pounds
    • setTaxiFuel

      public void setTaxiFuel(int fuel)
      Updates the taxi fuel load.
      Parameters:
      fuel - the fuel in pounds
    • setEnrouteFuel

      public void setEnrouteFuel(int fuel)
      Updates the enroute fuel load.
      Parameters:
      fuel - the fuel in pounds
    • setAlternateFuel

      public void setAlternateFuel(int fuel)
      Updates the alternate fuel load.
      Parameters:
      fuel - the fuel in pounds
    • setPax

      public void setPax(int pax)
      Updates the number of passengers booked on this flight.
      Parameters:
      pax - the number of passengers
    • setBaggageWeight

      public void setBaggageWeight(int wt)
      Updates the total baggage weight for this flight.
      Parameters:
      wt - the weight in pounds
    • setBagWeight

      public void setBagWeight(int wt)
      Updates the per-passenger baggage weight for this flight.
      Parameters:
      wt - the weight in pounds
    • setCargoWeight

      public void setCargoWeight(int wt)
      Updates the additional cargo weight for this flight.
      Parameters:
      wt - the weight in pounds