Package jmri.jmrix.dcc4pc
Class Dcc4PcReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.dcc4pc.Dcc4PcReply
- All Implemented Interfaces:
Message
Dcc4PcReply.java
Carries the reply to a Dcc4PcMessage
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanstatic final intstatic final intstatic final int(package private) Dcc4PcMessage(package private) booleanstatic final intFields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZEFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
ConstructorsConstructorDescriptionDcc4PcReply(byte[] packet) Dcc4PcReply(String replyString) Create a new Dcc4PcReply as a deep copy of an existing Dcc4PcReply -
Method Summary
Modifier and TypeMethodDescriptionintgetBoard()int[]byte[]intbooleanisError()Is this reply indicating that a general error has occurred?intReturns the index of String s in the replyintmaxSize()voidsetError(boolean boo) protected voidprotected intskipPrefix(int index) voidstrip()Returns a hex string representation of this Dcc4PcReply.toString()Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, valueMethods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrix.Message
toMonitorString
-
Field Details
-
Constructor Details
-
Dcc4PcReply
public Dcc4PcReply() -
Dcc4PcReply
-
Dcc4PcReply
Create a new Dcc4PcReply as a deep copy of an existing Dcc4PcReply- Parameters:
m- the Dcc4PcReply to copy
-
Dcc4PcReply
-
-
Method Details
-
skipPrefix
- Specified by:
skipPrefixin classAbstractMRReply
-
setError
-
isError
Is this reply indicating that a general error has occurred?- Returns:
- true if error, else false.
-
strip
-
toHexString
Returns a hex string representation of this Dcc4PcReply.- Returns:
- hex string format of Reply using 0x format.
-
match
Returns the index of String s in the reply- Overrides:
matchin classAbstractMRReply
-
getDataAsArray
-
toString
- Specified by:
toStringin interfaceMessage- Overrides:
toStringin classAbstractMRReply
-
getFormattedReply
-
maxSize
- Overrides:
maxSizein classAbstractMRReply
-
getOriginalRequest
-
setOriginalRequest
-
getBoard
-
getMessageType
-