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, setSerializationpublic 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 LynxMessagepublic byte[] toPayloadByteArray()
toPayloadByteArray in class LynxMessagepublic void fromPayloadByteArray(byte[] rgb)
fromPayloadByteArray in class LynxMessagepublic boolean isNack()
isNack in class LynxMessage