public final class YumaAlmanac extends BaseCollection<YumaAlmanacRecord>
Constructor and Description |
---|
YumaAlmanac()
Initializes a new instance containing no data.
|
Modifier and Type | Method and Description |
---|---|
PlatformCollection |
createSatelliteCollection()
Creates a GPS satellite for each record in the Yuma almanac.
|
YumaAlmanacRecord |
findRecordByPrn(int prn)
Finds the record corresponding to a particular PRN.
|
GlobalPositioningSystemDate |
getEpoch()
Gets the epoch of the almanac, which is the time at which the almanac
curve fit was performed.
|
int |
getNumberOfSatellites()
Gets the number of satellites in the almanac.
|
static YumaAlmanac |
readFrom(BufferedReader reader,
int rolloverCount)
Reads a Yuma almanac from the specified reader.
|
static YumaAlmanac |
readFrom(String fileName,
int rolloverCount)
Reads a Yuma almanac from the specified file.
|
add, add, addAll, addAll, clear, clearItems, contains, containsAll, get, getItems, indexOf, insertItem, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeItem, retainAll, set, setItem, size, subList, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public YumaAlmanac()
YumaAlmanac.readFrom(String,int)
to read data
from a Yuma almanac file.@Nonnull public static YumaAlmanac readFrom(@Nonnull String fileName, int rolloverCount)
The following list represents the rollover dates for the GPS week parameter. On or after the date listed below, you will need to use the specified rollover count.
Date | Rollover Count |
---|---|
January 6, 1980 | 0 |
August 22, 1999 | 1 |
April 7, 2019 | 2 |
November 21, 2038 | 3 |
July 7, 2058 | 4 |
To compute the rollover count for a given date, construct a
GlobalPositioningSystemDate
and use the value of
RolloverCount
(get
/ set
).
fileName
- The name of the file from which to read the almanac.rolloverCount
- The number of times the GPS week counter had rolled over when this almanac was created.
See below for more information.ArgumentNullException
- Thrown when fileName
is null
.@Nonnull public static YumaAlmanac readFrom(@Nonnull BufferedReader reader, int rolloverCount)
The following list represents the rollover dates for the GPS week parameter. On or after the date listed below, you will need to use the specified rollover count.
Date | Rollover Count |
---|---|
January 6, 1980 | 0 |
August 22, 1999 | 1 |
April 7, 2019 | 2 |
November 21, 2038 | 3 |
July 7, 2058 | 4 |
To compute the rollover count for a given date, construct a
GlobalPositioningSystemDate
and use the value of
RolloverCount
(get
/ set
).
reader
- The reader from which to read the almanac.rolloverCount
- The number of times the GPS week counter had rolled over when this almanac was created.
See below for more information.ArgumentNullException
- Thrown when reader
is null
.@Nullable public final YumaAlmanacRecord findRecordByPrn(int prn)
prn
- The PRN to find.public final int getNumberOfSatellites()
@Nonnull public final GlobalPositioningSystemDate getEpoch()
@Nonnull public final PlatformCollection createSatelliteCollection()
GpsSatelliteExtension
instance for each
record in the Yuma almanac, and they are found in the same order.