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 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.booleanReturns if this flight's position data is stored in the archive.intReturns 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.intReturns the flight's dispatcher ID.intReturns 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.intReturns the Flight Number.getGateA()Returns the arrival gate for this flight.getGateD()Returns the departure gate for this flight.booleanReturns if this flight has an associated Flight Report.booleanReturns whether the ACARS client is 64-bit.booleangetIsMP()Returns if this flight was flown using ACARS multi-player.booleanReturns whether the simulator platform is 64-bit.intgetLeg()Returns the Flight Leg.doubleReturns the load factor for this flight.Returns the mechanism used to generate the load factor.Returns the OnlineNetwork the flight is operated on.booleanReturns if this flight was flown disconnected from the ACARS server.intReturns 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.intReturns 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.intReturns 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.intgetSeats()Returns the number of available seats on this flight.getSID()Returns the Departure Route for this flight.intReturns the major version number of the Simulator used in this flight.intReturns 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.intReturns the transponder code used on this Flight.booleanReturns if this bean contains flight plan data.booleanReturns if this bean contains route data.booleanReturns if runway data for this flight has been loaded.booleanReturns if this flight has been validated as being in the schedule.voidUpdates the Airline for the flight.voidUpdates the destination Airport for this flight.voidUpdates the origination Airport for this flight.voidUpdates the alternate Airport for this flight.voidsetAltitude(String alt) Updates the filed altitude for this flight.voidsetArchived(boolean archived) Marks this Flight's position data as archived.voidsetAuthorID(int id) Updates the Pilot ID for the flight.voidUpdates the autopilot type used in the aircraft.voidMarks this Flight as being planned by a Dispatcher.voidsetDispatcherID(int id) Updates the Disaptcher ID for the flight.voidsetDispatchLogID(int id) Updates the Dispatch Log ID used in this flight.voidsetEndTime(Instant dt) Updates the end date/time for this flight.voidUpdates the aircraft used on this flight.voidSets the Flight Data Recorder used on this Flight.voidsetFlight(int flight) Updates the flight number for the flight.voidsetFlightCode(String code) Deprecated.voidUpdates the arrival Gate for this flight.voidUpdates the departure Gate for this flight.voidsetHasPIREP(boolean hasPIREP) Updates whether this flight has an associated Flight Report.voidsetIsACARS64Bit(boolean is64) Updates whether ACARS is a 64-bit application.voidsetIsMP(boolean isMP) Updates whether this flight was flown using ACARS multi-player.voidsetIsSim64Bit(boolean is64) Updates whether the simulator is a 64-bit application.voidsetLoadFactor(double lf) Updates the load factor for this flight.voidsetLoadType(LoadType lt) Updates the mechanism used to generate the load factor for this flight.voidsetOffline(boolean offline) Updates whether this flight was flown disconnected from the ACARS server.voidsetPassengers(int pax) Updates the number of passengers on this flight.voidsetPlanData(Collection<NavigationDataBean> entries) Updates the flight plan data for this flight.voidUpdates the underlying simulator platform.voidsetPosition(RouteEntry pos) Sets the current position of the flight.voidsetPositionCount(int posCount) Updates the number of position records for this Flight.voidsetRemarks(String remarks) Updates the pilot's remarks for this flight.voidUpdates the filed route for this flight.voidsetRouteData(Collection<? extends RouteEntry> entries) Updates the actual route data for this flight.voidsetRouteID(int id) Updates the Dispatch Route ID used in this flight.voidsetRunwayA(Runway r) Updates the arrival Runway for this flight.voidsetRunwayD(Runway r) Updates the departure Runway for this flight.voidsetScheduleValidated(boolean isOK) Marks this Flight as having a valid flight route.voidsetSeats(int seats) Updates the number of seats on this flight.voidsetSID(TerminalRoute sid) Updates the Departure route used on this flight.voidsetSimulator(Simulator sim) Updates the Simulator used in this flight.voidsetSimulatorVersion(int major, int minor) Updates the simulator version used in this flight.voidsetSTAR(TerminalRoute star) Updates the Arrival Route used on this flight.voidsetStartTime(Instant dt) Updates the start date/time for this flight.voidsetTXCode(int tx) Updates the transponder code used on this flight.Methods inherited from class ACARSLogEntry
getAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersionMethods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientVersion
isBetaMethods inherited from interface Comparable
compareToMethods inherited from interface RemoteAddressBean
getIsResolvedMethods inherited from interface RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
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:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
getAirline
Description copied from interface:FlightNumberReturns the Airline.- Specified by:
getAirlinein interfaceFlightNumber- Returns:
- the Airline
-
getFlightNumber
public int getFlightNumber()Description copied from interface:FlightNumberReturns the Flight Number.- Specified by:
getFlightNumberin interfaceFlightNumber- Returns:
- the flight number
-
getLeg
public int getLeg()Description copied from interface:FlightNumberReturns the Flight Leg.- Specified by:
getLegin interfaceFlightNumber- Returns:
- the leg
-
getNetwork
Description copied from interface:FlightDataReturns the OnlineNetwork the flight is operated on.- Specified by:
getNetworkin 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:FlightDataReturns the date of the flight.- Specified by:
getDatein interfaceCalendarEntry- Specified by:
getDatein interfaceFlightData- Returns:
- the date/time
-
getStartTime
Description copied from class:ACARSLogEntryReturns the date/time of this entry.- Specified by:
getStartTimein interfaceTimeSpan- Specified by:
getStartTimein classACARSLogEntry- Returns:
- the entry date/time
-
getEndTime
Description copied from interface:TimeSpanThe end date/time of this span.- Specified by:
getEndTimein interfaceTimeSpan- Returns:
- the end date/time
-
getDuration
Description copied from interface:TimeSpanThe duration of this span, or null if both times are not set.- Specified by:
getDurationin 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:FlightDataReturns the equipment type used.- Specified by:
getEquipmentTypein 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:
getAirportAin 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:
getAirportDin 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:FlightDataReturns the Simulator used for this flight.- Specified by:
getSimulatorin 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:FlightDataReturns the Flight Data recorder used for this flight.- Specified by:
getFDRin 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:
setAuthorIDin 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:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name
-