Class ExternalRoute
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.schedule.FlightRoute
org.deltava.beans.schedule.ExternalRoute
- All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, ExternalFlightRoute, RoutePair, UseCount, Cacheable
A bean to store an external Flight Route.
- Since:
- 2.6
- Version:
- 11.2
- 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. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the source of this route.intReturns the number of times this object has been used.booleanReturns whether this is an internal used route and should not be displayed.voidSets the source of this route.voidsetUseCount(int cnt) Updates the number of times this route was used.Methods inherited from class FlightRoute
equals, getAirportA, getAirportD, getComments, getCreatedOn, getCruiseAltitude, getFullRoute, getRoute, getSID, getSTAR, hashCode, setAirportA, setAirportD, setComments, setCreatedOn, setCruiseAltitude, setRoute, setSID, setSTAR, toStringModifier 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 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.
-
Field Details
-
INTERNAL
- See Also:
-
-
Constructor Details
-
ExternalRoute
-
-
Method Details
-
getSource
Description copied from interface:ExternalFlightRouteReturns the source of this route.- Specified by:
getSourcein interfaceExternalFlightRoute- Returns:
- the source name
-
getUseCount
public int getUseCount()Description copied from interface:UseCountReturns the number of times this object has been used.- Specified by:
getUseCountin interfaceUseCount- Returns:
- the number of uses
-
setSource
Description copied from interface:ExternalFlightRouteSets the source of this route.- Specified by:
setSourcein interfaceExternalFlightRoute- Parameters:
src- the source name
-
setUseCount
public void setUseCount(int cnt) Updates the number of times this route was used.- Parameters:
cnt- the number of times
-
isInternal
public boolean isInternal()Returns whether this is an internal used route and should not be displayed.- Returns:
- TRUE if internal, otherwise FALSE
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-