org.deltava.beans.schedule
Interface RoutePair

All Known Implementing Classes:
ACARSFlightReport, AssignmentLeg, DailyScheduleEntry, DispatchRoute, DraftFlightReport, ExternalDispatchRoute, ExternalRoute, Flight, FlightInfo, FlightReport, FlightRoute, GetFlightReportStatistics.DispatchScheduleRoute, PopulatedRoute, ScheduleEntry, ScheduleRoute, ScheduleSearchCriteria, ScheduleSearchEntry

public interface RoutePair

An interface to mark Airport pairs.

Since:
2.6
Version:
2.6
Author:
Luke

Method Summary
 boolean crosses(double lng)
          Returns whether the route crosses a particular meridian.
 Airport getAirportA()
          Returns the arrival Airport.
 Airport getAirportD()
          Returns the departure Airport.
 int getDistance()
          Returns the distance between the Airports.
 

Method Detail

getAirportD

Airport getAirportD()
Returns the departure Airport.

Returns:
the departure Airport

getAirportA

Airport getAirportA()
Returns the arrival Airport.

Returns:
the arrival Airport

getDistance

int getDistance()
Returns the distance between the Airports.

Returns:
the distance in miles

crosses

boolean crosses(double lng)
Returns whether the route crosses a particular meridian.

Parameters:
lng - the longitude in degrees
Returns:
TRUE if it crosses the meridian, otherwise FALSE


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.