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 SummaryNested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePairRoutePair.RoutePairImpl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 org.deltava.beans.acars.ACARSLogEntrygetAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersionMethods inherited from class org.deltava.beans.DatabaseBeancacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.acars.ClientVersionisBetaMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface org.deltava.beans.RemoteAddressBeangetIsResolvedMethods inherited from interface org.deltava.beans.schedule.RoutePaircreateKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
- 
Constructor Details- 
FlightInfopublic 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- 
getAuthorIDpublic int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
- getAuthorIDin interface- AuthoredBean
- Returns:
- the author's database ID
- See Also:
 
- 
getAirlineDescription copied from interface:FlightNumberReturns the Airline.- Specified by:
- getAirlinein interface- FlightNumber
- Returns:
- the Airline
 
- 
getFlightNumberpublic int getFlightNumber()Description copied from interface:FlightNumberReturns the Flight Number.- Specified by:
- getFlightNumberin interface- FlightNumber
- Returns:
- the flight number
 
- 
getLegpublic int getLeg()Description copied from interface:FlightNumberReturns the Flight Leg.- Specified by:
- getLegin interface- FlightNumber
- Returns:
- the leg
 
- 
getNetworkDescription copied from interface:FlightDataReturns the OnlineNetwork the flight is operated on.- Specified by:
- getNetworkin interface- FlightData
- Returns:
- an OnlineNetwork or null if offline
 
- 
getDispatcherIDpublic int getDispatcherID()Returns the flight's dispatcher ID.- Returns:
- the database ID of the dispatcher, or zero if none
- See Also:
 
- 
getRouteIDpublic int getRouteID()Returns the database ID of the Dispatch route used.- Returns:
- the route database ID
 
- 
getDispatchLogIDpublic int getDispatchLogID()Returns the database ID of the dispatch log entry.- Returns:
- the log entry database ID
 
- 
getDateDescription copied from interface:FlightDataReturns the date of the flight.- Specified by:
- getDatein interface- CalendarEntry
- Specified by:
- getDatein interface- FlightData
- Returns:
- the date/time
 
- 
getStartTimeDescription copied from class:ACARSLogEntryReturns the date/time of this entry.- Specified by:
- getStartTimein interface- TimeSpan
- Specified by:
- getStartTimein class- ACARSLogEntry
- Returns:
- the entry date/time
 
- 
getEndTimeDescription copied from interface:TimeSpanThe end date/time of this span.- Specified by:
- getEndTimein interface- TimeSpan
- Returns:
- the end date/time
 
- 
getDurationDescription copied from interface:TimeSpanThe duration of this span, or null if both times are not set.- Specified by:
- getDurationin interface- TimeSpan
- Returns:
- a Duration, or null
 
- 
getFlightCodeReturns the flight code for this flight.- Returns:
- the flight code (eg. DVA123)
- See Also:
 
- 
getEquipmentTypeDescription copied from interface:FlightDataReturns the equipment type used.- Specified by:
- getEquipmentTypein interface- FlightData
- Returns:
- the equipment type
 
- 
getAltitudeReturns the filed altitude for this flight.- Returns:
- the altitude in feet or a flight level
- See Also:
 
- 
getAirportAReturns the destination Airport for this flight.- Specified by:
- getAirportAin interface- RoutePair
- Returns:
- the destination Airport bean
- See Also:
 
- 
getGateAReturns the arrival gate for this flight.- Returns:
- the arrival Gate bean, or null if unknown
- See Also:
 
- 
getRunwayAReturns the arrival Runway for this flight.- Returns:
- the arrival Runway, or null if unknown
- See Also:
 
- 
getAirportDReturns the origin Airport for this flight.- Specified by:
- getAirportDin interface- RoutePair
- Returns:
- the origin Airport bean
- See Also:
 
- 
getGateDReturns the departure gate for this flight.- Returns:
- the origin Gate bean, or null if unknown
- See Also:
 
- 
getRunwayDReturns the departure Runway for this flight.- Returns:
- the departure Runway, or null if unknown
- See Also:
 
- 
getAirportLReturns the divert Airport for this flight.- Returns:
- the alternate Airport bean
- See Also:
 
- 
getSIDReturns the Departure Route for this flight.- Returns:
- the SID TerminalRoute bean
- See Also:
 
- 
getSTARReturns the Arrival Route for this flight.- Returns:
- the STAR TerminalRoute bean
- See Also:
 
- 
getRoute
- 
getRemarksReturns the pilot's remarks for this flight.- Returns:
- the remarks
- See Also:
 
