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, _waypoints
Fields 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 int
Compares two terminal routes by comparing their names and transition waypoints.boolean
Checks for equality by comparing names.boolean
Returns 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.int
hashCode()
static boolean
isNameValid
(String name) Checks if a route waypoint is really a SID/STAR name.static String
makeGeneric
(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.void
setCanPurge
(boolean canPurge) Updates whether this route can be purged from the database.void
Updates the Route name.void
Updates the runway associated with this Terminal Route.void
setSequence
(int seq) Updates the internal ID used to map Terminal Routes to waypoints.void
setTransition
(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, setLowLevel
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
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
-
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
-