Class DailyOceanicTracks
java.lang.Object
org.deltava.beans.navdata.DailyOceanicTracks
- All Implemented Interfaces:
Serializable
,Comparable<DailyOceanicTracks>
,OceanicTrackInfo
public class DailyOceanicTracks
extends Object
implements Serializable, Comparable<DailyOceanicTracks>, OceanicTrackInfo
A bean to store a daily collection of Oceanic Tracks.
- Since:
- 3.4
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.navdata.OceanicTrackInfo
OceanicTrackInfo.Direction, OceanicTrackInfo.Type
-
Constructor Summary
ConstructorsConstructorDescriptionDailyOceanicTracks
(OceanicTrackInfo.Type t, Instant effDate) Creates the bean. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a Track to this collection.int
Compares two Track collections by comparing their type and effective dates.boolean
Returns if any Oceanic Track contains a particular waypoint.boolean
Find an oceanic track with the specific start and end waypoints.getDate()
Returns the effective date of the Oceanic.Returns an Oceanic Track with a specific codeReturns all of the Track for that day.getType()
Returns the route type code.int
hashCode()
int
size()
Returns the number of OceanicTracks in the collection.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
-
size
public int size()Returns the number of OceanicTracks in the collection.- Returns:
- the number of tracks
-
getTrack
Returns an Oceanic Track with a specific code- Parameters:
code
- the Track code, which includes the track type and ID- Returns:
- an OceanicTrack bean, or null if not found
-
find
Find an oceanic track with the specific start and end waypoints.- Parameters:
startWP
- the starting waypoint code, or null if anyendWP
- the ending waypoint code, or null if any- Returns:
- an OceanicTrack bean, or null if none found
-
contains
Returns if any Oceanic Track contains a particular waypoint.- Parameters:
code
- the waypoint code- Returns:
- TRUE if any track contains this waypoint, otherwise FALSE
-
getTracks
Returns all of the Track for that day.- Returns:
- a Collection of OceanicTrack beans
-
hashCode
-
equals
-
toString
-