Class OceanicTrack
java.lang.Object
org.deltava.beans.navdata.Airway
org.deltava.beans.navdata.OceanicTrack
- All Implemented Interfaces:
Serializable, Comparable<Airway>, GeoLocation, OceanicTrackInfo, Route, Cacheable
A bean to store Oceanic Track (NAT/PACOT/AUSOT) information.
- Since:
- 1.0
- Version:
- 9.1
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface OceanicTrackInfo
OceanicTrackInfo.Direction, OceanicTrackInfo.TypeModifier and TypeInterfaceDescriptionstatic enumAn enumeration for Oceanic Track direction.static enumAn enumeration for Oceanic Track types. -
Field Summary
Fields inherited from class Airway
_awseq, _waypointsModifier and TypeFieldDescriptionprotected intprotected final LinkedList<NavigationDataBean> Waypoints.Fields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles. -
Constructor Summary
ConstructorsConstructorDescriptionOceanicTrack(OceanicTrackInfo.Type type, String code) Creates a new Oceanic Route. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a waypoint to the Oceanic Track.getDate()Returns the date of the Oceanic Route NOTAM.Returns the direction of this Oceanic Track, based on waypoints.getEnd()Returns the last waypoint on this track.getStart()Returns the first waypoint on this track.getTrack()Returns the Track ID.getType()Returns the route type code.booleanisFixed()Returns whether the track is fixed from day to day.static booleanisNameValid(String name) Checks if a route waypoint is really an Oceanic Track name.reverse()Reverses an Oceanic Track's waypoints.voidUpdates the NOTAM effective date.toString()Methods inherited from class Airway
cacheKey, compareTo, contains, equals, find, getCode, getLatitude, getLongitude, getRoute, getSequence, getSize, getWaypoints, getWaypoints, hashCode, isHighLevel, isLowLevel, setCode, setHighLevel, setLowLevelModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleanReturns whether this Airway contains a particular waypoint.booleanprotected intFinds a waypoint in this Airway.getCode()Returns the airway code.doubleReturns the latitude of the middle of the Airway.doubleReturns the longitude of the middle of the Airway.getRoute()Returns the Airway route.intReturns the sequence number, used to differentiate airways with different locations but the same code.intgetSize()Returns the number of waypoints in the airway.Returns the waypoints for this Airway.getWaypoints(String start, String end) Returns a subset of waypoints for this Airway between two waypoints.inthashCode()booleanReturns if this Airway is a high-level Airway.booleanReturns if this Airway is a low-level Airway.voidUpdates the Airway code.voidsetHighLevel(boolean isHigh) Marks this Airway as a high-level Airway.voidsetLowLevel(boolean isLow) Marks this Airway as a low-level Airway.Methods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
Constructor Details
-
Method Details
-
getDate
Returns the date of the Oceanic Route NOTAM.- Specified by:
getDatein interfaceOceanicTrackInfo- Returns:
- the route date
- See Also:
-
getType
Returns the route type code.- Specified by:
getTypein interfaceOceanicTrackInfo- Returns:
- the route type
-
getDirection
Returns the direction of this Oceanic Track, based on waypoints.- Returns:
- the Direction
-
reverse
Reverses an Oceanic Track's waypoints.- Returns:
- an OceanicTrack with reversed waypoints
-
isFixed
public boolean isFixed()Returns whether the track is fixed from day to day.- Returns:
- FALSE always
-
getTrack
-
getStart
Returns the first waypoint on this track.- Returns:
- the first waypoint bean
- See Also:
-
getEnd
Returns the last waypoint on this track.- Returns:
- the last waypoint bean
- See Also:
-
setDate
Updates the NOTAM effective date.- Parameters:
d- the NOTAM date- See Also:
-
isNameValid
Checks if a route waypoint is really an Oceanic Track name.- Parameters:
name- the waypoint name- Returns:
- TRUE if a valid Oceanic Track name, otherwise FALSE
-
toString
-