Class ACARSFlightReport
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.ACARSFlightReport
- All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, FlightData, FlightNumber, IDBean, FlightTimes, RoutePair, TimeSpan, ViewEntry, Cacheable
- Direct Known Subclasses:
SimFDRFlightReport
A class for storing ACARS-submitted Flight Reports.
- Since:
- 1.0
- Version:
- 11.4
- 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
FieldsFields inherited from class FDRFlightReport
_stateChangeTimesFields inherited from class FlightReport
ATTR_WARN_MASK -
Constructor Summary
ConstructorsConstructorDescriptionACARSFlightReport(Airline a, int flightNumber, int leg) Creates a new ACARS Flight Report object with a given flight. -
Method Summary
Modifier and TypeMethodDescriptionReturns the aircraft code used for this flight.Returns the aircraft path in the simulator.Returns the aircraft author.doubleReturns the average frame rate for this flight.intgetBeta()Returns the ACARS beta build number.Returns the total time of the flight.Returns the amount of time spent loading passengers/cargo.longReturns the aircraft/simulator capabilities flags.intReturns the total cargo weight.intReturns the ACARS client build number.Returns the amount of time spent unloading passengers/cargo.getFDE()Returns the FDE used for this flight.getFDR()Returns the Flight Data recorder used for this flight.Returns the ILS category.doubleReturns the G-Forces at touchdown.final intReturns the length of the fllight in hours multiplied by ten.Returns the local landing date/time.Returns the local takeoff date/time.Returns the amount of time spent connected to an Online Network.Returns whether the flight matched the schedule times.intReturns the total passenger weight.intReturns the number of ACARS in-flight resotres on this flight.getSDK()Returns the aircraft SDK used for this flight.Returns the registration code of the aircraft.intgetTime(int rate) Returns the amount of time at a given time acceleration rate.getTimeA()Returns the flight arrival date/time in the simulator.getTimeD()Returns the flight start date/time in the simulator.getTimes()Returns a Map of times and acceleration rates.Returns the date/time that the aircraft reached Top of Climb.Returns the date/time that the aircraft reached Top of Descent.voidsetAircraftCode(String code) Updates the aircraft code used for this flight.voidsetAircraftPath(String path) Updates the aircraft path in the simulator.voidUpdates the arrival date/time.voidUpdates the aircraft author.voidsetAverageFrameRate(double avgRate) Updates the average simulator frame rate for this flight.voidsetBeta(int beta) Updates the ACARS beta build number.voidsetBoardTime(int secs) Updates the amount of time spent loading passengers/cargo.voidsetCapabilities(long cap) Sets aircraft/sim capabilities flags.voidsetCargoWeight(int wt) Updates the cargo weight.voidsetClientBuild(int ver) Updates the ACARS client build number.voidsetDeboardTime(int secs) Updates the amount of time spent unloading passengers/cargo.voidUpdates the departure date/time.voidUpdates the FDE used for this flight.voidsetLandingCategory(ILSCategory ilscat) Sets the ILS category.voidsetLandingG(double g) Updates the G-Forces at touchdown.voidsetOnlineTime(int secs) Updates the amount of time spent connected to an Online Network.voidUpdates whether the flight was on time.voidsetPaxWeight(int wt) Updates the passenger weight.voidsetRestoreCount(int cnt) Updates the number of ACARS in-flight restores during this flight.voidSets the aircraft SDK used.voidsetTailCode(String tc) Updates the registration code of the aircraft.voidsetTime(int rate, int secs) Updates the amount of time at a particular time acceleration rate.voidsetTOCTime(Instant dt) Updates the Top of Climb date/time.voidsetTODTime(Instant dt) Updates the Top of Descent date/time.Methods inherited from class FDRFlightReport
getAirborneTime, 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.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, 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.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 FlightTimes
hasFlightTimesModifier and TypeMethodDescriptiondefault booleanReturns if both the departure and arrrival date/times have been populated.Methods 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.
-
Field Details
-
GENERIC_SDK
- See Also:
-
-
Constructor Details
-
ACARSFlightReport
Creates a new ACARS Flight Report object with a given flight.- Parameters:
a- the AirlineflightNumber- the Flight Numberleg- the Leg Number- Throws:
NullPointerException- if the Airline Code is nullIllegalArgumentException- if the Flight Report is zero or negativeIllegalArgumentException- if the Leg is less than 1 or greater than 8- See Also:
-
-
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
-
getBlockTime
Description copied from class:FDRFlightReportReturns the total time of the flight.- Overrides:
getBlockTimein classFDRFlightReport- Returns:
- the total Duration
- See Also:
-
getLandingG
public double getLandingG()Returns the G-Forces at touchdown.- Returns:
- the G-Forces in G
- See Also:
-
getTime
public int getTime(int rate) Returns the amount of time at a given time acceleration rate.- Parameters:
rate- the acceleration rate- Returns:
- the amount of time in seconds at that acceleration rate
- See Also:
-
getTimes
-
getBoardTime
Returns the amount of time spent loading passengers/cargo.- Returns:
- the amount of time in seconds
- See Also:
-
getDeboardTime
Returns the amount of time spent unloading passengers/cargo.- Returns:
- the amount of time in seconds
- See Also:
-
getOnlineTime
Returns the amount of time spent connected to an Online Network.- Returns:
- the amount of time in seconds
- See Also:
-
getTOCTime
Returns the date/time that the aircraft reached Top of Climb.- Returns:
- the date/time of top of climb
- See Also:
-
getTODTime
Returns the date/time that the aircraft reached Top of Descent.- Returns:
- the date/time of top of descent
- See Also:
-
getLength
public final int getLength()Returns the length of the fllight in hours multiplied by ten. This is done to avoid rounding errors when using a floating point number. ACARS Flight Reports will use the time at 1x, 2x, and 4x acceleration to calculate the flight length if the length field is not already populated. This assumes that the ACARS client has performed the proper multiplication before submitting the data.- Overrides:
getLengthin classFlightReport- Returns:
- the length of the flight in hours multiplied by ten
- See Also:
-
getFDE
Returns the FDE used for this flight.- Returns:
- the AIR file name, or null
- See Also:
-
getSDK
Returns the aircraft SDK used for this flight.- Returns:
- the SDK code, or null
- See Also:
-
getAircraftCode
Returns the aircraft code used for this flight.- Returns:
- the aircraft code
- See Also:
-
getAuthor
-
getAircraftPath
Returns the aircraft path in the simulator.- Returns:
- the path name
- See Also:
-
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
-
getRestoreCount
public int getRestoreCount()Returns the number of ACARS in-flight resotres on this flight.- Returns:
- the number of flight restores
- See Also:
-
getClientBuild
public int getClientBuild()Returns the ACARS client build number.- Returns:
- the client build number
- See Also:
-
getBeta
public int getBeta()Returns the ACARS beta build number.- Returns:
- the beta number
- See Also:
-
getLandingCategory
-
getPaxWeight
public int getPaxWeight()Returns the total passenger weight.- Returns:
- the weight in pounds
-
getCargoWeight
public int getCargoWeight()Returns the total cargo weight.- Returns:
- the weight in pounds
-
getCapabilities
public long getCapabilities()Description copied from class:FDRFlightReportReturns the aircraft/simulator capabilities flags.- Specified by:
getCapabilitiesin classFDRFlightReport- Returns:
- the Capabilities flag bitmap
-
getTimeD
Returns the flight start date/time in the simulator.- Specified by:
getTimeDin interfaceFlightTimes- Returns:
- the departure date/time
- See Also:
-
getLocalTakeoffTime
Returns the local takeoff date/time. This is the simulator's local time at takeoff.- Returns:
- the takeoff date/time
-
getLocalLandingTime
Returns the local landing date/time. This is the simulator's local time at touchdown.- Returns:
- the touchdown date/time
-
getTimeA
Returns the flight arrival date/time in the simulator.- Specified by:
getTimeAin interfaceFlightTimes- Returns:
- the arrival date/time
- See Also:
-
getOnTime
Returns whether the flight matched the schedule times.- Returns:
- an OnTime enumeration
-
getTailCode
-
setTailCode
Updates the registration code of the aircraft.- Parameters:
tc- the tail code
-
setLandingG
public void setLandingG(double g) Updates the G-Forces at touchdown.- Parameters:
g- the G-forces in G- See Also:
-
setTime
public void setTime(int rate, int secs) Updates the amount of time at a particular time acceleration rate.- Parameters:
rate- the acceleration ratesecs- the amount of time in seconds- Throws:
IllegalArgumentException- if rate is not 0, 1, 2, 4- See Also:
-
setBoardTime
public void setBoardTime(int secs) Updates the amount of time spent loading passengers/cargo.- Parameters:
secs- the time in seconds- See Also:
-
setDeboardTime
public void setDeboardTime(int secs) Updates the amount of time spent unloading passengers/cargo.- Parameters:
secs- the time in seconds- See Also:
-
setOnlineTime
public void setOnlineTime(int secs) Updates the amount of time spent connected to an Online Network.- Parameters:
secs- the time in seconds- See Also:
-
setTOCTime
Updates the Top of Climb date/time.- Parameters:
dt- the date/time at top of climb- See Also:
-
setTODTime
Updates the Top of Descent date/time.- Parameters:
dt- the date/time at top of descent- See Also:
-
setFDE
Updates the FDE used for this flight.- Parameters:
airFile- the AIR file name, or null if unknown- See Also:
-
setAircraftCode
Updates the aircraft code used for this flight.- Parameters:
code- the aircraft code- See Also:
-
setAverageFrameRate
public void setAverageFrameRate(double avgRate) Updates the average simulator frame rate for this flight.- Parameters:
avgRate- the average rate in frames per second- See Also:
-
setRestoreCount
public void setRestoreCount(int cnt) Updates the number of ACARS in-flight restores during this flight.- Parameters:
cnt- the number of flight restores- See Also:
-
setClientBuild
public void setClientBuild(int ver) Updates the ACARS client build number.- Parameters:
ver- the build number- See Also:
-
setBeta
public void setBeta(int beta) Updates the ACARS beta build number.- Parameters:
beta- the beta number- See Also:
-
setLandingCategory
Sets the ILS category.- Parameters:
ilscat- the ILS category
-
setSDK
-
setAuthor
Updates the aircraft author.- Parameters:
author- the author name- See Also:
-
setAircraftPath
Updates the aircraft path in the simulator.- Parameters:
path- the path name- See Also:
-
setCapabilities
public void setCapabilities(long cap) Sets aircraft/sim capabilities flags.- Parameters:
cap- the Capabilities flags
-
setPaxWeight
public void setPaxWeight(int wt) Updates the passenger weight.- Parameters:
wt- the total passenger weight, in pounds
-
setCargoWeight
public void setCargoWeight(int wt) Updates the cargo weight.- Parameters:
wt- the total cargo weight, in pounds
-
setDepartureTime
Updates the departure date/time. This is the simulator's local time at start time.- Parameters:
dt- the departure date/time- See Also:
-
setArrivalTime
Updates the arrival date/time. This is the simulators' local time at end time.- Parameters:
dt- the arrival date/time- See Also:
-
setOnTime
Updates whether the flight was on time.- Parameters:
o- an OnTime value
-