public final class GpsCommunicationsConstellation extends Object
GpsCommunicationsFrontEnd
.Modifier and Type | Method and Description |
---|---|
static PlatformCollection |
create(SemAlmanac almanac,
ArrayList<GpsSatelliteInformation> gpsSatelliteInfo)
Create a GPS communications constellation from an almanac and a set of GPS constellation information.
|
static PlatformCollection |
create(SemAlmanac almanac,
String gpsDataFile)
Create a GPS communications constellation from an almanac and a set of GPS constellation information.
|
static PlatformCollection |
create(String semAlmanacFile,
int rolloverCount,
String gpsDataFile)
Creates a GPS constellation that includes navigation signal transmitters specific to each satellite block type.
|
static PlatformCollection |
download()
Create a GPS communications constellation by downloading the latest data from an AGI server.
|
static PlatformCollection |
download(Proxy proxy)
Create a GPS communications constellation by downloading the latest data from an AGI server.
|
@Nonnull public static PlatformCollection create(@Nonnull String semAlmanacFile, int rolloverCount, @Nonnull String gpsDataFile)
IGpsPrnService
, IGpsSatelliteInformationService
,
ILocationPointService
, IOrientationAxesService
, and
INavigationTransmitterService
.
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
).
Note that the latest GPSData.txt file should be used and can be downloaded from: https://ftp.agi.com/pub/Catalog/Almanacs/SEM/GPSData.txt.
semAlmanacFile
- The location of the almanac file to use for GPS satellite positions.rolloverCount
- The number of times the GPS week counter had rolled over when the almanac was created.
See below for more information.gpsDataFile
- The location of the GPSData.txt file to use that defines the GPS block and PRN information.PlatformCollection
representing GPS satellites and their transmitters.ArgumentNullException
- Thrown when semAlmanacFile
or gpsDataFile
is null
.@Nonnull public static PlatformCollection create(@Nonnull SemAlmanac almanac, @Nonnull String gpsDataFile)
IGpsPrnService
, IGpsSatelliteInformationService
,
ILocationPointService
, IOrientationAxesService
, and
INavigationTransmitterService
.
Note that the latest GPSData.txt file should be used and can be downloaded from: https://ftp.agi.com/pub/Catalog/Almanacs/SEM/GPSData.txt.
almanac
- The almanac used to describe the GPS constellation.gpsDataFile
- The location of the GPSData.txt file to use that defines the blocks and PRN information.PlatformCollection
representing GPS satellites and their transmitters.ArgumentNullException
- Thrown when almanac
or gpsDataFile
is null
.@Nonnull public static PlatformCollection create(@Nonnull SemAlmanac almanac, @Nonnull ArrayList<GpsSatelliteInformation> gpsSatelliteInfo)
IGpsPrnService
, IGpsSatelliteInformationService
,
ILocationPointService
, IOrientationAxesService
, and
INavigationTransmitterService
.
GpsDataFile
contains helper methods to load GPS satellite information from a file, or download data from an AGI server.
almanac
- The almanac used to describe the GPS constellation.gpsSatelliteInfo
- A list of GpsSatelliteInformation
objects containing information about the GPS constellation.PlatformCollection
representing GPS satellites and their transmitters.ArgumentNullException
- Thrown when almanac
or gpsSatelliteInfo
is null
.@Nonnull public static PlatformCollection download()
IGpsPrnService
, IGpsSatelliteInformationService
,
ILocationPointService
, IOrientationAxesService
, and
INavigationTransmitterService
.
Note that an internet connection is required to use this method successfully.
PlatformCollection
representing GPS satellites and their transmitters.DataUnavailableException
- Thrown when the data cannot be retrieved from the server.@Nonnull public static PlatformCollection download(@Nullable Proxy proxy)
IGpsPrnService
, IGpsSatelliteInformationService
,
ILocationPointService
, IOrientationAxesService
, and
INavigationTransmitterService
.
Note that an internet connection is required to use this method successfully.
proxy
- Proxy to use when connecting.PlatformCollection
representing GPS satellites and their transmitters.DataUnavailableException
- Thrown when the data cannot be retrieved from the server.