|
||||||||||
| 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.sprog.SprogReply
public class SprogReply
SprogReply.java Description: Carries the reply to a SprogMessage
| Field Summary | |
|---|---|
static int |
maxSize
|
| Fields inherited from class jmri.jmrix.AbstractMRReply |
|---|
DEFAULTMAXSIZE |
| Fields inherited from class jmri.jmrix.AbstractMessage |
|---|
_dataChars, _nDataChars |
| Constructor Summary | |
|---|---|
SprogReply()
|
|
SprogReply(SprogReply m)
Create a new SprogReply as a deep copy of an existing SprogReply |
|
SprogReply(String replyString)
|
|
SprogReply(String replyString,
boolean isBoot)
Create a SprogReply from a String |
|
| Method Summary | |
|---|---|
boolean |
endBootloaderReply(SprogConstants.SprogState sprogState)
|
boolean |
endBootReply()
|
boolean |
endNormalReply()
|
boolean |
getChecksum()
|
boolean |
isError()
Is this reply indicating that a general error has occurred? |
boolean |
isOverload()
Is this reply indicating that an overload condition was detected? |
int |
match(String s)
Returns the index of String s in the reply |
protected int |
skipPrefix(int index)
|
boolean |
strip()
|
String |
toString()
Returns a string representation of this SprogReply |
int |
value()
Extracts Read-CV returned value from a message. |
| Methods inherited from class jmri.jmrix.AbstractMRReply |
|---|
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace |
| Methods inherited from class jmri.jmrix.AbstractMessage |
|---|
getElement, getNumDataElements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int maxSize
| Constructor Detail |
|---|
public SprogReply()
public SprogReply(SprogReply m)
m - the SprogReply to copy
public SprogReply(String replyString,
boolean isBoot)
replyString - a String containing the contents of the replyisBoot - a boolean indicating if this is a boot replypublic SprogReply(String replyString)
| Method Detail |
|---|
protected int skipPrefix(int index)
skipPrefix in class AbstractMRReplypublic boolean isOverload()
public boolean isError()
public boolean strip()
public boolean getChecksum()
public String toString()
toString in interface MessagetoString in class AbstractMRReplypublic int value()
value in class AbstractMRReplypublic int match(String s)
match in class AbstractMRReplypublic boolean endNormalReply()
public boolean endBootReply()
public boolean endBootloaderReply(SprogConstants.SprogState sprogState)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||