jmri.jmrix.grapevine
Class SerialReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.grapevine.SerialReply
- All Implemented Interfaces:
- Message
public class SerialReply
- extends AbstractMRReply
Contains the data payload of a serial reply
packet. Note that its _only_ the payload.
- Author:
- Bob Jacobsen Copyright (C) 2002, 2006, 2007, 2008
| Methods inherited from class jmri.jmrix.AbstractMRReply |
flush, getOpCode, isBinary, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value |
SerialReply
public SerialReply()
SerialReply
public SerialReply(String s)
SerialReply
public SerialReply(SerialReply l)
getAddr
public int getAddr()
- Is reply to poll message
isUnsolicited
public boolean isUnsolicited()
- Overrides:
isUnsolicited in class AbstractMRReply
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix in class AbstractMRReply
getBank
public int getBank()
isError
public boolean isError()
isFromParallelSensor
public boolean isFromParallelSensor()
isFromOldSerialSensor
public boolean isFromOldSerialSensor()
isFromNewSerialSensor
public boolean isFromNewSerialSensor()
setNumDataElements
public void setNumDataElements(int len)
format
public String format()
- Format the reply as human-readable text.
Since Grapevine doesn't distinguish between message
and reply, this uses the Message method.
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: