Class TerminalRoute
java.lang.Object
org.deltava.beans.navdata.Airway
org.deltava.beans.navdata.TerminalRoute
- All Implemented Interfaces:
Serializable,Comparable<Airway>,ComboAlias,GeoLocation,Route,Cacheable
A bean to store SID/STAR data.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.deltava.beans.navdata.Airway
_awseq, _waypointsFields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
ConstructorsConstructorDescriptionTerminalRoute(String icao, String name, TerminalRoute.Type type) Creates a new Terminal Route.TerminalRoute(Airport a, String name, TerminalRoute.Type type) Creates a new Terminal Route. -
Method Summary
Modifier and TypeMethodDescriptionfinal intCompares two terminal routes by comparing their names and transition waypoints.booleanChecks for equality by comparing names.booleanReturns whether this route can be purged from the database.getCode()Returns the SID/STAR code.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.getICAO()Returns the Airport's ICAO code.getName()Returns the SID/STAR name.Returns the runway for this Terminal Route.Returns the name of the transition waypoint.getType()Returns the route type (SID/STAR).getWaypoints(String transition) Returns the waypoints to a partial transition point.inthashCode()static booleanisNameValid(String name) Checks if a route waypoint is really a SID/STAR name.static StringmakeGeneric(String name) Utlity method to convert the SID/STAR name to a generic name using a percent sign so that mySQL can select any revision of the procedure.voidsetCanPurge(boolean canPurge) Updates whether this route can be purged from the database.voidUpdates the Route name.voidUpdates the runway associated with this Terminal Route.voidsetSequence(int seq) Updates the internal ID used to map Terminal Routes to waypoints.voidsetTransition(String waypoint) Updates the transition waypoint for this Terminal Route.toString()Returns the name, transition and runway.Methods inherited from class org.deltava.beans.navdata.Airway
addWaypoint, cacheKey, contains, find, getLatitude, getLongitude, getRoute, getSequence, getSize, getWaypoints, getWaypoints, isHighLevel, isLowLevel, setCode, setHighLevel, setLowLevelMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Method Details
-
isNameValid
Checks if a route waypoint is really a SID/STAR name.- Parameters:
name- the waypoint code- Returns:
- TRUE if a SID/STAR, otherwise FALSE
-
makeGeneric
-
getICAO
-
getName
-
getCanPurge
public boolean getCanPurge()Returns whether this route can be purged from the database.- Returns:
- TRUE if it can be purged, otherwise FALSE
-
getTransition
Returns the name of the transition waypoint.- Returns:
- the transition waypoint
-
getRunway
Returns the runway for this Terminal Route.- Returns:
- the runway name, or ALL
-
getType
-
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
-
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
-
getWaypoints
Returns the waypoints to a partial transition point.- Parameters:
transition- the transition waypoint code- Returns:
- a Collection of NavigationDataBeans
-
getCode
-
setName
Updates the Route name.- Parameters:
name- the name- Throws:
NullPointerException- if name is null
-
setSequence
public void setSequence(int seq) Updates the internal ID used to map Terminal Routes to waypoints.- Parameters:
seq- the sequence ID
-
setCanPurge
public void setCanPurge(boolean canPurge) Updates whether this route can be purged from the database.- Parameters:
canPurge- TRUE if the route can be purged, otherwise FALSE
-
setRunway
Updates the runway associated with this Terminal Route.- Parameters:
runway- the runway name
-
setTransition
Updates the transition waypoint for this Terminal Route.- Parameters:
waypoint- the waypoint code- Throws:
NullPointerException- if waypoint is null
-
equals
-
hashCode
-
toString
-