jmri.jmrix.cmri.serial
Class SerialMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.cmri.serial.SerialMessage
- All Implemented Interfaces:
- Message
public class SerialMessage
- extends AbstractMRMessage
Contains the data payload of a CMRI serial
packet.
Note that only the payload, not
the header or trailer, nor the padding DLE characters
are included. These are added during transmission.
- Author:
- Bob Jacobsen Copyright (C) 2001,2003
| Methods inherited from class jmri.jmrix.AbstractMRMessage |
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout |
SerialMessage
public SerialMessage()
SerialMessage
public SerialMessage(int i)
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
toString
public String toString()
- Specified by:
toString in interface Message- Overrides:
toString in class AbstractMRMessage
isPoll
public boolean isPoll()
isXmt
public boolean isXmt()
isInit
public boolean isInit()
getUA
public int getUA()
getPoll
public static SerialMessage getPoll(int UA)
Copyright © 1997 - 2011 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: