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 org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 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.int
hashCode()
void
Updates the arrival Airport.void
Updates the departure Airport.void
setComments
(String comments) Updates the dispatcher comments.void
setCreatedOn
(Instant dt) Updates the creation date of this route.void
setCruiseAltitude
(String alt) Updates the cruise altitude for this route.void
Sets the route text.void
Updates the Standard Instrument Departure ID.void
Updates the Standard Terminal Arrival Route ID.toString()
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, getHexID, getID, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.ComboAlias
getComboAlias, getComboName
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
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:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in 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:
hashCode
in classDatabaseBean
-
equals
- Overrides:
equals
in classDatabaseBean
-