|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.can.adapters.gridconnect.GridConnectReply
public class GridConnectReply
Class for replies in a GridConnect based message/reply protocol.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.AbstractMRReply |
|---|
DEFAULTMAXSIZE |
| Fields inherited from class jmri.jmrix.AbstractMessage |
|---|
_dataChars, _nDataChars |
| Constructor Summary | |
|---|---|
GridConnectReply()
|
|
GridConnectReply(GridConnectReply m)
|
|
GridConnectReply(int i)
|
|
GridConnectReply(int[] d)
|
|
| Method Summary | |
|---|---|
int |
getByte(int b)
Get a hex data byte from the message Data bytes are encoded as two ASCII hex digits starting at byte 7 of the message. |
int |
getElement(int n)
|
int |
getID()
Get the CBUS ID as an int |
int |
getNumBytes()
Get the number of data bytes |
int |
getNumDataElements()
|
int |
getPri()
Get the CBUS Priority as an int |
int |
maxSize()
|
void |
setData(int[] d)
|
void |
setElement(int n,
int v)
|
void |
setNumDataElements(int n)
|
protected int |
skipPrefix(int index)
|
| Methods inherited from class jmri.jmrix.AbstractMRReply |
|---|
flush, getOpCode, isBinary, isUnsolicited, match, pollValue, setBinary, setOpCode, setUnsolicited, skipWhiteSpace, toString, value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridConnectReply()
public GridConnectReply(int i)
public GridConnectReply(int[] d)
public GridConnectReply(GridConnectReply m)
| Method Detail |
|---|
protected int skipPrefix(int index)
skipPrefix in class AbstractMRReplypublic int getNumDataElements()
getNumDataElements in interface MessagegetNumDataElements in class AbstractMessagepublic void setNumDataElements(int n)
public int getElement(int n)
getElement in interface MessagegetElement in class AbstractMessage
public void setElement(int n,
int v)
setElement in interface MessagesetElement in class AbstractMRReplypublic int maxSize()
maxSize in class AbstractMRReplypublic void setData(int[] d)
public int getID()
public int getPri()
public int getNumBytes()
public int getByte(int b)
Data bytes are encoded as two ASCII hex digits starting at byte 7 of the message.
b - The byte offset (0 - 7)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||