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.RoutePairImplModifier and TypeInterfaceDescriptionstatic classHelper class when all you need is a naked RoutePair. -
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, toStringModifier and TypeMethodDescriptionintbooleanReturns the Airline.Returns the arrival Airport.Returns the departure Airport.Returns the flight code as a callsign, using the Airline ICAO code.intReturns the distance between the Airports.Returns the Equipment type for this flightReturns a text representation of the Flight in the format "CODE### Leg #".intReturns the Flight Number.intgetLeg()Returns the Flight Leg.Returns an abbreviated version of the Flight code with a dash instead of text.Returns the Flight code without the leg.inthashCode()voidSet the Airline for this flight.voidSets the Arrival Airport object for this flight.voidSets the Departure Airport object for this flight.voidsetEquipmentType(String eqType) Sets the equipment type for this flight.voidsetFlightNumber(int fNumber) Set the Flight Number for this flightvoidsetLeg(int leg) Sets the Flight leg for this flighttoString()Methods inherited from class DatabaseBean
cacheKey, getHexID, getID, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.getHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from interface RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches, midPointModifier and TypeMethodDescriptiondefault StringReturns a key that describes the route pair.Returns the airports in this Route Pair.default FlightTypeReturns the flight type for customs/gate purposes.default booleanReturns whether this RoutePair includes a particular IATA or ICAO code.default booleanReturns whether both airports are populated.default booleanReturns whether this RoutePair matches a particular Route Pair.default GeoLocationmidPoint()Returns the midpoint between the two Airports on a Great Circle route.
-
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
-