Class OceanicNOTAM
java.lang.Object
org.deltava.beans.schedule.OceanicNOTAM
- All Implemented Interfaces:
Comparable<OceanicNOTAM>
,OceanicTrackInfo
A bean to store NOTAMs containing Oceanic route data.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.navdata.OceanicTrackInfo
OceanicTrackInfo.Direction, OceanicTrackInfo.Type
-
Constructor Summary
ConstructorsConstructorDescriptionOceanicNOTAM
(OceanicTrackInfo.Type type, Instant dt) Initializes the NOTAM bean. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(OceanicNOTAM or2) Implements Comparable interface by comparing the dates, then the route types.getDate()
Returns the date of the Oceanic Route NOTAM.getRoute()
Returns the route NOTAM text.Returns the source hostname where this NOTAM was downloaded from.getType()
Returns the route type code.void
Updates the NOTAM effective date.void
Updates the NOTAM contents.void
Updates the NOTAM source hostname.void
setType
(OceanicTrackInfo.Type type) Updates the route type.toString()
-
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
-
getSource
Returns the source hostname where this NOTAM was downloaded from.- Returns:
- the hostname
- See Also:
-
getRoute
-
setDate
Updates the NOTAM effective date.- Parameters:
d
- the NOTAM date- See Also:
-
setSource
Updates the NOTAM source hostname.- Parameters:
srcHost
- the host this NOTAM was downloaded from- Throws:
NullPointerException
- if srcHost is null- See Also:
-
setRoute
Updates the NOTAM contents.- Parameters:
routeData
- the NOTAM contents- See Also:
-
compareTo
Implements Comparable interface by comparing the dates, then the route types.- Specified by:
compareTo
in interfaceComparable<OceanicNOTAM>
- See Also:
-
toString
-