public class LynxNack extends LynxMessage
Modifier and Type | Class and Description |
---|---|
static interface |
LynxNack.ReasonCode |
static class |
LynxNack.StandardReasonCode |
hasBeenTransmitted, messageNumber, module, nanotimeLastTransmit, payloadTimeWindow, referenceNumber, serialization
Constructor and Description |
---|
LynxNack(LynxModuleIntf module) |
LynxNack(LynxModuleIntf module,
int nackReasonCode) |
LynxNack(LynxModuleIntf module,
LynxNack.ReasonCode reasonCode) |
Modifier and Type | Method and Description |
---|---|
void |
fromPayloadByteArray(byte[] rgb) |
int |
getCommandNumber() |
LynxNack.ReasonCode |
getNackReasonCode() |
LynxNack.StandardReasonCode |
getNackReasonCodeAsEnum()
Use this method to easily check for certain reason codes in a switch statement (as StandardReasonCode is an enum).
|
static int |
getStandardCommandNumber() |
boolean |
isNack() |
byte[] |
toPayloadByteArray() |
acquireNetworkLock, forgetSerialization, getDestModuleAddress, getMessageNumber, getModule, getModuleAddress, getNanotimeLastTransmit, getPayloadTimeWindow, getReferenceNumber, getSerialization, hasBeenTransmitted, invokeStaticNullaryMethod, isAck, isAckable, isResponse, isResponseExpected, loadFromSerialization, noteHasBeenTransmitted, noteRetransmission, onPretendTransmit, releaseNetworkLock, resetModulePingTimer, setMessageNumber, setModule, setNanotimeLastTransmit, setPayloadTimeWindow, setReferenceNumber, setSerialization
public LynxNack(LynxModuleIntf module)
public LynxNack(LynxModuleIntf module, int nackReasonCode)
public LynxNack(LynxModuleIntf module, LynxNack.ReasonCode reasonCode)
public LynxNack.ReasonCode getNackReasonCode()
public LynxNack.StandardReasonCode getNackReasonCodeAsEnum()
public static int getStandardCommandNumber()
public int getCommandNumber()
getCommandNumber
in class LynxMessage
public byte[] toPayloadByteArray()
toPayloadByteArray
in class LynxMessage
public void fromPayloadByteArray(byte[] rgb)
fromPayloadByteArray
in class LynxMessage
public boolean isNack()
isNack
in class LynxMessage