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 org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Field Summary
FieldsFields inherited from class org.deltava.beans.flight.FDRFlightReport
_stateChangeTimes
Fields inherited from class org.deltava.beans.flight.FlightReport
ATTR_ACADEMY, ATTR_ACARS, ATTR_AIRSPACEWARN, ATTR_CHARTER, ATTR_CHECKRIDE, ATTR_DISPATCH, ATTR_DIVERT, ATTR_ETOPSWARN, ATTR_FDR_MASK, ATTR_FPI, ATTR_HISTORIC, ATTR_IVAO, ATTR_NOTRATED, ATTR_ONLINE_MASK, ATTR_PEDGE, ATTR_POSCON, ATTR_RANGEWARN, ATTR_REFUELWARN, ATTR_ROUTEWARN, ATTR_RWYSFCWARN, ATTR_RWYWARN, ATTR_SIMBRIEF, ATTR_SIMFDR, ATTR_TIMEWARN, ATTR_VATSIM, ATTR_WARN_MASK, ATTR_WEIGHTWARN, ATTR_XACARS, MIN_ACARS_CLIENT
-
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.double
Returns the average frame rate for this flight.int
getBeta()
Returns the ACARS beta build number.Returns the total time of the flight.Returns the amount of time spent loading passengers/cargo.long
Returns the aircraft/simulator capabilities flags.int
Returns the total cargo weight.int
Returns 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.double
Returns the G-Forces at touchdown.final int
Returns 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.int
Returns the total passenger weight.int
Returns 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.int
getTime
(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.void
setAircraftCode
(String code) Updates the aircraft code used for this flight.void
setAircraftPath
(String path) Updates the aircraft path in the simulator.void
Updates the arrival date/time.void
Updates the aircraft author.void
setAverageFrameRate
(double avgRate) Updates the average simulator frame rate for this flight.void
setBeta
(int beta) Updates the ACARS beta build number.void
setBoardTime
(int secs) Updates the amount of time spent loading passengers/cargo.void
setCapabilities
(long cap) Sets aircraft/sim capabilities flags.void
setCargoWeight
(int wt) Updates the cargo weight.void
setClientBuild
(int ver) Updates the ACARS client build number.void
setDeboardTime
(int secs) Updates the amount of time spent unloading passengers/cargo.void
Updates the departure date/time.void
Updates the FDE used for this flight.void
setLandingCategory
(ILSCategory ilscat) Sets the ILS category.void
setLandingG
(double g) Updates the G-Forces at touchdown.void
setOnlineTime
(int secs) Updates the amount of time spent connected to an Online Network.void
Updates whether the flight was on time.void
setPaxWeight
(int wt) Updates the passenger weight.void
setRestoreCount
(int cnt) Updates the number of ACARS in-flight restores during this flight.void
Sets the aircraft SDK used.void
setTailCode
(String tc) Updates the registration code of the aircraft.void
setTime
(int rate, int secs) Updates the amount of time at a particular time acceleration rate.void
setTOCTime
(Instant dt) Updates the Top of Climb date/time.void
setTODTime
(Instant dt) Updates the Top of Descent date/time.Methods inherited from class org.deltava.beans.flight.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, setTotalFuel
Methods inherited from class org.deltava.beans.flight.FlightReport
addStatusUpdate, addStatusUpdate, compareTo, getAttributes, getAuthorID, getCaptEQType, getComments, getDatabaseID, getDate, getDisposedOn, getLoadFactor, getNetwork, getPassengers, getRank, getRemarks, getRoute, getRowClassName, getSimulator, getStatus, getStatusUpdates, getSubmittedOn, hasAttribute, hasDatabaseID, setAttribute, setAttributes, setAuthorID, setCaptEQType, setCaptEQType, setComments, setDatabaseID, setDate, setDisposedOn, setID, setLeg, setLength, setLoadFactor, setNetwork, setPassengers, setRank, setRemarks, setRoute, setSimulator, setStatus, setSubmittedOn
Methods inherited from class org.deltava.beans.Flight
equals, getAirline, getAirportA, getAirportD, getCallsign, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, getLegCode, getShortCode, hashCode, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, toString
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, getHexID, getID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.CalendarEntry
getDate
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.deltava.beans.flight.FlightData
getEquipmentType
Methods inherited from interface org.deltava.beans.FlightNumber
getAirline, getFlightNumber, getLeg
Methods inherited from interface org.deltava.beans.schedule.FlightTimes
hasFlightTimes
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirportA, getAirportD, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
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:FlightData
Returns the Flight Data recorder used for this flight.- Specified by:
getFDR
in interfaceFlightData
- Overrides:
getFDR
in classFlightReport
- Returns:
- a Recorder enum or null if none/unknown
-
getBlockTime
Description copied from class:FDRFlightReport
Returns the total time of the flight.- Overrides:
getBlockTime
in 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:
getLength
in 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:FDRFlightReport
Returns the average frame rate for this flight.- Specified by:
getAverageFrameRate
in 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:FDRFlightReport
Returns the aircraft/simulator capabilities flags.- Specified by:
getCapabilities
in classFDRFlightReport
- Returns:
- the Capabilities flag bitmap
-
getTimeD
Returns the flight start date/time in the simulator.- Specified by:
getTimeD
in 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:
getTimeA
in 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
-