Class AssignmentLeg
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.Flight
org.deltava.beans.assign.AssignmentLeg
- All Implemented Interfaces:
Serializable, Comparable<Object>, FlightNumber, IDBean, RoutePair, Cacheable
A class to store assigned Flights.
- Since:
- 1.0
- Version:
- 7.5
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface RoutePair
RoutePair.RoutePairImpl -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Assigned Flight from an existing Flight (usually a ScheduleEntry).AssignmentLeg(Airline a, int fNumber, int leg) Creates a new Assigned Flight. -
Method Summary
Methods inherited from class Flight
compareTo, equals, getAirline, getAirportA, getAirportD, getCallsign, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, getLegCode, getShortCode, hashCode, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, setLeg, toStringMethods inherited from class DatabaseBean
cacheKey, getHexID, getID, setID, validateID, validateIDMethods inherited from interface RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
AssignmentLeg
Creates a new Assigned Flight.- Parameters:
a- the AirlinefNumber- the flight numberleg- the leg number- See Also:
-
AssignmentLeg
Creates a new Assigned Flight from an existing Flight (usually a ScheduleEntry).- Parameters:
f- the existing Flight
-
-
Method Details
-
getLength
public final int getLength()DISABLED property.- Specified by:
getLengthin classFlight- Returns:
- the length of the flight
- Throws:
UnsupportedOperationException
-
getDuration
DISABLED property.- Specified by:
getDurationin classFlight- Returns:
- a Duration
- Throws:
UnsupportedOperationException
-