Class SatelliteState

java.lang.Object
org.ka2ddo.gps.SatelliteState

public class SatelliteState extends Object
This class contains all the known information for one GPS satellite.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Horizontal orientation to this satellite relative to the current surface position and True North.
    int
    Elevation above the horizon for this satellite relative to the current surface position.
    boolean
    Boolean true if this satellite is currently being used for position calculation.
    final int
    Pseudo-random number identifying this satellite (also known as Satellite Vehicle number).
    int
    Signal-to-noise ratio code for current reception of this satellite.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SatelliteState(int prn)
    Create a SatelliteState record for a particular satellite.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for the object.
    Returns a string representation of the object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • prn

      public final int prn
      Pseudo-random number identifying this satellite (also known as Satellite Vehicle number).
    • inUseByRcvr

      public boolean inUseByRcvr
      Boolean true if this satellite is currently being used for position calculation.
    • elevation

      public int elevation
      Elevation above the horizon for this satellite relative to the current surface position.
    • azimuth

      public int azimuth
      Horizontal orientation to this satellite relative to the current surface position and True North.
    • snr

      public int snr
      Signal-to-noise ratio code for current reception of this satellite.
  • Constructor Details

    • SatelliteState

      public SatelliteState(int prn)
      Create a SatelliteState record for a particular satellite.
      Parameters:
      prn - Satellite Vehicle number
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.