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 org.deltava.beans.navdata.OceanicTrackInfo
OceanicTrackInfo.Direction, OceanicTrackInfo.Type
-
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
ConstructorsConstructorDescriptionOceanicTrack
(OceanicTrackInfo.Type type, String code) Creates a new Oceanic Route. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds 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.boolean
isFixed()
Returns whether the track is fixed from day to day.static boolean
isNameValid
(String name) Checks if a route waypoint is really an Oceanic Track name.reverse()
Reverses an Oceanic Track's waypoints.void
Updates the NOTAM effective date.toString()
Methods inherited from class org.deltava.beans.navdata.Airway
cacheKey, compareTo, contains, equals, find, getCode, getLatitude, getLongitude, getRoute, getSequence, getSize, getWaypoints, getWaypoints, hashCode, 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
-
getDate
Returns the date of the Oceanic Route NOTAM.- Specified by:
getDate
in interfaceOceanicTrackInfo
- Returns:
- the route date
- See Also:
-
getType
Returns the route type code.- Specified by:
getType
in 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
-