Class FlightInfo
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSLogEntry
org.deltava.beans.acars.FlightInfo
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,ClientVersion
,AuthoredBean
,CalendarEntry
,FlightData
,FlightNumber
,IDBean
,RemoteAddressBean
,RoutePair
,TimeSpan
,ViewEntry
,Cacheable
A bean to store ACARS Flight Information records.
- Since:
- 1.0
- Version:
- 10.5
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Airline.Returns the destination Airport for this flight.Returns the origin Airport for this flight.Returns the divert Airport for this flight.Returns the filed altitude for this flight.boolean
Returns if this flight's position data is stored in the archive.int
Returns the Author of this bean.Returns the type of Autopilot used in the aircraft.getDate()
Returns the date of the flight.Returns the dispatcher type for this Flight.int
Returns the flight's dispatcher ID.int
Returns the database ID of the dispatch log entry.The duration of this span, or null if both times are not set.The end date/time of this span.Returns the equipment type used.getFDR()
Returns the Flight Data recorder used for this flight.Returns the flight code for this flight.int
Returns the Flight Number.getGateA()
Returns the arrival gate for this flight.getGateD()
Returns the departure gate for this flight.boolean
Returns if this flight has an associated Flight Report.boolean
Returns whether the ACARS client is 64-bit.boolean
getIsMP()
Returns if this flight was flown using ACARS multi-player.boolean
Returns whether the simulator platform is 64-bit.int
getLeg()
Returns the Flight Leg.double
Returns the load factor for this flight.Returns the mechanism used to generate the load factor.Returns the OnlineNetwork the flight is operated on.boolean
Returns if this flight was flown disconnected from the ACARS server.int
Returns the number of passengers on the flight.Returns the filed route for this flight.Returns the underlying simulator platform.Returns the last logged position for this flight.int
Returns the number of position records associated with this Flight.Returns the pilot's remarks for this flight.getRoute()
Returns the filed route for this flight.Returns the actual route data for this flight.int
Returns the database ID of the Dispatch route used.Displays the CSS class name for this table row.Returns the arrival Runway for this flight.Returns the departure Runway for this flight.int
getSeats()
Returns the number of available seats on this flight.getSID()
Returns the Departure Route for this flight.int
Returns the major version number of the Simulator used in this flight.int
Returns the minor version number of the Simulator used in this flight.Returns the Simulator used for this flight.getSTAR()
Returns the Arrival Route for this flight.Returns the date/time of this entry.int
Returns the transponder code used on this Flight.boolean
Returns if this bean contains flight plan data.boolean
Returns if this bean contains route data.boolean
Returns if runway data for this flight has been loaded.boolean
Returns if this flight has been validated as being in the schedule.void
Updates the Airline for the flight.void
Updates the destination Airport for this flight.void
Updates the origination Airport for this flight.void
Updates the alternate Airport for this flight.void
setAltitude
(String alt) Updates the filed altitude for this flight.void
setArchived
(boolean archived) Marks this Flight's position data as archived.void
setAuthorID
(int id) Updates the Pilot ID for the flight.void
Updates the autopilot type used in the aircraft.void
Marks this Flight as being planned by a Dispatcher.void
setDispatcherID
(int id) Updates the Disaptcher ID for the flight.void
setDispatchLogID
(int id) Updates the Dispatch Log ID used in this flight.void
setEndTime
(Instant dt) Updates the end date/time for this flight.void
Updates the aircraft used on this flight.void
Sets the Flight Data Recorder used on this Flight.void
setFlight
(int flight) Updates the flight number for the flight.void
setFlightCode
(String code) Deprecated.void
Updates the arrival Gate for this flight.void
Updates the departure Gate for this flight.void
setHasPIREP
(boolean hasPIREP) Updates whether this flight has an associated Flight Report.void
setIsACARS64Bit
(boolean is64) Updates whether ACARS is a 64-bit application.void
setIsMP
(boolean isMP) Updates whether this flight was flown using ACARS multi-player.void
setIsSim64Bit
(boolean is64) Updates whether the simulator is a 64-bit application.void
setLoadFactor
(double lf) Updates the load factor for this flight.void
setLoadType
(LoadType lt) Updates the mechanism used to generate the load factor for this flight.void
setOffline
(boolean offline) Updates whether this flight was flown disconnected from the ACARS server.void
setPassengers
(int pax) Updates the number of passengers on this flight.void
setPlanData
(Collection<NavigationDataBean> entries) Updates the flight plan data for this flight.void
Updates the underlying simulator platform.void
setPosition
(RouteEntry pos) Sets the current position of the flight.void
setPositionCount
(int posCount) Updates the number of position records for this Flight.void
setRemarks
(String remarks) Updates the pilot's remarks for this flight.void
Updates the filed route for this flight.void
setRouteData
(Collection<? extends RouteEntry> entries) Updates the actual route data for this flight.void
setRouteID
(int id) Updates the Dispatch Route ID used in this flight.void
setRunwayA
(Runway r) Updates the arrival Runway for this flight.void
setRunwayD
(Runway r) Updates the departure Runway for this flight.void
setScheduleValidated
(boolean isOK) Marks this Flight as having a valid flight route.void
setSeats
(int seats) Updates the number of seats on this flight.void
setSID
(TerminalRoute sid) Updates the Departure route used on this flight.void
setSimulator
(Simulator sim) Updates the Simulator used in this flight.void
setSimulatorVersion
(int major, int minor) Updates the simulator version used in this flight.void
setSTAR
(TerminalRoute star) Updates the Arrival Route used on this flight.void
setStartTime
(Instant dt) Updates the start date/time for this flight.void
setTXCode
(int tx) Updates the transponder code used on this flight.Methods inherited from class org.deltava.beans.acars.ACARSLogEntry
getAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersion
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.acars.ClientVersion
isBeta
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
Constructor Details
-
FlightInfo
public FlightInfo(int id) Creates a new Flight Information record.- Parameters:
id
- the flight ID- Throws:
IllegalArgumentException
- if id or conID are zero or negative
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- Returns:
- the author's database ID
- See Also:
-
getAirline
Description copied from interface:FlightNumber
Returns the Airline.- Specified by:
getAirline
in interfaceFlightNumber
- Returns:
- the Airline
-
getFlightNumber
public int getFlightNumber()Description copied from interface:FlightNumber
Returns the Flight Number.- Specified by:
getFlightNumber
in interfaceFlightNumber
- Returns:
- the flight number
-
getLeg
public int getLeg()Description copied from interface:FlightNumber
Returns the Flight Leg.- Specified by:
getLeg
in interfaceFlightNumber
- Returns:
- the leg
-
getNetwork
Description copied from interface:FlightData
Returns the OnlineNetwork the flight is operated on.- Specified by:
getNetwork
in interfaceFlightData
- Returns:
- an OnlineNetwork or null if offline
-
getDispatcherID
public int getDispatcherID()Returns the flight's dispatcher ID.- Returns:
- the database ID of the dispatcher, or zero if none
- See Also:
-
getRouteID
public int getRouteID()Returns the database ID of the Dispatch route used.- Returns:
- the route database ID
-
getDispatchLogID
public int getDispatchLogID()Returns the database ID of the dispatch log entry.- Returns:
- the log entry database ID
-
getDate
Description copied from interface:FlightData
Returns the date of the flight.- Specified by:
getDate
in interfaceCalendarEntry
- Specified by:
getDate
in interfaceFlightData
- Returns:
- the date/time
-
getStartTime
Description copied from class:ACARSLogEntry
Returns the date/time of this entry.- Specified by:
getStartTime
in interfaceTimeSpan
- Specified by:
getStartTime
in classACARSLogEntry
- Returns:
- the entry date/time
-
getEndTime
Description copied from interface:TimeSpan
The end date/time of this span.- Specified by:
getEndTime
in interfaceTimeSpan
- Returns:
- the end date/time
-
getDuration
Description copied from interface:TimeSpan
The duration of this span, or null if both times are not set.- Specified by:
getDuration
in interfaceTimeSpan
- Returns:
- a Duration, or null
-
getFlightCode
Returns the flight code for this flight.- Returns:
- the flight code (eg. DVA123)
- See Also:
-
getEquipmentType
Description copied from interface:FlightData
Returns the equipment type used.- Specified by:
getEquipmentType
in interfaceFlightData
- Returns:
- the equipment type
-
getAltitude
Returns the filed altitude for this flight.- Returns:
- the altitude in feet or a flight level
- See Also:
-
getAirportA
Returns the destination Airport for this flight.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the destination Airport bean
- See Also:
-
getGateA
Returns the arrival gate for this flight.- Returns:
- the arrival Gate bean, or null if unknown
- See Also:
-
getRunwayA
Returns the arrival Runway for this flight.- Returns:
- the arrival Runway, or null if unknown
- See Also:
-
getAirportD
Returns the origin Airport for this flight.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the origin Airport bean
- See Also:
-
getGateD
Returns the departure gate for this flight.- Returns:
- the origin Gate bean, or null if unknown
- See Also:
-
getRunwayD
Returns the departure Runway for this flight.- Returns:
- the departure Runway, or null if unknown
- See Also:
-
getAirportL
Returns the divert Airport for this flight.- Returns:
- the alternate Airport bean
- See Also:
-
getSID
Returns the Departure Route for this flight.- Returns:
- the SID TerminalRoute bean
- See Also:
-
getSTAR
Returns the Arrival Route for this flight.- Returns:
- the STAR TerminalRoute bean
- See Also:
-
getRoute
-
getRemarks
Returns the pilot's remarks for this flight.- Returns:
- the remarks
- See Also:
-
getAutopilotType
Returns the type of Autopilot used in the aircraft.- Returns:
- an AutopilotType
- See Also:
-
getSimulator
Description copied from interface:FlightData
Returns the Simulator used for this flight.- Specified by:
getSimulator
in interfaceFlightData
- Returns:
- a Simulator
-
getSimMajor
public int getSimMajor()Returns the major version number of the Simulator used in this flight.- Returns:
- the major version, or zero if unknown
-
getSimMinor
public int getSimMinor()Returns the minor version number of the Simulator used in this flight.- Returns:
- the minor version
-
getPlatform
Returns the underlying simulator platform.- Returns:
- an OperatingSystem
-
getIsSim64Bit
public boolean getIsSim64Bit()Returns whether the simulator platform is 64-bit.- Returns:
- TRUE if 64-bit, otherwise FALSE
-
getIsACARS64Bit
public boolean getIsACARS64Bit()Returns whether the ACARS client is 64-bit.- Returns:
- TRUE if 64-bit, otherwise FALSE
-
getOffline
public boolean getOffline()Returns if this flight was flown disconnected from the ACARS server.- Returns:
- TRUE if the flight was flown offline, otherwise FALSE
- See Also:
-
getIsMP
public boolean getIsMP()Returns if this flight was flown using ACARS multi-player.- Returns:
- TRUE if multi-player, otherwise FALSE
- See Also:
-
getHasPIREP
public boolean getHasPIREP()Returns if this flight has an associated Flight Report.- Returns:
- TRUE if a Flight Report was filed, otherwise FALSE
- See Also:
-
getArchived
public boolean getArchived()Returns if this flight's position data is stored in the archive.- Returns:
- TRUE if the Position data is in the archive, otherwise FALSE
- See Also:
-
getTXCode
public int getTXCode()Returns the transponder code used on this Flight.- Returns:
- the transponder code
- See Also:
-
getLoadFactor
public double getLoadFactor()Returns the load factor for this flight.- Returns:
- the load factor, or 0 if not set
- See Also:
-
getPassengers
public int getPassengers()Returns the number of passengers on the flight.- Returns:
- the number of passengers
- See Also:
-
getSeats
public int getSeats()Returns the number of available seats on this flight.- Returns:
- the number of seats
- See Also:
-
getLoadType
Returns the mechanism used to generate the load factor.- Returns:
- a LoadType
- See Also:
-
getPositionCount
public int getPositionCount()Returns the number of position records associated with this Flight.- Returns:
- the number of positions
- See Also:
-
getPosition
Returns the last logged position for this flight.- Returns:
- the latest PositionEntry, or NULL if no route data
-
getRouteData
Returns the actual route data for this flight.- Returns:
- a Collection of RouteEntry beans, or null
- See Also:
-
getPlanData
Returns the filed route for this flight.- Returns:
- a Collection of NavigationDataBeans, or null
- See Also:
-
hasRouteData
public boolean hasRouteData()Returns if this bean contains route data.- Returns:
- TRUE if route data exists within the bean, otherwise FALSE
- See Also:
-
hasPlanData
public boolean hasPlanData()Returns if this bean contains flight plan data.- Returns:
- TRUE if flight plan data exists within the bean, otherwise FALSE
- See Also:
-
hasRunwayData
public boolean hasRunwayData()Returns if runway data for this flight has been loaded.- Returns:
- TRUE if runway data exists, otherwise FALSE
- See Also:
-
isScheduleValidated
public boolean isScheduleValidated()Returns if this flight has been validated as being in the schedule.- Returns:
- TRUE if the route was validated, otherwise FALSE
-
getDispatcher
Returns the dispatcher type for this Flight.- Returns:
- a DispatchType
-
getFDR
Description copied from interface:FlightData
Returns the Flight Data recorder used for this flight.- Specified by:
getFDR
in interfaceFlightData
- Returns:
- a Recorder enum or null if none/unknown
-
setAuthorID
public void setAuthorID(int id) Updates the Pilot ID for the flight.- Specified by:
setAuthorID
in interfaceAuthoredBean
- Parameters:
id
- the database ID of the pilot flying this flight- See Also:
-
setAirline
-
setFlight
public void setFlight(int flight) Updates the flight number for the flight.- Parameters:
flight
- the flight number
-
setDispatcherID
public void setDispatcherID(int id) Updates the Disaptcher ID for the flight.- Parameters:
id
- the database ID of the dispatcher, or zero if none- See Also:
-
setRouteID
public void setRouteID(int id) Updates the Dispatch Route ID used in this flight.- Parameters:
id
- the database ID of the route, or zero if none- See Also:
-
setDispatchLogID
public void setDispatchLogID(int id) Updates the Dispatch Log ID used in this flight.- Parameters:
id
- the database ID of the dispatch data, or zero if none- See Also:
-
setOffline
public void setOffline(boolean offline) Updates whether this flight was flown disconnected from the ACARS server.- Parameters:
offline
- TRUE if the flight was flown offline, otherwise FALSE- See Also:
-
setIsMP
public void setIsMP(boolean isMP) Updates whether this flight was flown using ACARS multi-player.- Parameters:
isMP
- TRUE if multi-player, otherwise FALSE- See Also:
-
setHasPIREP
public void setHasPIREP(boolean hasPIREP) Updates whether this flight has an associated Flight Report.- Parameters:
hasPIREP
- TRUE if a Flight Report was filed, otherwise FALSE- See Also:
-
setArchived
public void setArchived(boolean archived) Marks this Flight's position data as archived.- Parameters:
archived
- TRUE if the position data is in the archive, otherwise FALSE- See Also:
-
setScheduleValidated
public void setScheduleValidated(boolean isOK) Marks this Flight as having a valid flight route.- Parameters:
isOK
- TRUE if the Flight is valid, otherwise FALSE
-
setDispatcher
Marks this Flight as being planned by a Dispatcher.- Parameters:
dsp
- the DispatchType
-
setStartTime
Updates the start date/time for this flight.- Parameters:
dt
- the date/time the flight started- See Also:
-
setEndTime
Updates the end date/time for this flight.- Parameters:
dt
- the date/time the flight ended- See Also:
-
setAirportA
Updates the destination Airport for this flight.- Parameters:
a
- an Airport bean- See Also:
-
setAirportD
Updates the origination Airport for this flight.- Parameters:
a
- an Airport bean- See Also:
-
setAirportL
Updates the alternate Airport for this flight.- Parameters:
a
- an Airport bean- See Also:
-
setAltitude
Updates the filed altitude for this flight.- Parameters:
alt
- the altitude in feet or as a flight level- See Also:
-
setEquipmentType
Updates the aircraft used on this flight.- Parameters:
eq
- the equipment type- See Also:
-
setLoadFactor
public void setLoadFactor(double lf) Updates the load factor for this flight.- Parameters:
lf
- the load factor- See Also:
-
setPassengers
public void setPassengers(int pax) Updates the number of passengers on this flight.- Parameters:
pax
- the number of passengers- See Also:
-
setSeats
public void setSeats(int seats) Updates the number of seats on this flight.- Parameters:
seats
- the number of seats- See Also:
-
setLoadType
Updates the mechanism used to generate the load factor for this flight.- Parameters:
lt
- a LoadType- See Also:
-
setAutopilotType
Updates the autopilot type used in the aircraft.- Parameters:
ap
- an AutoPilotType- See Also:
-
setSimulator
Updates the Simulator used in this flight.- Parameters:
sim
- the Simulator- See Also:
-
setSimulatorVersion
public void setSimulatorVersion(int major, int minor) Updates the simulator version used in this flight.- Parameters:
major
- the major versionminor
- the minor version
-
setPlatform
Updates the underlying simulator platform.- Parameters:
os
- an OperatingSystem
-
setIsSim64Bit
public void setIsSim64Bit(boolean is64) Updates whether the simulator is a 64-bit application.- Parameters:
is64
- TRUE if 64-bit, otherwise FALSE
-
setIsACARS64Bit
public void setIsACARS64Bit(boolean is64) Updates whether ACARS is a 64-bit application.- Parameters:
is64
- TRUE if 64-bit, otherwise FALSE
-
setFlightCode
Deprecated.Updates the flight number for this flight.- Parameters:
code
- the flight code- Throws:
NullPointerException
- if code is null- See Also:
-
setFDR
Sets the Flight Data Recorder used on this Flight.- Parameters:
r
- the Recorder
-
setRoute
Updates the filed route for this flight.- Parameters:
route
- the filed route- See Also:
-
setRemarks
Updates the pilot's remarks for this flight.- Parameters:
remarks
- the pilot's remarks- See Also:
-
setTXCode
public void setTXCode(int tx) Updates the transponder code used on this flight.- Parameters:
tx
- the transponder code- See Also:
-
setPositionCount
public void setPositionCount(int posCount) Updates the number of position records for this Flight.- Parameters:
posCount
- the number of records- See Also:
-
setPosition
Sets the current position of the flight. This is used to override the progress data.- Parameters:
pos
- the current position
-
setRouteData
Updates the actual route data for this flight.- Parameters:
entries
- a Collection of RouteEntry beans- See Also:
-
setPlanData
Updates the flight plan data for this flight.- Parameters:
entries
- a Collection of NavigationDatbBeans- See Also:
-
getRowClassName
Displays the CSS class name for this table row.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name
-