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 org.deltava.beans.schedule.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 org.deltava.beans.Flight
compareTo, equals, getAirline, getAirportA, getAirportD, getCallsign, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, getLegCode, getShortCode, hashCode, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, setLeg, toString
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, getHexID, getID, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches
-
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:
getLength
in classFlight
- Returns:
- the length of the flight
- Throws:
UnsupportedOperationException
-
getDuration
DISABLED property.- Specified by:
getDuration
in classFlight
- Returns:
- a Duration
- Throws:
UnsupportedOperationException
-