Class XACARSFlightReport
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.Flight
org.deltava.beans.flight.FlightReport
org.deltava.beans.flight.FDRFlightReport
org.deltava.beans.flight.XACARSFlightReport
- All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, FlightData, FlightNumber, IDBean, RoutePair, TimeSpan, ViewEntry, Cacheable
A class for storing XACARS-submitted Flight Reports.
- Since:
- 4.1
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface RoutePair
RoutePair.RoutePairImplModifier and TypeInterfaceDescriptionstatic classHelper class when all you need is a naked RoutePair. -
Field Summary
Fields inherited from class FDRFlightReport
_stateChangeTimesFields inherited from class FlightReport
ATTR_WARN_MASK -
Constructor Summary
ConstructorsConstructorDescriptionXACARSFlightReport(Airline a, int flightNumber, int leg) Creates a new XACARS Flight Report object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the alternate Airport.doubleReturns the average frame rate for this flight.longReturns the aircraft/simulator capabilities flags.getFDR()Returns the Flight Data recorder used for this flight.intReturns the XACARS major version used on this flight.intReturns the XACARS minor version used on this flight.voidUpdates the alternate Airport.voidsetMajorVersion(int v) Sets the XACARS major version used on this flight.voidsetMinorVersion(int v) Sets the XACARS minor version used on this flight.Methods inherited from class FDRFlightReport
getAirborneTime, getBlockTime, getDuration, getEndLocation, getEndTime, getGateFuel, getGateWeight, getLandingDistance, getLandingFuel, getLandingHeading, getLandingLocation, getLandingN1, getLandingScore, getLandingSpeed, getLandingTime, getLandingVSpeed, getLandingWeight, getStartLocation, getStartTime, getTakeoffDistance, getTakeoffFuel, getTakeoffHeading, getTakeoffLocation, getTakeoffN1, getTakeoffSpeed, getTakeoffTime, getTakeoffWeight, getTaxiFuel, getTaxiInTime, getTaxiOutTime, getTaxiTime, getTaxiWeight, getTotalFuel, setEndLocation, setEndTime, setGateFuel, setGateWeight, setLandingDistance, setLandingFuel, setLandingHeading, setLandingLocation, setLandingN1, setLandingScore, setLandingSpeed, setLandingTime, setLandingVSpeed, setLandingWeight, setStartLocation, setStartTime, setTakeoffDistance, setTakeoffFuel, setTakeoffHeading, setTakeoffLocation, setTakeoffN1, setTakeoffSpeed, setTakeoffTime, setTakeoffWeight, setTaxiFuel, setTaxiTime, setTaxiWeight, setTotalFuelModifier and TypeMethodDescriptionReturns the time that the aircraft was airborne for this flight.Returns the total time of the flight.final DurationA method to return the exact length of the flight.Returns the final route position for this flight.The end date/time of this span.intReturns the amount of fuel at the end of the flight.intReturns the weight of the aircraft at the end of the flight.intReturns the distance from the destination airport at landing.intReturns the amount of fuel at touchdown.intReturns the heading at touchdown.Returns the position at touchdown.doubleReturns the average N1 speed of the engines at touchdown.doubleReturns the landing score.intReturns the aircraft airspeed at touchdown.Returns the date/time that the aircraft touched down.intReturns the vertical speed of the aircraft at touchdown.intReturns the weight of the aircraft at touchdown.Returns the first route position for this flight.The start date/time of this span.intReturns the distance from the origin airport at takeoff.intReturns the amount of fuel at takeoff.intReturns the heading at takeoff.Returns the position at takeoff.doubleReturns the average N1 speed of the engines at takeoff.intReturns the aircraft airspeed at takeoff.Returns the date/time of takeoff.intReturns the weight of the aircraft at takeoff.intReturns the amount of fuel at pushback.Returns the inbound taxi time.Returns the outbound taxi time.Returns the date/time of pushback.intReturns the aircraft weight at pushback.intReturns the total amount of fuel burned.voidUpdates the final route position for this flight.voidsetEndTime(Instant dt) Updates the end time of the flight.voidsetGateFuel(int f) Updates the amount of fuel at the end of the flight.voidsetGateWeight(int w) Updates the weight of the aircraft at the end of the flight.voidsetLandingDistance(int d) Updates the distance from the destination airport where touchdown occured.voidsetLandingFuel(int f) Updates the amount of fuel at touchdown.voidsetLandingHeading(int hdg) Updates the heading at touchdown.voidUpdates the position at touchdown.voidsetLandingN1(double n1) Updates the average N1 speed of the engines at touchdown.voidsetLandingScore(double sc) Updates the landing score.voidsetLandingSpeed(int s) Updates the airspeed at touchdown.voidUpdates the landing date/time.voidsetLandingVSpeed(int s) Updates the vertical speed at touchdown.voidsetLandingWeight(int w) Updates the weight of the aircraft at touchdown.voidUpdates the first route position for this flight.voidsetStartTime(Instant dt) Updates the start time of the flight.voidsetTakeoffDistance(int d) Updates the distance from the origin airport where takeoff occured.voidsetTakeoffFuel(int f) Updates the amount of fuel at takeoff.voidsetTakeoffHeading(int hdg) Updates the heading at takeoff.voidUpdates the position at takeoff.voidsetTakeoffN1(double n1) Updates the average N1 of the engines at takeoff.voidsetTakeoffSpeed(int s) Updates the airspeed at takeoff.voidUpdates the takeoff date/time.voidsetTakeoffWeight(int w) Updates the aircraft weight at takeoff.voidsetTaxiFuel(int f) Updates the fuel amount at pushback.voidsetTaxiTime(Instant dt) Updates the time the aircraft was pushed back.voidsetTaxiWeight(int w) Updates the weight of the aircraft at pushback.voidsetTotalFuel(int f) Updates the total amount of fuel burned during the flight.Methods inherited from class FlightReport
addStatusUpdate, addStatusUpdate, compareTo, getAttributes, getAuthorID, getCaptEQType, getComments, getDatabaseID, getDate, getDisposedOn, getLength, getLoadFactor, getNetwork, getPassengers, getRank, getRemarks, getRoute, getRowClassName, getSimulator, getStatus, getStatusUpdates, getSubmittedOn, getYear, hasAttribute, hasDatabaseID, setAttribute, setAttributes, setAuthorID, setCaptEQType, setCaptEQType, setComments, setDatabaseID, setDate, setDisposedOn, setID, setLeg, setLength, setLoadFactor, setNetwork, setPassengers, setRank, setRemarks, setRoute, setSimulator, setStatus, setSubmittedOnModifier and TypeMethodDescriptionvoidaddStatusUpdate(int authorID, HistoryType type, String msg) Creates a new status update and adds it to the Flight Report.voidAdds a status update to this Flight Report.intintReturns the attributes for this Flight Report.intReturns the Author of this bean.Returns if this flight counts towards promotion in a particular equipment type program.Returns the disposition comments for this Flight Report.intgetDatabaseID(DatabaseID idType) Sets the database row ID of a relatied database row.getDate()Returns the date of the flight.The date/time this Flight Report was disposed on.intReturns the length of the fllight in hours multiplied by ten.doubleReturns the load factor for this flight.Returns the OnlineNetwork the flight is operated on.intReturns the number of passengers carried on this flight.getRank()Returns the Pilot's rank at the time of the Flight.Returns the remarks for this Flight Report.getRoute()Returns the filed Flight Route.Returns the CSS class for this object if rendered in a view table.Returns the Simulator used for this flight.Returns the status of this Flight Report.Returns the flight status history.The date/time this Flight Report was submitted for approval.intgetYear()Returns the year the Flight Report was flown.booleanReturns the presence of a particular flight Attribute.booleanhasDatabaseID(DatabaseID idType) Returns whether this Flight has a related database row ID.voidsetAttribute(Attribute a, boolean isSet) Set/Clear a particular Attribute for this Flight Report.voidsetAttributes(int attrs) Sets the attributes for this Flight Report.voidsetAuthorID(int id) Updates the author of this bean.voidsetCaptEQType(String eqType) Sets if this Flight counts towards promotion in a particular equipment program.voidsetCaptEQType(Collection<String> eqTypes) Sets if this Flight counts towards promotion in a particular equipment program.voidsetComments(String comments) Sets the disposition comments for this Flight Report.voidsetDatabaseID(DatabaseID idType, int id) Sets the database row ID of a relatied database row.voidUpdates the date that this Flight was flown on.voidsetDisposedOn(Instant dd) Updates the date/time this Flight Report was approved or rejected on.voidsetID(int id) Updates the database ID, and the database ID of any associated status updates.final voidsetLeg(int leg) Sets the Flight Leg.voidsetLength(int length) Sets the length of this Flight, in hours multiplied by 10.voidsetLoadFactor(double lf) Updates the load factor for this flight.voidsetNetwork(OnlineNetwork network) Updates the Online Network used on this Flight.voidsetPassengers(int ps) Updates the number of passengers carried on this flight.voidUpdates the rank of the Pilot filing this report.voidsetRemarks(String remarks) Sets the remarks for this Flight Report.voidUpdates the filed Flight Route.voidsetSimulator(Simulator sim) Updates the Simulator used for this flight.voidsetStatus(FlightStatus status) Sets the status of this Flight Report.voidUpdates the date/time this Flight Report was submitted on.Methods inherited from class Flight
equals, getAirline, getAirportA, getAirportD, getCallsign, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, getLegCode, getShortCode, hashCode, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, toStringModifier and TypeMethodDescriptionbooleanReturns the Airline.Returns the arrival Airport.Returns the departure Airport.Returns the flight code as a callsign, using the Airline ICAO code.intReturns the distance between the Airports.Returns the Equipment type for this flightReturns a text representation of the Flight in the format "CODE### Leg #".intReturns the Flight Number.intgetLeg()Returns the Flight Leg.Returns an abbreviated version of the Flight code with a dash instead of text.Returns the Flight code without the leg.inthashCode()voidSet the Airline for this flight.voidSets the Arrival Airport object for this flight.voidSets the Departure Airport object for this flight.voidsetEquipmentType(String eqType) Sets the equipment type for this flight.voidsetFlightNumber(int fNumber) Set the Flight Number for this flighttoString()Methods inherited from class DatabaseBean
cacheKey, getHexID, getID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.getHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from interface CalendarEntry
getDateMethods inherited from interface FlightData
getEquipmentTypeMethods inherited from interface RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches, midPointModifier and TypeMethodDescriptiondefault StringReturns a key that describes the route pair.Returns the airports in this Route Pair.default FlightTypeReturns the flight type for customs/gate purposes.default booleanReturns whether this RoutePair includes a particular IATA or ICAO code.default booleanReturns whether both airports are populated.default booleanReturns whether this RoutePair matches a particular Route Pair.default GeoLocationmidPoint()Returns the midpoint between the two Airports on a Great Circle route.Methods inherited from interface TimeSpan
hasTimes, validateDatesModifier and TypeMethodDescriptiondefault booleanhasTimes()Returns whether the start and end times are populated.default voidValidates that the start/end dates are present and is chronological order.
-
Constructor Details
-
XACARSFlightReport
Creates a new XACARS Flight Report object.- Parameters:
a- the AirlineflightNumber- the flight numberleg- the leg number
-
-
Method Details
-
getFDR
Description copied from interface:FlightDataReturns the Flight Data recorder used for this flight.- Specified by:
getFDRin interfaceFlightData- Overrides:
getFDRin classFlightReport- Returns:
- a Recorder enum or null if none/unknown
-
getMajorVersion
public int getMajorVersion()Returns the XACARS major version used on this flight.- Returns:
- the major version
-
getMinorVersion
public int getMinorVersion()Returns the XACARS minor version used on this flight.- Returns:
- the minor version
-
getAverageFrameRate
public double getAverageFrameRate()Description copied from class:FDRFlightReportReturns the average frame rate for this flight.- Specified by:
getAverageFrameRatein classFDRFlightReport- Returns:
- the average frame rate in frames per second
-
getCapabilities
public long getCapabilities()Description copied from class:FDRFlightReportReturns the aircraft/simulator capabilities flags.- Specified by:
getCapabilitiesin classFDRFlightReport- Returns:
- the Capabilities flag bitmap
-
getAirportL
-
setAirportL
Updates the alternate Airport.- Parameters:
a- the Airport, or null if none
-
setMinorVersion
public void setMinorVersion(int v) Sets the XACARS minor version used on this flight.- Parameters:
v- the minor version
-
setMajorVersion
public void setMajorVersion(int v) Sets the XACARS major version used on this flight.- Parameters:
v- the major version
-