Class RadioCapability

java.lang.Object
org.ka2ddo.opentrac.RadioCapability
All Implemented Interfaces:
Serializable

public class RadioCapability extends Object implements Serializable
One RadioCapability array element for the OpenTracRadioCapabilities message element.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Modulation bandwidth in Hertz.
    byte
    CTCSS subtone in use, as index through CTCSS codes.
    byte
    Further details about the information, in index through FCC definition letters.
    static final String
    Detail type codes in numeric index order.
    int
    Radio frequency in 10s of kiloHertz.
    byte
    Radio function, as index through function names.
    byte
    Information type, in index through FCC definition letters.
    static final String
    Information content type codes in numeric index order.
    byte
    Modulation scheme, in index through FCC definition letters.
    static final String
    Modulation type codes in numeric index order.
    byte
    Multiplexing scheme, in index through FCC definition letters.
    static final String
    Multiplexing codes in numeric index order.
    byte
    Signal content type, in index through FCC definition numbers.
    static final String
    Signal type codes in numeric index order.
    static final int
    Number of bytes to encode one RadioCapability structure.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an uninitialized RadioCapability element.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    computeBody(byte[] buf, int offset)
    Append this element to a message buffer
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for the object.
    Get the human-readable String of this element's value.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SIZE

      public static final int SIZE
      Number of bytes to encode one RadioCapability structure.
      See Also:
    • frequency

      public int frequency
      Radio frequency in 10s of kiloHertz.
    • signal

      public byte signal
      Signal content type, in index through FCC definition numbers.
      See Also:
    • modulation

      public byte modulation
      Modulation scheme, in index through FCC definition letters.
      See Also:
    • information

      public byte information
      Information type, in index through FCC definition letters.
      See Also:
    • detail

      public byte detail
      Further details about the information, in index through FCC definition letters.
      See Also:
    • multiplex

      public byte multiplex
      Multiplexing scheme, in index through FCC definition letters.
      See Also:
    • function

      public byte function
      Radio function, as index through function names.
      See Also:
      • FUNCTION_TYPES
    • ctcss

      public byte ctcss
      CTCSS subtone in use, as index through CTCSS codes.
      See Also:
    • bandwidth

      public int bandwidth
      Modulation bandwidth in Hertz.
    • MODULATION_TYPES

      public static final String MODULATION_TYPES
      Modulation type codes in numeric index order.
      See Also:
    • SIGNAL_TYPES

      public static final String SIGNAL_TYPES
      Signal type codes in numeric index order.
      See Also:
    • INFORMATION_TYPES

      public static final String INFORMATION_TYPES
      Information content type codes in numeric index order.
      See Also:
    • DETAIL_TYPES

      public static final String DETAIL_TYPES
      Detail type codes in numeric index order.
      See Also:
    • MULTIPLEX_TYPES

      public static final String MULTIPLEX_TYPES
      Multiplexing codes in numeric index order.
      See Also:
  • Constructor Details

    • RadioCapability

      public RadioCapability()
      Create an uninitialized RadioCapability element.
  • Method Details

    • computeBody

      public int computeBody(byte[] buf, int offset)
      Append this element to a message buffer
      Parameters:
      buf - byte array to add the element to
      offset - starting index to store the element
      Returns:
      index after the end of the stored element
    • valueString

      public String valueString()
      Get the human-readable String of this element's value.
      Returns:
      String
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
      See Also:
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
      See Also: