Class DispatchRoute
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.schedule.FlightRoute
org.deltava.beans.schedule.PopulatedRoute
org.deltava.beans.acars.DispatchRoute
- All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, ComboAlias, IDBean, Route, RoutePair, UseCount, ViewEntry, Cacheable
- Direct Known Subclasses:
ExternalDispatchRoute
A bean to store saved ACARS dispatch routes.
- Since:
- 2.0
- Version:
- 11.0
- 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. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty Dispatch route.Creates a new Dispatch route from a Populated route. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if this route is active.Returns the Airline for this Route.Returns the alternate Airport.intReturns the Author of this bean.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.intReturns the build number of the dispatch client used to create this route.Returns the last use date of this route.Returns the CSS class for this object if rendered in a view table.intReturns the number of times this route has been used.inthashCode()voidsetActive(boolean isActive) Marks this route as active.voidUpdates the Airline.voidUpdates the alternate Airport.voidsetAuthorID(int id) Updates the author of this bean.voidsetDispatchBuild(int build) Sets the build number of the dispatch client used to create this route.voidsetLastUsed(Instant dt) Updates the last use date of this route.voidsetUseCount(int count) Updates the number of times this route has been used.Methods inherited from class PopulatedRoute
addWaypoint, addWaypoint, addWaypoints, getAirway, getRoute, getSize, getWaypoints, insertWaypoint, load, removeAirwayModifier and TypeMethodDescriptionvoidAdds a waypoint to the route.voidaddWaypoint(NavigationDataBean nd, String airway) Adds a waypoint to the route.voidAdds multiple waypoints to the route.Returns the Airway each waypoint is on.getRoute()Returns the route.intgetSize()Returns the number of waypoints.Returns the waypoints on this route.voidinsertWaypoint(NavigationDataBean nd, String airway) Adds a waypoint to the start of the route.protected voidload(PopulatedRoute pr) Helper method to copy a route from one PopulatedRoute to another.voidremoveAirway(String code) Removes all waypoints on a particular Airway from the route.Methods inherited from class FlightRoute
equals, getAirportA, getAirportD, getComments, getCreatedOn, getCruiseAltitude, getFullRoute, getSID, getSTAR, 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.getSID()Returns the Standard Instrument Departure ID.getSTAR()Returns the Standard Terminal Arrival Route ID.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.
-
Constructor Details
-
DispatchRoute
public DispatchRoute()Creates a new, empty Dispatch route. -
DispatchRoute
Creates a new Dispatch route from a Populated route.- Parameters:
pr- the PopulatedRoute bean
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
getUseCount
public int getUseCount()Returns the number of times this route has been used.- Specified by:
getUseCountin interfaceUseCount- Returns:
- the usage count
-
getLastUsed
Returns the last use date of this route.- Returns:
- the last use date/time
-
getDispatchBuild
public int getDispatchBuild()Returns the build number of the dispatch client used to create this route.- Returns:
- the build number, or zero if via web application
-
getAirline
-
getAirportL
-
setLastUsed
Updates the last use date of this route.- Parameters:
dt- the last use date/time
-
setDispatchBuild
public void setDispatchBuild(int build) Sets the build number of the dispatch client used to create this route.- Parameters:
build- the build number, or zero if via web application
-
setUseCount
public void setUseCount(int count) Updates the number of times this route has been used.- Parameters:
count- the usage count
-
getActive
public boolean getActive()Returns if this route is active.- Returns:
- TRUE if active, otherwise FALSE
-
setAirline
-
setAirportL
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin interfaceAuthoredBean- Parameters:
id- the author's database ID.- See Also:
-
setActive
public void setActive(boolean isActive) Marks this route as active.- Parameters:
isActive- TRUE if active, otherwise false
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Overrides:
getComboNamein classPopulatedRoute- 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- Overrides:
getComboAliasin classPopulatedRoute- Returns:
- The alias for this entry
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-
hashCode
public int hashCode()- Overrides:
hashCodein classPopulatedRoute
-