Class DataMessageFromHost

Direct Known Subclasses:
AcknowledgedDataMessageFromHost, BroadcastDataMessageFromHost, BurstTransferDataMessageFromHost

public abstract class DataMessageFromHost extends AntMessageFromHost
Since:
4.0
  • Field Details

    • LENGTH_STANDARD_PAYLOAD

      public static final int LENGTH_STANDARD_PAYLOAD
      The length in bytes of the standard payload in a broadcast, acknowledged, or burst message.
      Since:
      4.0
      See Also:
    • OFFSET_PAYLOAD_START

      public static final int OFFSET_PAYLOAD_START
      The message content offset to the first byte of the payload.
      Since:
      4.0
      See Also:
  • Constructor Details

    • DataMessageFromHost

      public DataMessageFromHost()
  • Method Details

    • getPayload

      public abstract byte[] getPayload()
      Gets the payload of the data message.
      Returns:
      The payload of the data message.
      Since:
      4.0
    • getStandardPayload

      protected static byte[] getStandardPayload(byte[] messageContent)
    • createDataMessageFromHost

      protected static DataMessageFromHost createDataMessageFromHost(MessageFromHostType messageType, byte[] messageContent)
    • toString

      public String toString()
      Overrides:
      toString in class AntMessageFromHost