jmri.jmrix.tmcc
Class SerialMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.tmcc.SerialMessage
- All Implemented Interfaces:
- Message
public class SerialMessage
- extends AbstractMRMessage
Contains the data payload of a TMCC serial
packet.
Note that only the payload, not
the header or trailer, nor the padding DLE characters
are included. These are added during transmission.
|
Field Summary |
(package private) static org.slf4j.Logger |
log
|
| Methods inherited from class jmri.jmrix.AbstractMRMessage |
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout |
log
static org.slf4j.Logger log
SerialMessage
public SerialMessage()
SerialMessage
public SerialMessage(SerialMessage m)
SerialMessage
public SerialMessage(String m)
- This ctor interprets the String as the exact
sequence to send, byte-for-byte.
- Parameters:
m -
SerialMessage
public SerialMessage(byte[] a)
- This ctor interprets the byte array as
a sequence of characters to send.
- Parameters:
a - Array of bytes to send
SerialMessage
public SerialMessage(int value)
- This ctor takes an int value for the 16 bit data content
- Parameters:
value - The value stored in the content of the packet
toString
public String toString()
- Specified by:
toString in interface Message- Overrides:
toString in class AbstractMRMessage
putAsWord
public void putAsWord(int val)
getAsWord
public int getAsWord()
Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: