Class PopulatedRoute
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.schedule.FlightRoute
org.deltava.beans.schedule.PopulatedRoute
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,ComboAlias
,IDBean
,Route
,RoutePair
,Cacheable
- Direct Known Subclasses:
DispatchRoute
A Flight Route that has its waypoints populated.
- Since:
- 2.6
- Version:
- 7.2
- 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 TypeMethodDescriptionvoid
Adds a waypoint to the route.void
addWaypoint
(NavigationDataBean nd, String airway) Adds a waypoint to the route.void
Adds multiple waypoints to the route.Returns the Airway each waypoint is on.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.getRoute()
Returns the route.int
getSize()
Returns the number of waypoints.Returns the waypoints on this route.int
hashCode()
void
insertWaypoint
(NavigationDataBean nd, String airway) Adds a waypoint to the start of the route.protected void
load
(PopulatedRoute pr) Helper method to copy a route from one PopulatedRoute to another.void
removeAirway
(String code) Removes all waypoints on a particular Airway from the route.Methods inherited from class org.deltava.beans.schedule.FlightRoute
equals, getAirportA, getAirportD, getComments, getCreatedOn, getCruiseAltitude, getFullRoute, getSID, getSTAR, 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
-
Constructor Details
-
PopulatedRoute
public PopulatedRoute()
-
-
Method Details
-
load
Helper method to copy a route from one PopulatedRoute to another.- Parameters:
pr
- the PopulatedRoute bean
-
getWaypoints
Returns the waypoints on this route.- Specified by:
getWaypoints
in interfaceRoute
- Returns:
- a Collection of NavigationDataBeans
-
getSize
-
addWaypoints
Adds multiple waypoints to the route.- Parameters:
nds
- a Collection of NavigationDataBeans
-
removeAirway
Removes all waypoints on a particular Airway from the route.- Parameters:
code
- the airway code
-
getRoute
Returns the route.- Specified by:
getRoute
in interfaceRoute
- Overrides:
getRoute
in classFlightRoute
- Returns:
- a space-separated list of waypoints and airways
-
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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFlightRoute
-