Package org.robolectric.shadows
Class GnssStatusBuilder.GnssSatelliteInfo.Builder
java.lang.Object
org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo.Builder
- Enclosing class:
- GnssStatusBuilder.GnssSatelliteInfo
Builder for
GnssStatusBuilder.GnssSatelliteInfo
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract GnssStatusBuilder.GnssSatelliteInfo
build()
Builds theGnssStatusBuilder.GnssSatelliteInfo
.setAzimuth
(float azimuth) Sets theazimuth
of the satellite, in degrees.setCarrierFrequencyHz
(Float carrierFrequencyHz) Sets thecarrier frequency
of the satellite, in Hz, if present; ifnull
, indicates that the carrier frequencyis not available
.setCn0DbHz
(float cn0DbHz) Gets thecarrier-to-noise density
of the satellite.setConstellation
(int constellation) Sets theGNSS constellation
of the satellite.setElevation
(float elevation) Sets theelevation
of the satellite, in degrees.setHasAlmanac
(boolean hasAlmanac) Sets whether the satellitehas almanac data
.setHasEphemeris
(boolean hasEphemeris) Sets whether the satellitehas ephemeris data
.setSvid
(int svid) Sets theidentification number
of the satellite.setUsedInFix
(boolean usedInFix) Sets whether the satellitewas used in the most recent position fix
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setConstellation
Sets theGNSS constellation
of the satellite. -
setSvid
Sets theidentification number
of the satellite. -
setCn0DbHz
Gets thecarrier-to-noise density
of the satellite. -
setElevation
Sets theelevation
of the satellite, in degrees. -
setAzimuth
Sets theazimuth
of the satellite, in degrees. -
setHasEphemeris
Sets whether the satellitehas ephemeris data
. -
setHasAlmanac
Sets whether the satellitehas almanac data
. -
setUsedInFix
Sets whether the satellitewas used in the most recent position fix
. -
setCarrierFrequencyHz
public abstract GnssStatusBuilder.GnssSatelliteInfo.Builder setCarrierFrequencyHz(@Nullable Float carrierFrequencyHz) Sets thecarrier frequency
of the satellite, in Hz, if present; ifnull
, indicates that the carrier frequencyis not available
. -
build
Builds theGnssStatusBuilder.GnssSatelliteInfo
.
-