- 
getAutopilotTypeReturns the type of Autopilot used in the aircraft.- Returns:
- an AutopilotType
- See Also:
 
- 
getSimulatorDescription copied from interface:FlightDataReturns the Simulator used for this flight.- Specified by:
- getSimulatorin interface- FlightData
- Returns:
- a Simulator
 
- 
getSimMajorpublic int getSimMajor()Returns the major version number of the Simulator used in this flight.- Returns:
- the major version, or zero if unknown
 
- 
getSimMinorpublic int getSimMinor()Returns the minor version number of the Simulator used in this flight.- Returns:
- the minor version
 
- 
getPlatformReturns the underlying simulator platform.- Returns:
- an OperatingSystem
 
- 
getIsSim64Bitpublic boolean getIsSim64Bit()Returns whether the simulator platform is 64-bit.- Returns:
- TRUE if 64-bit, otherwise FALSE
 
- 
getIsACARS64Bitpublic boolean getIsACARS64Bit()Returns whether the ACARS client is 64-bit.- Returns:
- TRUE if 64-bit, otherwise FALSE
 
- 
getOfflinepublic 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:
 
- 
getIsMPpublic boolean getIsMP()Returns if this flight was flown using ACARS multi-player.- Returns:
- TRUE if multi-player, otherwise FALSE
- See Also:
 
- 
getHasPIREPpublic boolean getHasPIREP()Returns if this flight has an associated Flight Report.- Returns:
- TRUE if a Flight Report was filed, otherwise FALSE
- See Also:
 
- 
getArchivedpublic 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:
 
- 
getTXCodepublic int getTXCode()Returns the transponder code used on this Flight.- Returns:
- the transponder code
- See Also:
 
- 
getLoadFactorpublic double getLoadFactor()Returns the load factor for this flight.- Returns:
- the load factor, or 0 if not set
- See Also:
 
- 
getPassengerspublic int getPassengers()Returns the number of passengers on the flight.- Returns:
- the number of passengers
- See Also:
 
- 
getSeatspublic int getSeats()Returns the number of available seats on this flight.- Returns:
- the number of seats
- See Also:
 
- 
getLoadTypeReturns the mechanism used to generate the load factor.- Returns:
- a LoadType
- See Also:
 
- 
getPositionCountpublic int getPositionCount()Returns the number of position records associated with this Flight.- Returns:
- the number of positions
- See Also:
 
- 
getPositionReturns the last logged position for this flight.- Returns:
- the latest PositionEntry, or NULL if no route data
 
- 
getRouteDataReturns the actual route data for this flight.- Returns:
- a Collection of RouteEntry beans, or null
- See Also:
 
- 
getPlanDataReturns the filed route for this flight.- Returns:
- a Collection of NavigationDataBeans, or null
- See Also:
 
- 
hasRouteDatapublic boolean hasRouteData()Returns if this bean contains route data.- Returns:
- TRUE if route data exists within the bean, otherwise FALSE
- See Also:
 
- 
hasPlanDatapublic boolean hasPlanData()Returns if this bean contains flight plan data.- Returns:
- TRUE if flight plan data exists within the bean, otherwise FALSE
- See Also:
 
- 
hasRunwayDatapublic boolean hasRunwayData()Returns if runway data for this flight has been loaded.- Returns:
- TRUE if runway data exists, otherwise FALSE
- See Also:
 
- 
isScheduleValidatedpublic boolean isScheduleValidated()Returns if this flight has been validated as being in the schedule.- Returns:
- TRUE if the route was validated, otherwise FALSE
 
- 
getDispatcherReturns the dispatcher type for this Flight.- Returns:
- a DispatchType
 
- 
getFDRDescription copied from interface:FlightDataReturns the Flight Data recorder used for this flight.- Specified by:
- getFDRin interface- FlightData
- Returns:
- a Recorder enum or null if none/unknown
 
- 
setAuthorIDpublic void setAuthorID(int id) Updates the Pilot ID for the flight.- Specified by:
- setAuthorIDin interface- AuthoredBean
- Parameters:
- id- the database ID of the pilot flying this flight
- See Also:
 
- 
setAirline
- 
setFlightpublic void setFlight(int flight) Updates the flight number for the flight.- Parameters:
- flight- the flight number
 
- 
setDispatcherIDpublic 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:
 
- 
setRouteIDpublic 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:
 
- 
setDispatchLogIDpublic 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:
 
- 
setOfflinepublic 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:
 
