Package jmri.jmrix.secsi
Class SerialMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.secsi.SerialMessage
- All Implemented Interfaces:
Message
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.
-
Field Summary
FieldsFields inherited from class jmri.jmrix.AbstractMRMessage
LONG_TIMEOUT, SHORT_TIMEOUTFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
ConstructorsConstructorDescriptionSerialMessage(byte[] a, int l) Deprecated, for removal: This API element is subject to removal in a future version.5.13.5, unused, requires further development.SerialMessage(int l) SerialMessage(String m, int l) This ctor interprets the String as the exact sequence to send, byte-for-byte. -
Method Summary
Modifier and TypeMethodDescriptionintgetAddr()static SerialMessagegetPoll(int addr) intbooleanisPoll()booleanisXmt()voidsetResponseLength(int l) Methods inherited from class jmri.jmrix.AbstractMRMessage
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout, toStringMethods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode, setElementMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrix.Message
toMonitorString
-
Field Details
-
responseLength
int responseLength
-
-
Constructor Details
-
SerialMessage
-
SerialMessage
This ctor interprets the String as the exact sequence to send, byte-for-byte.- Parameters:
m- message string.l- response length.
-
SerialMessage
Deprecated, for removal: This API element is subject to removal in a future version.5.13.5, unused, requires further development.This ctor interprets the byte array as a sequence of characters to send.- Parameters:
a- Array of bytes to sendl- response length
-
-
Method Details
-
setResponseLength
-
getResponseLength
-
isPoll
-
isXmt
-
getAddr
-
getPoll
-