org.deltava.beans.flight
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>, CalendarEntry, RoutePair, ViewEntry, Cacheable
public class DraftFlightReport
- extends FlightReport
A class to store draft Flight Report data, with scheduled departure/arrival times.
- Since:
- 2.8
- Version:
- 2.8
- Author:
- Luke
- See Also:
- Serialized Form
| Fields inherited from class org.deltava.beans.flight.FlightReport |
ATTR_ACADEMY, ATTR_ACARS, ATTR_CHARTER, ATTR_CHECKRIDE, ATTR_DISPATCH, ATTR_ETOPSWARN, ATTR_FPI, ATTR_HISTORIC, ATTR_IVAO, ATTR_NOTRATED, ATTR_ONLINE_MASK, ATTR_RANGEWARN, ATTR_REFUELWARN, ATTR_ROUTEWARN, ATTR_TIMEWARN, ATTR_VATSIM, ATTR_WEIGHTWARN, DBID_ACARS, DBID_ASSIGN, DBID_DISPOSAL, DBID_EVENT, DBID_PILOT, DRAFT, FSVERSION, FSVERSION_CODE, HOLD, MIN_ACARS_CLIENT, OK, REJECTED, STATUS, SUBMITTED |
|
Constructor Summary |
DraftFlightReport(Airline a,
int flightNumber,
int leg)
Creates a new Flight Report object with a given flight. |
|
Method Summary |
Date |
getTimeA()
Returns the scheduled arrival time in local time. |
Date |
getTimeD()
Returns the scheduled departure time in local time. |
void |
setTimeA(Date dt)
Updates the scheduled arrival time in local time. |
void |
setTimeD(Date dt)
Updates the scheduled departure time in local time. |
| Methods inherited from class org.deltava.beans.flight.FlightReport |
compareTo, getAttributes, getCaptEQType, getComments, getDatabaseID, getDate, getDisposedOn, getFSVersion, getFSVersionCode, getLength, getNetwork, getRank, getRemarks, getRoute, getRowClassName, getStatus, getStatusName, getSubmittedOn, hasAttribute, setAttribute, setAttributes, setCaptEQType, setCaptEQType, setComments, setDatabaseID, setDate, setDisposedOn, setFSVersion, setFSVersion, setLeg, setLength, setNetwork, setRank, setRemarks, setRoute, setStatus, setStatus, setSubmittedOn |
| Methods inherited from class org.deltava.beans.Flight |
crosses, equals, getAirline, getAirportA, getAirportD, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, toString |
DraftFlightReport
public DraftFlightReport(Airline a,
int flightNumber,
int leg)
- 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 null
IllegalArgumentException - if the Flight Report is zero or negative
IllegalArgumentException - if the Leg is less than 1 or greater than 5
getTimeD
public Date getTimeD()
- Returns the scheduled departure time in local time. The date portion
should be ignored.
- Returns:
- the departure date/time
getTimeA
public Date getTimeA()
- Returns the scheduled arrival time in local time. The date portion
should be ignored.
- Returns:
- the arrival date/time
setTimeD
public void setTimeD(Date dt)
- Updates the scheduled departure time in local time. The date portion
should be ignored.
- Parameters:
dt - the departure date/time
setTimeA
public void setTimeA(Date dt)
- Updates the scheduled arrival time in local time. The date portion
should be ignored.
- Parameters:
dt - the arrival date/time
Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.