- 
setIsMPpublic void setIsMP(boolean isMP) Updates whether this flight was flown using ACARS multi-player.- Parameters:
- isMP- TRUE if multi-player, otherwise FALSE
- See Also:
 
- 
setHasPIREPpublic 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:
 
- 
setArchivedpublic 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:
 
- 
setScheduleValidatedpublic void setScheduleValidated(boolean isOK) Marks this Flight as having a valid flight route.- Parameters:
- isOK- TRUE if the Flight is valid, otherwise FALSE
 
- 
setDispatcherMarks this Flight as being planned by a Dispatcher.- Parameters:
- dsp- the DispatchType
 
- 
setStartTimeUpdates the start date/time for this flight.- Parameters:
- dt- the date/time the flight started
- See Also:
 
- 
setEndTimeUpdates the end date/time for this flight.- Parameters:
- dt- the date/time the flight ended
- See Also:
 
- 
setAirportAUpdates the destination Airport for this flight.- Parameters:
- a- an Airport bean
- See Also:
 
- 
setAirportDUpdates the origination Airport for this flight.- Parameters:
- a- an Airport bean
- See Also:
 
- 
setAirportLUpdates the alternate Airport for this flight.- Parameters:
- a- an Airport bean
- See Also:
 
- 
setAltitudeUpdates the filed altitude for this flight.- Parameters:
- alt- the altitude in feet or as a flight level
- See Also:
 
- 
setEquipmentTypeUpdates the aircraft used on this flight.- Parameters:
- eq- the equipment type
- See Also:
 
- 
setLoadFactorpublic void setLoadFactor(double lf) Updates the load factor for this flight.- Parameters:
- lf- the load factor
- See Also:
 
- 
setPassengerspublic void setPassengers(int pax) Updates the number of passengers on this flight.- Parameters:
- pax- the number of passengers
- See Also:
 
- 
setSeatspublic void setSeats(int seats) Updates the number of seats on this flight.- Parameters:
- seats- the number of seats
- See Also:
 
- 
setLoadTypeUpdates the mechanism used to generate the load factor for this flight.- Parameters:
- lt- a LoadType
- See Also:
 
- 
setAutopilotTypeUpdates the autopilot type used in the aircraft.- Parameters:
- ap- an AutoPilotType
- See Also:
 
- 
setSimulatorUpdates the Simulator used in this flight.- Parameters:
- sim- the Simulator
- See Also:
 
- 
setSimulatorVersionpublic void setSimulatorVersion(int major, int minor) Updates the simulator version used in this flight.- Parameters:
- major- the major version
- minor- the minor version
 
- 
setPlatformUpdates the underlying simulator platform.- Parameters:
- os- an OperatingSystem
 
- 
setIsSim64Bitpublic void setIsSim64Bit(boolean is64) Updates whether the simulator is a 64-bit application.- Parameters:
- is64- TRUE if 64-bit, otherwise FALSE
 
- 
setIsACARS64Bitpublic void setIsACARS64Bit(boolean is64) Updates whether ACARS is a 64-bit application.- Parameters:
- is64- TRUE if 64-bit, otherwise FALSE
 
- 
setFlightCodeDeprecated.Updates the flight number for this flight.- Parameters:
- code- the flight code
- Throws:
- NullPointerException- if code is null
- See Also:
 
- 
setFDRSets the Flight Data Recorder used on this Flight.- Parameters:
- r- the Recorder
 
- 
setRouteUpdates the filed route for this flight.- Parameters:
- route- the filed route
- See Also:
 
- 
setRemarksUpdates the pilot's remarks for this flight.- Parameters:
- remarks- the pilot's remarks
- See Also:
 
- 
setTXCodepublic void setTXCode(int tx) Updates the transponder code used on this flight.- Parameters:
- tx- the transponder code
- See Also:
 
- 
setPositionCountpublic void setPositionCount(int posCount) Updates the number of position records for this Flight.- Parameters:
- posCount- the number of records
- See Also:
 
- 
setPositionSets the current position of the flight. This is used to override the progress data.- Parameters:
- pos- the current position
 
- 
setRouteDataUpdates the actual route data for this flight.- Parameters:
- entries- a Collection of RouteEntry beans
- See Also:
 
- 
setPlanDataUpdates the flight plan data for this flight.- Parameters:
- entries- a Collection of NavigationDatbBeans
- See Also:
 
- 
getRowClassNameDisplays the CSS class name for this table row.- Specified by:
- getRowClassNamein interface- ViewEntry
- Returns:
- the CSS class name
 
 
-