GnssStatus.Builder
public
static
final
class
GnssStatus.Builder
extends Object
Builder class to help create new GnssStatus instances.
Summary
Public methods |
GnssStatus.Builder
|
addSatellite(int constellationType, int svid, float cn0DbHz, float elevation, float azimuth, boolean hasEphemeris, boolean hasAlmanac, boolean usedInFix, boolean hasCarrierFrequency, float carrierFrequency, boolean hasBasebandCn0DbHz, float basebandCn0DbHz)
Adds a new satellite to the Builder.
|
GnssStatus
|
build()
Builds a new GnssStatus based on the satellite information in the Builder.
|
GnssStatus.Builder
|
clearSatellites()
Clears all satellites in the Builder.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
Builder
public Builder ()
Public methods
addSatellite
public GnssStatus.Builder addSatellite (int constellationType,
int svid,
float cn0DbHz,
float elevation,
float azimuth,
boolean hasEphemeris,
boolean hasAlmanac,
boolean usedInFix,
boolean hasCarrierFrequency,
float carrierFrequency,
boolean hasBasebandCn0DbHz,
float basebandCn0DbHz)
Adds a new satellite to the Builder.
Parameters |
constellationType |
int : one of the CONSTELLATION_* constants
Value is GnssStatus.CONSTELLATION_UNKNOWN , GnssStatus.CONSTELLATION_GPS , GnssStatus.CONSTELLATION_SBAS , GnssStatus.CONSTELLATION_GLONASS , GnssStatus.CONSTELLATION_QZSS , GnssStatus.CONSTELLATION_BEIDOU , GnssStatus.CONSTELLATION_GALILEO , or GnssStatus.CONSTELLATION_IRNSS |
svid |
int : the space vehicle identifier
Value is between 1 and 200 inclusive |
cn0DbHz |
float : carrier-to-noise density at the antenna in dB-Hz
Value is between 0 and 63 inclusive |
elevation |
float : satellite elevation in degrees
Value is between -90 and 90 inclusive |
azimuth |
float : satellite azimuth in degrees
Value is between 0 and 360 inclusive |
hasEphemeris |
boolean : whether the satellite has ephemeris data |
hasAlmanac |
boolean : whether the satellite has almanac data |
usedInFix |
boolean : whether the satellite was used in the most recent location fix |
hasCarrierFrequency |
boolean : whether carrier frequency data is available |
carrierFrequency |
float : satellite carrier frequency in Hz
Value is 0 or greater |
hasBasebandCn0DbHz |
boolean : whether baseband carrier-to-noise density is available |
basebandCn0DbHz |
float : baseband carrier-to-noise density in dB-Hz
Value is between 0 and 63 inclusive |
build
public GnssStatus build ()
Builds a new GnssStatus based on the satellite information in the Builder.
clearSatellites
public GnssStatus.Builder clearSatellites ()
Clears all satellites in the Builder.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]