Class FlightRoute
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.schedule.FlightRoute
- All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, RoutePair, Cacheable
- Direct Known Subclasses:
ExternalRoute, PopulatedRoute
An abstract class to store common Flight Route information.
- Since:
- 2.2
- Version:
- 8.6
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the arrival Airport.Returns the departure Airport.Returns the dispatcher comments.Returns the creation date of this route.Returns the Cruise Altitude.Displays a friendly route with SID/STAR name.getRoute()Returns the route.getSID()Returns the Standard Instrument Departure ID.getSTAR()Returns the Standard Terminal Arrival Route ID.inthashCode()voidUpdates the arrival Airport.voidUpdates the departure Airport.voidsetComments(String comments) Updates the dispatcher comments.voidsetCreatedOn(Instant dt) Updates the creation date of this route.voidsetCruiseAltitude(String alt) Updates the cruise altitude for this route.voidSets the route text.voidUpdates the Standard Instrument Departure ID.voidUpdates the Standard Terminal Arrival Route ID.toString()Methods inherited from class DatabaseBean
cacheKey, compareTo, getHexID, getID, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intgetHexID()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 ComboAlias
getComboAlias, getComboNameModifier and TypeMethodDescriptionReturns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Methods 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
-
FlightRoute
public FlightRoute()
-
-
Method Details
-
getCreatedOn
Returns the creation date of this route.- Returns:
- the creation date/time
-
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
Returns the Standard Instrument Departure ID.- Returns:
- the ID in NAME.TRANSITION.RUNWAY format
-
getSTAR
Returns the Standard Terminal Arrival Route ID.- Returns:
- the ID in NAME.TRANSITION.RUNWAY format
-
getCruiseAltitude
-
getComments
-
getRoute
Returns the route.- Returns:
- a space-separated list of waypoints and airways
-
setCreatedOn
Updates the creation date of this route.- Parameters:
dt- the creation date/time
-
setAirportD
-
setAirportA
-
setSID
Updates the Standard Instrument Departure ID.- Parameters:
sid- the SID ID
-
setSTAR
Updates the Standard Terminal Arrival Route ID.- Parameters:
star- the STAR ID
-
setCruiseAltitude
Updates the cruise altitude for this route.- Parameters:
alt- the cruise altitude
-
setComments
Updates the dispatcher comments.- Parameters:
comments- the comments
-
setRoute
-
getFullRoute
Displays a friendly route with SID/STAR name.- Returns:
- the route with SID/STAR
-
toString
-
hashCode
public int hashCode()- Overrides:
hashCodein classDatabaseBean
-
equals
- Overrides:
equalsin classDatabaseBean
-