Class OpenTracMapSymbol

All Implemented Interfaces:
Serializable

public class OpenTracMapSymbol extends OpenTracByteArray
This class specifies a map symbol element of an OpenTRAC entity within an OpenTRAC message.
See Also:
  • Constructor Details

    • OpenTracMapSymbol

      public OpenTracMapSymbol()
      Create an empty OpenTracMapSymbol element (no symbol value yet).
    • OpenTracMapSymbol

      public OpenTracMapSymbol(int type, byte[] body, int offset, int length)
      Create an OpenTracMapSymbol element from the byte stream (presumably from an encoded OpenTRAC message).
      Parameters:
      type - OpenTRAC element type code from OpenTracTypes
      body - byte array to extract symbol code from
      offset - starting index in byte array for extraction
      length - length in bytes to extract
      See Also:
    • OpenTracMapSymbol

      public OpenTracMapSymbol(String symbolId)
      Create an OpenTracMapSymbol element from the ASCII text representation of a map code, using either the dotted-decimal format or the packed hexadecimal format.
      Parameters:
      symbolId - symbol code String
  • Method Details

    • valueString

      public String valueString()
      Get the string representation of the value of this element.
      Overrides:
      valueString in class OpenTracByteArray
      Returns:
      value string