类 SatelliteInfo
java.lang.Object
net.sf.marineapi.nmea.util.SatelliteInfo
- 直接已知子类:
UbloxSatelliteInfo
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 -
方法概要
修饰符和类型方法说明intGet satellite azimuth, in degrees from true north (0..359°).intGet satellite elevation, in degrees (max. 90°).getId()Get the ID of satellite vehicle, for example "05".intgetNoise()Get satellite the signal noise ratio, in dB (0-99 dB).voidsetAzimuth(int azimuth) Set satellite azimuth, in degrees from true north (0..359°).voidsetElevation(int elevation) Set satellite elevation, in degrees (max. 90°).voidSet the ID of satellite vehicle, for example "05".voidsetNoise(int noise) Set the satellite signal noise ratio, in dB (0-99 dB).toString()
-
构造器详细资料
-
SatelliteInfo
Creates a new instance of SatelliteInfo- 参数:
id- Satellite IDelevation- Current elevation of the satelliteazimuth- Current azimuth of the satellitenoise- 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
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
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
-