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 org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
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.int
Returns the number of times this object has been used.boolean
Returns whether this is an internal used route and should not be displayed.void
Sets the source of this route.void
setUseCount
(int cnt) Updates the number of times this route was used.Methods inherited from class org.deltava.beans.schedule.FlightRoute
equals, getAirportA, getAirportD, getComments, getCreatedOn, getCruiseAltitude, getFullRoute, getRoute, getSID, getSTAR, hashCode, setAirportA, setAirportD, setComments, setCreatedOn, setCruiseAltitude, setRoute, setSID, setSTAR, 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.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
Field Details
-
INTERNAL
- See Also:
-
-
Constructor Details
-
ExternalRoute
-
-
Method Details
-
getSource
Description copied from interface:ExternalFlightRoute
Returns the source of this route.- Specified by:
getSource
in interfaceExternalFlightRoute
- Returns:
- the source name
-
getUseCount
public int getUseCount()Description copied from interface:UseCount
Returns the number of times this object has been used.- Specified by:
getUseCount
in interfaceUseCount
- Returns:
- the number of uses
-
setSource
Description copied from interface:ExternalFlightRoute
Sets the source of this route.- Specified by:
setSource
in 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:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-