Class RouteBuilder
java.lang.Object
org.deltava.beans.flight.RouteBuilder
- All Implemented Interfaces:
RoutePair
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(NavigationDataBean ndb) Adds a waypoint to the route.voidadd(TerminalRoute tr) Adds a TerminalRoute to the waypoints.Returns the arrival Airport.Returns the departure Airport.Returns the waypoints in the route, including the SID/STAR.getRoute()Returns the filed route, minus any SID/STAR names.getSID()Returns the SID name.Returns the SID transition.getSTAR()Returns the STAR name.Returns the STAR transition.booleanhasData()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPointModifier and TypeMethodDescriptiondefault StringReturns a key that describes the route pair.Returns the airports in this Route Pair.default intReturns the distance between the Airports.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
-
RouteBuilder
-
-
Method Details
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getSID
-
getSIDTransition
Returns the SID transition.- Returns:
- the SID transition waypoint, or null if none detected
-
getSTAR
-
getSTARTransition
Returns the STAR transition.- Returns:
- the STAR transition waypoint, or null if none detected
-
getRoute
-
getPoints
Returns the waypoints in the route, including the SID/STAR.- Returns:
- a List of NavigationDataBeans
-
hasData
public boolean hasData() -
toString
-