|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.NetMessage
jmri.jmrix.zimo.Mx1Message
public class Mx1Message
Represents a single command or response on the XpressNet.
Content is represented with ints to avoid the problems with sign-extension that bytes have, and because a Java char is actually a variable number of bytes in Unicode.
| Constructor Summary | |
|---|---|
Mx1Message(int len)
Create a new object, representing a specific-length message. |
|
| Method Summary | |
|---|---|
boolean |
checkParity()
check whether the message has a valid parity in fact check for CR or LF as end of message |
void |
setParity()
Set parity to be correct for this implementation. |
| Methods inherited from class jmri.jmrix.NetMessage |
|---|
getElement, getNumDataElements, getOpCode, getOpCodeHex, highByte, lowByte, setElement, setOpCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Mx1Message(int len)
len - Total bytes in message, including opcode and error-detection byte.| Method Detail |
|---|
public boolean checkParity()
checkParity in class NetMessagepublic void setParity()
NetMessage
setParity in class NetMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||