Class RadioPosition

java.lang.Object
org.deltava.beans.servinfo.RadioPosition
All Implemented Interfaces:
Serializable, Comparable<RadioPosition>, GeoLocation, GeospaceLocation

public class RadioPosition extends Object implements Serializable, GeospaceLocation, Comparable<RadioPosition>
A bean to store VATSIM transceiver data.
Since:
10.0
Version:
10.0
Author:
Luke
See Also:
  • Constructor Details

    • RadioPosition

      public RadioPosition(String callsign, int seq, String freq)
      Creates the bean.
      Parameters:
      callsign - the callsign
      seq - the sequence number
      freq - the frequency
  • Method Details

    • getCallsign

      public String getCallsign()
      Returns the user's callsign.
      Returns:
      the callsign
    • getFrequency

      public String getFrequency()
      Returns the radio frequncy.
      Returns:
      the frequency
    • getSequence

      public int getSequence()
    • getLatitude

      public double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees
    • getAltitude

      public int getAltitude()
      Description copied from interface: GeospaceLocation
      Returns the altitude of the location above MSL.
      Specified by:
      getAltitude in interface GeospaceLocation
      Returns:
      the altitude in feet
    • setPosition

      public void setPosition(double lat, double lng, int alt)
      Updates the transceiver location.
      Parameters:
      lat - the latitude in degrees
      lng - the longitude in degrees
      alt - the altitude in feet above MSL
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(RadioPosition rp)
      Specified by:
      compareTo in interface Comparable<RadioPosition>