类 SatelliteInfo

java.lang.Object
net.sf.marineapi.nmea.util.SatelliteInfo
直接已知子类:
UbloxSatelliteInfo

public class SatelliteInfo extends Object
SatelliteInfo represents the information about a single GPS satellite vehicle.
作者:
Kimmo Tuukkanen, Gunnar Hillert
另请参阅:
  • 构造器概要

    构造器
    构造器
    说明
    SatelliteInfo(String id, int elevation, int azimuth, int noise)
    Creates a new instance of SatelliteInfo
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Get satellite azimuth, in degrees from true north (0..359°).
    int
    Get satellite elevation, in degrees (max. 90°).
    Get the ID of satellite vehicle, for example "05".
    int
    Get satellite the signal noise ratio, in dB (0-99 dB).
    void
    setAzimuth(int azimuth)
    Set satellite azimuth, in degrees from true north (0..359°).
    void
    setElevation(int elevation)
    Set satellite elevation, in degrees (max. 90°).
    void
    Set the ID of satellite vehicle, for example "05".
    void
    setNoise(int noise)
    Set the satellite signal noise ratio, in dB (0-99 dB).
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • SatelliteInfo

      public SatelliteInfo(String id, int elevation, int azimuth, int noise)
      Creates a new instance of SatelliteInfo
      参数:
      id - Satellite ID
      elevation - Current elevation of the satellite
      azimuth - Current azimuth of the satellite
      noise - Current noise ratio of the satellite signal
  • 方法详细资料

    • getAzimuth

      public int getAzimuth()
      Get satellite azimuth, in degrees from true north (0..359°).
      返回:
      azimuth value
    • getElevation

      public int getElevation()
      Get satellite elevation, in degrees (max. 90°).
      返回:
      elevation value
    • getId

      public String getId()
      Get the ID of satellite vehicle, for example "05".
      返回:
      ID String
    • getNoise

      public int getNoise()
      Get satellite the signal noise ratio, in dB (0-99 dB).
      返回:
      Noise ratio
    • setAzimuth

      public void setAzimuth(int azimuth)
      Set satellite azimuth, in degrees from true north (0..359°).
      参数:
      azimuth - the azimuth to set
      抛出:
      IllegalArgumentException - If value is out of bounds 0..360 deg.
    • setElevation

      public void setElevation(int elevation)
      Set satellite elevation, in degrees (max. 90°).
      参数:
      elevation - the elevation to set
      抛出:
      IllegalArgumentException - If value is out of bounds 0..90 deg.
    • setId

      public void setId(String id)
      Set the ID of satellite vehicle, for example "05".
      参数:
      id - the id to set
    • setNoise

      public void setNoise(int noise)
      Set the satellite signal noise ratio, in dB (0-99 dB).
      参数:
      noise - the noise to set
      抛出:
      IllegalArgumentException - If value is out of bounds 0..99 dB.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object