Class BriefingPackage
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.simbrief.BriefingPackage
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, FlightTimes, RoutePair, Cacheable
A bean to store a SimBrief briefing package.
- Since:
- 10.3
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface RoutePair
RoutePair.RoutePairImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a destination alternate Airport.voidAdds an ETOPS alternate Airport.voidaddPlan(FlightPlan fp) Adds a flight plan to the briefing package.intgetAIRAC()Returns the AIRAC version used for this route.Returns the SimBrief custom airframe ID.Returns the arrival Airport.Returns the departure Airport.intReturns the alternate fuel load.Returns the arrival alternate Airports.intReturns the total baggage weight for this flight.intReturns the per-passenger baggage weight for this flight.intReturns the base fuel load.Returns the base URL for downloadable Flight Plans.Returns the HTML pilot briefing text.intReturns the additional cargo weight for this flight.Returns the generation date of this package.Returns the cruise altitude.intReturns 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.intgetPax()Returns the number of passengers booked for this flight.intReturns 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.intReturns the taxi fuel load.getTimeA()Returns the arrival time of the flight, with full timezone information.getTimeD()Returns the departure time of the flight, with full timezone information.intReturns the total fuel load.getURL()Returns the URL used to download the SimBrief package.getXML()Returns the raw XML generated by SimBrief.voidsetAIRAC(int airac) Updates the AIRAC version used for this route.voidsetAirframeID(String id) Updates the SimBrief custom airframe ID.voidUpdates the arrival Airport.voidUpdates the departure Airport.voidsetAlternateFuel(int fuel) Updates the alternate fuel load.voidsetBaggageWeight(int wt) Updates the total baggage weight for this flight.voidsetBagWeight(int wt) Updates the per-passenger baggage weight for this flight.voidsetBaseFuel(int fuel) Updates the base fuel load.voidsetBasePlanURL(String url) Updates the base Flight Plan URL.voidsetCargoWeight(int wt) Updates the additional cargo weight for this flight.voidsetCreatedOn(Instant dt) Updates the generation date of this package.voidsetCruiseAltitude(String alt) Updates the cruise altitude.voidsetEnrouteFuel(int fuel) Updates the enroute fuel load.voidUpdates the route's ETOPS rating.voidSets the ETOPS equal time midpoint.voidsetPax(int pax) Updates the number of passengers booked on this flight.voidsetReleaseVersion(int v) Updates the SimBrief release version.voidsetRequestID(String id) Updates the SimBrief request ID.voidUpdates the flight route.voidsetRunwayA(String rwy) Updates the arrival Runway.voidsetRunwayD(String rwy) Updates the departure Runway.voidsetSimBriefID(String id) Updates the SimBrief plan ID.voidUpdates the SimBrief User ID.voidsetTailCode(String tc) Updates the aircraft tail code.voidsetTaxiFuel(int fuel) Updates the taxi fuel load.voidSets the expected arrival time.voidSets the expected departure time.voidUpdates the URL used to download the briefing package.voidUpdates the raw XML generated by SimBrief.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlightTimes
hasFlightTimesMethods inherited from interface RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
BriefingPackage
BriefingPackage(int id, PackageFormat fmt) Creates the bean.- Parameters:
id- the Flight Report database IDfmt- the PackageFormat
-
-
Method Details
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getTimeD
Description copied from interface:FlightTimesReturns 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:
getTimeDin interfaceFlightTimes- Returns:
- the full departure time of the flight
- See Also:
-
getTimeA
Description copied from interface:FlightTimesReturns 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:
getTimeAin interfaceFlightTimes- Returns:
- the full arrival time of the flight
- See Also:
-
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
-
setAirportD
-
setAirportA
-
setTimeD
Sets the expected departure time.- Parameters:
dt- the departure date/time in UTC
-
setTimeA
Sets the expected arrival time.- Parameters:
dt- the arrival date/time in UTC
-
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
-