Class DraftFlightReport
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.Flight
org.deltava.beans.flight.FlightReport
org.deltava.beans.flight.DraftFlightReport
- All Implemented Interfaces:
Serializable,Comparable<Object>,AuthoredBean,CalendarEntry,FlightData,FlightNumber,IDBean,FlightTimes,RoutePair,ViewEntry,Cacheable
A class to store draft Flight Report data, with scheduled departure/arrival times.
- Since:
- 2.8
- Version:
- 11.5
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
Field Summary
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
ConstructorsConstructorDescriptionCreates a new Flight Report object with a given Flight.DraftFlightReport(Airline a, int flightNumber, int leg) Creates a new Flight Report object with a given flight. -
Method Summary
Modifier and TypeMethodDescriptionReturns the planned altitude.Returns default comments with departure and arrival times.A method to return the exact length of the flight.getGateA()Returns the arrival Gate name.getGateD()Returns the departure Gate name.getTimeA()Returns the scheduled arrival time in local time.getTimeD()Returns the scheduled departure time in local time.booleanhasGates()Returns whether the flight has departure and arrival gates assigned.voidsetAltitude(String alt) Updates the planned altitude.voidUpdates the arrival Gate name.voidUpdates the departure Gate name.voidUpdates the scheduled arrival time in local time.voidUpdates the scheduled departure time in local time.Methods inherited from class org.deltava.beans.flight.FlightReport
addStatusUpdate, addStatusUpdate, compareTo, getAttributes, getAuthorID, getCaptEQType, getComments, getDatabaseID, getDate, getDisposedOn, getFDR, getLength, 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, setSubmittedOnMethods 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, toStringMethods inherited from class org.deltava.beans.DatabaseBean
cacheKey, getHexID, getID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.flight.FlightData
getEquipmentTypeMethods inherited from interface org.deltava.beans.FlightNumber
getAirline, getFlightNumber, getLegMethods inherited from interface org.deltava.beans.schedule.FlightTimes
hasFlightTimesMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirportA, getAirportD, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
DraftFlightReport
Creates a new Flight Report object with a given Flight.- Parameters:
f- the Flight bean
-
DraftFlightReport
Creates a new 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 5
-
-
Method Details
-
getTimeD
Returns the scheduled departure time in local time. The date portion should be ignored.- Specified by:
getTimeDin interfaceFlightTimes- Returns:
- the departure date/time
- See Also:
-
getTimeA
Returns the scheduled arrival time in local time. The date portion should be ignored.- Specified by:
getTimeAin interfaceFlightTimes- Returns:
- the arrival date/time
- See Also:
-
getAltitude
-
getGateD
-
getGateA
-
hasGates
public boolean hasGates()Returns whether the flight has departure and arrival gates assigned.- Returns:
- TRUE if departure and arrival gates are assigned, otherwise FALSE
-
setTimeD
Updates the scheduled departure time in local time. The date portion should be ignored.- Parameters:
dt- the departure date/time
-
setTimeA
Updates the scheduled arrival time in local time. The date portion should be ignored.- Parameters:
dt- the arrival date/time
-
setGateD
Updates the departure Gate name.- Parameters:
name- the Gate name or null if not defined
-
setGateA
Updates the arrival Gate name.- Parameters:
name- the Gate name or null if not defined
-
setAltitude
-
getDraftComments
Returns default comments with departure and arrival times.- Returns:
- the comments
-
getDuration
Description copied from class:FlightA method to return the exact length of the flight.- Overrides:
getDurationin classFlightReport- Returns:
- a Duration
-