Class SerialMessage

  • All Implemented Interfaces:

    public class SerialMessage
    extends AbstractMRMessage
    Contains the data payload of a TMCC serial packet.

    Note that only the payload, not the header or trailer, nor the padding DLE characters are included. These are added during transmission.

    • Constructor Detail

      • SerialMessage

        public SerialMessage​(java.lang.String m)
        This ctor interprets the String as the exact sequence to send, byte-for-byte.
        m - string form of bytes to send
      • SerialMessage

        public SerialMessage​(byte[] a)
        This ctor interprets the byte array as a sequence of characters to send.
        a - Array of bytes to send
      • SerialMessage

        public SerialMessage​(int value)
        This ctor takes an int value for the 16 bit data content
        value - The value stored in the content of the packet