public interface SendableMessage
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
AX25Message |
dup()
Creates and returns a copy of this Message.
|
byte[] |
getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
Get an instance of this message, suitable for transmitting.
|
boolean |
isEnabled()
Test if message should still be transmitted.
|
byte[] getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
countTransmission - number of times the message has been transmitted.protocolId - AX.25 protocol ID to generate the message in, or 0 for default protocol; currently,
only NOLVL3 (APRS) and OPENTRAC are supported.frame - AX25Frame into which the message will be placed; the decoded message (as opposed to the byte
array encoding) should be stored into the field frame.parsedAX25MsgAX25Frame.parsedAX25Msgboolean isEnabled()
AX25Message dup()
will be true, and that the expression:x.clone() != x
will be true, but these are not absolute requirements. While it is typically the case that:x.clone().getClass() == x.getClass()
will be true, this is not an absolute requirement.x.clone().equals(x)