Interface RoutePair
- All Known Subinterfaces:
FlightData
- All Known Implementing Classes:
AbstractRoute
,ACARSFlightReport
,AssignmentLeg
,CharterRequest
,DispatchLogEntry
,DispatchRoute
,DraftFlightReport
,ExternalDispatchRoute
,ExternalRoute
,FDRFlightReport
,Flight
,FlightInfo
,FlightReport
,FlightRoute
,GateUsage
,GetFlightReportStatistics.DispatchScheduleRoute
,ImportRoute
,LogbookSearchCriteria
,Pilot
,PopulatedRoute
,RawScheduleEntry
,Route
,RouteBuilder
,RoutePair.RoutePairImpl
,RouteStats
,RunwayGateUsage
,RunwayHelper
,RunwayUsage
,ScheduleEntry
,ScheduleRoute
,ScheduleSearchCriteria
,ScheduleSearchEntry
,SimFDRFlightReport
,XACARSFlightReport
,XAFlightInfo
public interface RoutePair
An interface to mark Airport pairs.
- Since:
- 2.6
- Version:
- 11.5
- Author:
- Luke
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Helper class when all you need is a naked RoutePair. -
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns a key that describes the route pair.Returns the arrival Airport.Returns the departure Airport.default Collection
<Airport> Returns the airports in this Route Pair.default int
Returns the distance between the Airports.default FlightType
Returns the flight type for customs/gate purposes.default boolean
Returns whether this RoutePair includes a particular IATA or ICAO code.default boolean
Returns whether both airports are populated.default boolean
Returns whether this RoutePair matches a particular Route Pair.static RoutePair
Creates a new naked RoutePair.
-
Method Details
-
getAirportD
-
getAirportA
-
getDistance
default int getDistance()Returns the distance between the Airports.- Returns:
- the distance in miles
-
isPopulated
default boolean isPopulated()Returns whether both airports are populated.- Returns:
- TRUE if both Airports are set, otherwise FALSE
-
getAirports
Returns the airports in this Route Pair. This is only filled if both Airports are populated.- Returns:
- a List of Airports, or an empty list if not populated.
- See Also:
-
matches
Returns whether this RoutePair matches a particular Route Pair.- Parameters:
rp
- a RoutePair- Returns:
- TRUE if the departure and arrival Airports are the same, otherwise FALSE
-
includes
Returns whether this RoutePair includes a particular IATA or ICAO code.- Parameters:
code
- the ICAO/IATA code- Returns:
- TRUE if the code matches the departure or arrival airport, otherwise FALSE
-
getFlightType
Returns the flight type for customs/gate purposes.- Returns:
- a FlightType enumeration
-
createKey
Returns a key that describes the route pair.- Returns:
- the departure/arrival ICAO codes
-
of
-