org.dinopolis.gpstool.gpsinput
Class SatelliteInfo

java.lang.Object
  extended byorg.dinopolis.gpstool.gpsinput.SatelliteInfo

public class SatelliteInfo
extends java.lang.Object

Holds information about gps satellites (like position and signal strength).

Version:
$Revision: 1.5 $
Author:
Christof Dallermassl

Constructor Summary
SatelliteInfo(int PRN, float elevation, float azimuth, int SNR)
          Craeates a new SatelliteInfo
 
Method Summary
 float getAzimuth()
          Get the azimuth.
 float getElevation()
          Get the elevation.
 int getPRN()
          Get the prn (number of satellite)
 int getSNR()
          Get the snr (strength (00 to 99 dB), 0 when not tracking)
 void setAzimuth(float azimuth)
          Set the azimuth.
 void setElevation(float elevation)
          Set the elevation.
 void setPRN(int prn)
          Set the prn.
 void setSNR(int snr)
          Set the snr.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SatelliteInfo

public SatelliteInfo(int PRN,
                     float elevation,
                     float azimuth,
                     int SNR)
Craeates a new SatelliteInfo

Parameters:
PRN - the number of the satellite
elevation - elevation in degrees (90 maximum)
azimuth - Azimuth, degrees from true north, 000 to 359
SNR - 00-99 dB (null when not tracking)
Method Detail

getPRN

public int getPRN()
Get the prn (number of satellite)

Returns:
the prn.

setPRN

public void setPRN(int prn)
Set the prn.

Parameters:
prn - the prn.

getElevation

public float getElevation()
Get the elevation.

Returns:
the elevation.

setElevation

public void setElevation(float elevation)
Set the elevation.

Parameters:
elevation - the elevation.

getAzimuth

public float getAzimuth()
Get the azimuth.

Returns:
the azimuth.

setAzimuth

public void setAzimuth(float azimuth)
Set the azimuth.

Parameters:
azimuth - the azimuth.

getSNR

public int getSNR()
Get the snr (strength (00 to 99 dB), 0 when not tracking)

Returns:
the snr.

setSNR

public void setSNR(int snr)
Set the snr.

Parameters:
snr - the snr.

toString

public java.lang.String toString()
Returns a string representation of this object.

Returns:
a string representation of this object.