Class CasterRecord


  • public class CasterRecord
    extends Record
    Caster record in source table.
    Since:
    11.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • CasterRecord

        public CasterRecord​(String line)
        Build a caster record by parsing a source table line.
        Parameters:
        line - source table line
    • Method Detail

      • getRecordType

        public RecordType getRecordType()
        Get the type of record.
        Specified by:
        getRecordType in class Record
        Returns:
        type of record
      • getHostOrIPAddress

        public String getHostOrIPAddress()
        Get the host or IP address.
        Returns:
        host or IP address
      • getPort

        public int getPort()
        Get the port number.
        Returns:
        port number
      • getSourceIdentifier

        public String getSourceIdentifier()
        Get the source identifier.
        Returns:
        source identifier
      • getOperator

        public String getOperator()
        Get the institution/agency/company operating the caster.
        Returns:
        institution/agency/company operating the caster
      • canReceiveNMEA

        public boolean canReceiveNMEA()
        Check if caster can receive NMEA messages.
        Returns:
        true if caster can receive NMEA messages
      • getCountry

        public String getCountry()
        Get the country.
        Returns:
        country
      • getLatitude

        public double getLatitude()
        Get the latitude.
        Returns:
        latitude (rad)
      • getLongitude

        public double getLongitude()
        Get the longitude.
        Returns:
        longitude (rad)
      • getFallbackHostOrIPAddress

        public String getFallbackHostOrIPAddress()
        Get the fallback host or IP address.
        Returns:
        fallback host or IP address
      • getFallbackPort

        public int getFallbackPort()
        Get the fallback port number.
        Returns:
        fallback port number