jmri.jmrix.maple
Class SerialMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.maple.SerialMessage
- All Implemented Interfaces:
- Message
public class SerialMessage
- extends AbstractMRMessage
Contains the data payload of a 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, 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
setNoReply
protected void setNoReply()
replyExpected
public boolean replyExpected()
- Description copied from class:
AbstractMRMessage
- Is a reply expected to this message?
By default, a reply is expected to every message;
either a reply or a timeout is needed before the next
message can be sent.
If this returns false, the transmit queue will
immediately go on to transmitt the next message (if any).
- Overrides:
replyExpected in class AbstractMRMessage
isPoll
public boolean isPoll()
isXmt
public boolean isXmt()
isInit
public boolean isInit()
getUA
public int getUA()
getAddress
public int getAddress()
getNumItems
public int getNumItems()
getPoll
public static SerialMessage getPoll(int UA,
int startAdd,
int count)
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: