Package jmri.jmrix.acela
Class AcelaMessage
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRMessage
-
- jmri.jmrix.acela.AcelaMessage
-
- All Implemented Interfaces:
Message
public class AcelaMessage extends AbstractMRMessage
Contains the data payload of an Acela packet.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
POLL_TIMEOUT
-
Fields inherited from class jmri.jmrix.AbstractMRMessage
LONG_TIMEOUT, SHORT_TIMEOUT
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description AcelaMessage()
AcelaMessage(byte[] a)
This ctor interprets the byte array as a sequence of characters to send.AcelaMessage(int i)
AcelaMessage(java.lang.String m)
This ctor interprets the String as the exact sequence to send, byte-for-byte.AcelaMessage(AcelaMessage m)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AcelaMessage
getAcelaConfigSensorMsg()
static AcelaMessage
getAcelaOnlineMsg()
static AcelaMessage
getAcelaPollNodesMsg()
static AcelaMessage
getAcelaPollSensorsMsg()
static AcelaMessage
getAcelaResetMsg()
static AcelaMessage
getAcelaVersionMsg()
java.lang.String
toString()
-
Methods inherited from class jmri.jmrix.AbstractMRMessage
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode, setElement
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.Message
toMonitorString
-
-
-
-
Field Detail
-
POLL_TIMEOUT
static final int POLL_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AcelaMessage
public AcelaMessage()
-
AcelaMessage
public AcelaMessage(int i)
-
AcelaMessage
public AcelaMessage(AcelaMessage m)
-
AcelaMessage
public AcelaMessage(java.lang.String m)
This ctor interprets the String as the exact sequence to send, byte-for-byte.- Parameters:
m
- string form of message.
-
AcelaMessage
public AcelaMessage(byte[] a)
This ctor interprets the byte array as a sequence of characters to send.- Parameters:
a
- Array of bytes to send
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from interface:Message
- Specified by:
toString
in interfaceMessage
- Overrides:
toString
in classAbstractMRMessage
-
getAcelaVersionMsg
public static AcelaMessage getAcelaVersionMsg()
-
getAcelaResetMsg
public static AcelaMessage getAcelaResetMsg()
-
getAcelaOnlineMsg
public static AcelaMessage getAcelaOnlineMsg()
-
getAcelaPollNodesMsg
public static AcelaMessage getAcelaPollNodesMsg()
-
getAcelaPollSensorsMsg
public static AcelaMessage getAcelaPollSensorsMsg()
-
getAcelaConfigSensorMsg
public static AcelaMessage getAcelaConfigSensorMsg()
-
-