@Immutable @ThreadSafe public class TractionControlReplyMessage extends AddressedPayloadMessage
Created by bracz on 12/29/15.
Modifier and Type | Field and Description |
---|---|
static byte |
CMD_CONSIST |
static byte |
CMD_CONTROLLER |
static byte |
CMD_GET_FN |
static byte |
CMD_GET_SPEED |
static byte |
CMD_MGMT |
private static Logger |
logger |
static byte |
SUBCMD_CONSIST_ATTACH |
static byte |
SUBCMD_CONSIST_DETACH |
static byte |
SUBCMD_CONSIST_QUERY |
static byte |
SUBCMD_CONTROLLER_ASSIGN |
static byte |
SUBCMD_CONTROLLER_CHANGE |
static byte |
SUBCMD_CONTROLLER_QUERY |
static byte |
SUBCMD_MGMT_RESERVE |
payload
MTI_CONSUMER_IDENTIFIED, MTI_DATAGRAM, MTI_DATAGRAM_RCV_OK, MTI_DATAGRAM_REJECTED, MTI_IDENTIFY_CONSUMERS, MTI_IDENTIFY_CONSUMERS_RANGE, MTI_IDENTIFY_EVENTS, MTI_IDENTIFY_PRODUCERS, MTI_IDENTIFY_PRODUCERS_RANGE, MTI_INITIALIZATION_COMPLETE, MTI_LEARN_EVENT, MTI_OPT_INT_REJECTED, MTI_PC_EVENT_REPORT, MTI_PRODUCER_IDENTIFIED, MTI_PROTOCOL_IDENT_REPLY, MTI_PROTOCOL_IDENT_REQUEST, MTI_SIMPLE_NODE_IDENT_REPLY, MTI_SIMPLE_NODE_IDENT_REQUEST, MTI_STREAM_DATA_COMPLETE, MTI_STREAM_DATA_PROCEED, MTI_STREAM_DATA_SEND, MTI_STREAM_INIT_REPLY, MTI_STREAM_INIT_REQUEST, MTI_VERIFIED_NID, MTI_VERIFY_NID
Constructor and Description |
---|
TractionControlReplyMessage(NodeID source,
NodeID dest,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(MessageDecoder decoder,
Connection sender)
Implement message-type-specific
processing when this message
is received by a node.
|
Float16 |
getActualSpeed() |
byte |
getAssignControllerReply() |
byte |
getCmd() |
Float16 |
getCommandedSpeed() |
int |
getConsistIndex() |
int |
getConsistLength() |
int |
getConsistQueryFlags()
Extract the consist entry's flag byte.
|
NodeID |
getConsistQueryNodeID()
Extract the consisted train's node ID from the consist list query response.
|
NodeID |
getCurrentControllerReply() |
MessageTypeIdentifier |
getEMTI() |
int |
getFnNumber() |
int |
getFnVal() |
byte |
getReserveReply() |
Float16 |
getSetSpeed() |
byte |
getSubCmd() |
getMTI, getPayload, toString
equals, getDestNodeID, hashCode
getSourceNodeID
private static final Logger logger
public static final byte CMD_GET_SPEED
public static final byte CMD_GET_FN
public static final byte CMD_CONTROLLER
public static final byte SUBCMD_CONTROLLER_ASSIGN
public static final byte SUBCMD_CONTROLLER_QUERY
public static final byte SUBCMD_CONTROLLER_CHANGE
public static final byte CMD_MGMT
public static final byte SUBCMD_MGMT_RESERVE
public static final byte CMD_CONSIST
public static final byte SUBCMD_CONSIST_ATTACH
public static final byte SUBCMD_CONSIST_DETACH
public static final byte SUBCMD_CONSIST_QUERY
public byte getCmd() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public byte getSubCmd() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public byte getAssignControllerReply() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public NodeID getCurrentControllerReply() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public byte getReserveReply() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public Float16 getSetSpeed() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public Float16 getCommandedSpeed() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public Float16 getActualSpeed() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public int getFnNumber()
public int getFnVal()
public int getConsistLength()
public int getConsistIndex()
@Nullable public NodeID getConsistQueryNodeID()
public int getConsistQueryFlags()
public void applyTo(MessageDecoder decoder, Connection sender)
Message
Default is to do nothing.
public MessageTypeIdentifier getEMTI()
getEMTI
in class AddressedPayloadMessage
Copyright © 2017 The OpenLCB Group. All rights reserved.