Package jmri.jmrix.dcc4pc
Class Dcc4PcReply
- java.lang.Object
- 
- jmri.jmrix.AbstractMessage
- 
- jmri.jmrix.AbstractMRReply
- 
- jmri.jmrix.dcc4pc.Dcc4PcReply
 
 
 
- 
- All Implemented Interfaces:
- Message
 
 public class Dcc4PcReply extends AbstractMRReply Dcc4PcReply.java Carries the reply to a Dcc4PcMessage
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) booleanerrorstatic intFAILEDstatic intINCOMPLETEstatic intmaxSize(package private) Dcc4PcMessageorigMsg(package private) booleanstripRunstatic intSUCCESS- 
Fields inherited from class jmri.jmrix.AbstractMRReplyDEFAULTMAXSIZE
 - 
Fields inherited from class jmri.jmrix.AbstractMessage_dataChars, _nDataChars
 
- 
 - 
Constructor SummaryConstructors Constructor Description Dcc4PcReply()Dcc4PcReply(byte[] packet)Dcc4PcReply(java.lang.String replyString)Dcc4PcReply(Dcc4PcReply m)Create a new Dcc4PcReply as a deep copy of an existing Dcc4PcReply
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBoard()int[]getDataAsArray()byte[]getFormattedReply()intgetMessageType()Dcc4PcMessagegetOriginalRequest()booleanisError()Is this reply indicating that a general error has occurred?intmatch(java.lang.String s)Returns the index of String s in the replyintmaxSize()voidsetError(boolean boo)protected voidsetOriginalRequest(Dcc4PcMessage msg)protected intskipPrefix(int index)voidstrip()java.lang.StringtoHexString()Returns a hex string representation of this Dcc4PcReply.java.lang.StringtoString()- 
Methods inherited from class jmri.jmrix.AbstractMRReplyflush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, value
 - 
Methods inherited from class jmri.jmrix.AbstractMessageequals, getElement, getNumDataElements, hashCode
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jmri.jmrix.MessagetoMonitorString
 
- 
 
- 
- 
- 
Field Detail- 
maxSizepublic static final int maxSize - See Also:
- Constant Field Values
 
 - 
errorboolean error 
 - 
FAILEDpublic static final int FAILED - See Also:
- Constant Field Values
 
 - 
INCOMPLETEpublic static final int INCOMPLETE - See Also:
- Constant Field Values
 
 - 
SUCCESSpublic static final int SUCCESS - See Also:
- Constant Field Values
 
 - 
stripRunboolean stripRun 
 - 
origMsgDcc4PcMessage origMsg 
 
- 
 - 
Constructor Detail- 
Dcc4PcReplypublic Dcc4PcReply() 
 - 
Dcc4PcReplypublic Dcc4PcReply(byte[] packet) 
 - 
Dcc4PcReplypublic Dcc4PcReply(Dcc4PcReply m) Create a new Dcc4PcReply as a deep copy of an existing Dcc4PcReply- Parameters:
- m- the Dcc4PcReply to copy
 
 - 
Dcc4PcReplypublic Dcc4PcReply(java.lang.String replyString) 
 
- 
 - 
Method Detail- 
skipPrefixprotected int skipPrefix(int index) - Specified by:
- skipPrefixin class- AbstractMRReply
 
 - 
setErrorpublic void setError(boolean boo) 
 - 
isErrorpublic boolean isError() Is this reply indicating that a general error has occurred?- Returns:
- true if error, else false.
 
 - 
strippublic void strip() 
 - 
toHexStringpublic java.lang.String toHexString() Returns a hex string representation of this Dcc4PcReply.- Returns:
- hex string format of Reply using 0x format.
 
 - 
matchpublic int match(java.lang.String s) Returns the index of String s in the reply- Overrides:
- matchin class- AbstractMRReply
 
 - 
getDataAsArraypublic int[] getDataAsArray() 
 - 
toStringpublic java.lang.String toString() - Specified by:
- toStringin interface- Message
- Overrides:
- toStringin class- AbstractMRReply
 
 - 
getFormattedReplypublic byte[] getFormattedReply() 
 - 
maxSizepublic int maxSize() - Overrides:
- maxSizein class- AbstractMRReply
 
 - 
getOriginalRequestpublic Dcc4PcMessage getOriginalRequest() 
 - 
setOriginalRequestprotected void setOriginalRequest(Dcc4PcMessage msg) 
 - 
getBoardpublic int getBoard() 
 - 
getMessageTypepublic int getMessageType() 
 
- 
 
-