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:
- 11.6
- 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) getDate()
Returns the effective date of the Oceanic.Returns the retrieval date of the track data.getRoute()
Returns the route NOTAM text.Returns the source hostname where this NOTAM was downloaded from.getType()
Returns the route type code.int
hashCode()
void
Updates the NOTAM effective date.void
setFetchDate
(Instant dt) Updates the retrieval date of this NOTAM.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
Description copied from interface:OceanicTrackInfo
Returns the effective date of the Oceanic.- Specified by:
getDate
in interfaceOceanicTrackInfo
- Returns:
- the route date
-
getType
Description copied from interface:OceanicTrackInfo
Returns the route type code.- Specified by:
getType
in interfaceOceanicTrackInfo
- Returns:
- the route type
-
getFetchDate
Returns the retrieval date of the track data.- Returns:
- the retrieval date/time
-
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:
-
setFetchDate
Updates the retrieval date of this NOTAM.- Parameters:
dt
- the retrieval date/time- See Also:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<OceanicNOTAM>
-
hashCode
-
toString
-