jmri.jmrix.tchtech.serial
Class SerialMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.tchtech.serial.SerialMessage
- All Implemented Interfaces:
- Message
public class SerialMessage
- extends AbstractMRMessage
Contains the data payload of a TCH Technology 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
isAck
public boolean isAck()
isErr
public boolean isErr()
isInq
public boolean isInq()
isPoll
public boolean isPoll()
isXmt
public boolean isXmt()
isInit
public boolean isInit()
getNA
public int getNA()
getPoll
public static SerialMessage getPoll(int Addr)
Copyright © 1997 - 2008 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: