Class BriefingPackage
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.simbrief.BriefingPackage
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store a SimBrief briefing package.
- Since:
- 10.3
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a destination alternate Airport.void
Adds an ETOPS alternate Airport.void
addPlan
(FlightPlan fp) Adds a flight plan to the briefing package.int
getAIRAC()
Returns the AIRAC version used for this route.Returns the SimBrief custom airframe ID.int
Returns the alternate fuel load.Returns the arrival alternate Airports.int
Returns the total baggage weight for this flight.int
Returns the per-passenger baggage weight for this flight.int
Returns the base fuel load.Returns the base URL for downloadable Flight Plans.Returns the HTML pilot briefing text.int
Returns the additional cargo weight for this flight.Returns the generation date of this package.Returns the cruise altitude.int
Returns the enroute fuel load.getETOPS()
Returns the route ETOPS rating.Returns the ETOPS diversion Airports.Returns the ETOPS equal time point location.Returns the Flight Plans in this briefing package.Returns the briefing package format.int
getPax()
Returns the number of passengers booked for this flight.int
Returns the briefing release version.Returns the SimBrief request ID.getRoute()
Returns the flight route.Returns the arrival Runway.Returns the departure Runway.Returns the SimBrief ID for this package.Returns the SimBrief User ID for this package.Returns the aircraft tail code.int
Returns the taxi fuel load.int
Returns the total fuel load.getURL()
Returns the URL used to download the SimBrief package.getXML()
Returns the raw XML generated by SimBrief.void
setAIRAC
(int airac) Updates the AIRAC version used for this route.void
setAirframeID
(String id) Updates the SimBrief custom airframe ID.void
setAlternateFuel
(int fuel) Updates the alternate fuel load.void
setBaggageWeight
(int wt) Updates the total baggage weight for this flight.void
setBagWeight
(int wt) Updates the per-passenger baggage weight for this flight.void
setBaseFuel
(int fuel) Updates the base fuel load.void
setBasePlanURL
(String url) Updates the base Flight Plan URL.void
setCargoWeight
(int wt) Updates the additional cargo weight for this flight.void
setCreatedOn
(Instant dt) Updates the generation date of this package.void
setCruiseAltitude
(String alt) Updates the cruise altitude.void
setEnrouteFuel
(int fuel) Updates the enroute fuel load.void
Updates the route's ETOPS rating.void
Sets the ETOPS equal time midpoint.void
setPax
(int pax) Updates the number of passengers booked on this flight.void
setReleaseVersion
(int v) Updates the SimBrief release version.void
setRequestID
(String id) Updates the SimBrief request ID.void
Updates the flight route.void
setRunwayA
(String rwy) Updates the arrival Runway.void
setRunwayD
(String rwy) Updates the departure Runway.void
setSimBriefID
(String id) Updates the SimBrief plan ID.void
Updates the SimBrief User ID.void
setTailCode
(String tc) Updates the aircraft tail code.void
setTaxiFuel
(int fuel) Updates the taxi fuel load.void
Updates the URL used to download the briefing package.void
Updates the raw XML generated by SimBrief.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
BriefingPackage
BriefingPackage(int id, PackageFormat fmt) Creates the bean.- Parameters:
id
- the Flight Report database IDfmt
- the PackageFormat
-
-
Method Details
-
getSimBriefID
-
getSimBriefUserID
Returns the SimBrief User ID for this package.- Returns:
- the SimBrief user ID
-
getRequestID
-
getFormat
-
getReleaseVersion
public int getReleaseVersion()Returns the briefing release version.- Returns:
- the version
-
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
-
getCruiseAltitude
-
getRoute
-
getTailCode
-
getAirframeID
-
getETOPS
-
getETOPSAlternates
-
getETOPSMidpoint
Returns the ETOPS equal time point location.- Returns:
- a GeoLocation, or null
-
getRunwayD
-
getRunwayA
-
getURL
Returns the URL used to download the SimBrief package.- Returns:
- the SimBrief URL
-
getBasePlanURL
-
getFlightPlans
Returns the Flight Plans in this briefing package.- Returns:
- a Collection of FlightPlans
-
getXML
-
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
-
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
Adds a flight plan to the briefing package.- Parameters:
fp
- a FlightPlan
-
setCreatedOn
Updates the generation date of this package.- Parameters:
dt
- the date/time the package was generated by SimBrief
-
setSimBriefID
-
setReleaseVersion
public void setReleaseVersion(int v) Updates the SimBrief release version.- Parameters:
v
- the version
-
setSimBriefUserID
Updates the SimBrief User ID.- Parameters:
id
- the SimBrief user ID
-
setRequestID
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
-
addAirportL
Adds a destination alternate Airport.- Parameters:
a
- the Airport
-
addETOPSAlternate
Adds an ETOPS alternate Airport.- Parameters:
a
- the Airport
-
setETOPSMidpoint
-
setCruiseAltitude
Updates the cruise altitude.- Parameters:
alt
- the altitude in feet
-
setRoute
-
setETOPS
-
setTailCode
-
setAirframeID
Updates the SimBrief custom airframe ID.- Parameters:
id
- the ID
-
setRunwayD
Updates the departure Runway.- Parameters:
rwy
- the departure runway name
-
setRunwayA
Updates the arrival Runway.- Parameters:
rwy
- the arrival runway name
-
setURL
Updates the URL used to download the briefing package.- Parameters:
url
- the SimBrief URL
-
setBasePlanURL
-
setXML
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
-