Class ArchivedRoute
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ArchivedRoute
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Route, Cacheable
A bean to store archivted route data and AIRAC version.
- Since:
- 8.6
- Version:
- 8.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()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.
-
Constructor Details
-
ArchivedRoute
public ArchivedRoute(int id, int airacVersion) Creates the bean.- Parameters:
id- the ACARS flight IDairacVersion- the AIRAC version in effect
-
-
Method Details
-
getAIRACVersion
public int getAIRACVersion()Returns the AIRAC version in effect.- Returns:
- the version code
-
getWaypoints
Description copied from interface:RouteReturns the waypoints for this Route.- Specified by:
getWaypointsin interfaceRoute- Returns:
- a LinkedList of Intersections
-
getSize
-
getRoute
-