Class SimFDRFlightReport
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
org.deltava.beans.flight.SimFDRFlightReport
- All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, FlightData, FlightNumber, IDBean, FlightTimes, RoutePair, TimeSpan, ViewEntry, Cacheable
A bean to store simFDR Flight Reports.
- Since:
- 7.0
- Version:
- 7.0
- 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 ACARSFlightReport
GENERIC_SDKFields inherited from class FDRFlightReport
_stateChangeTimesFields inherited from class FlightReport
ATTR_WARN_MASK -
Constructor Summary
ConstructorsConstructorDescriptionSimFDRFlightReport(Airline a, int flightNumber, int leg) Creates a new ACARS Flight Report object with a given flight. -
Method Summary
Modifier and TypeMethodDescriptiongetFDR()Returns the Flight Data recorder used for this flight.Returns the IATA codes as submitted by simFDR.voidsetIATACodes(String codes) Updates the IATA codes as sbumitted by simFDR.Methods inherited from class ACARSFlightReport
getAircraftCode, getAircraftPath, getAuthor, getAverageFrameRate, getBeta, getBlockTime, getBoardTime, getCapabilities, getCargoWeight, getClientBuild, getDeboardTime, getFDE, getLandingCategory, getLandingG, getLength, getLocalLandingTime, getLocalTakeoffTime, getOnlineTime, getOnTime, getPaxWeight, getRestoreCount, getSDK, getTailCode, getTime, getTimeA, getTimeD, getTimes, getTOCTime, getTODTime, setAircraftCode, setAircraftPath, setArrivalTime, setAuthor, setAverageFrameRate, setBeta, setBoardTime, setCapabilities, setCargoWeight, setClientBuild, setDeboardTime, setDepartureTime, setFDE, setLandingCategory, setLandingG, setOnlineTime, setOnTime, setPaxWeight, setRestoreCount, setSDK, setTailCode, setTime, setTOCTime, setTODTimeModifier 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.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.
-
Constructor Details
-
SimFDRFlightReport
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
-
-
Method Details
-
getFDR
Description copied from interface:FlightDataReturns the Flight Data recorder used for this flight.- Specified by:
getFDRin interfaceFlightData- Overrides:
getFDRin classACARSFlightReport- Returns:
- a Recorder enum or null if none/unknown
-
getIATACodes
Returns the IATA codes as submitted by simFDR.- Returns:
- a comma-delimited list of IATA codes
-
setIATACodes
Updates the IATA codes as sbumitted by simFDR.- Parameters:
codes- a comma-delimted list of IATA codes
-