Package jmri.jmrix.roco.z21
Class Z21XNetReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.lenz.XNetReply
-
- jmri.jmrix.roco.z21.Z21XNetReply
-
- All Implemented Interfaces:
Message
public class Z21XNetReply extends XNetReply
Represents a single response from the XpressNet, with extensions from Roco for the Z21.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description Z21XNetReply()
Z21XNetReply(java.lang.String message)
Create a reply from a string of hex characters.Z21XNetReply(Z21XNetMessage message)
Create a reply from an XNetMessage.Z21XNetReply(Z21XNetReply reply)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFeedbackMessage()
Is this a feedback response message?boolean
isServiceModeResponse()
Is this message a service mode response?java.lang.String
toMonitorString()
-
Methods inherited from class jmri.jmrix.lenz.XNetReply
checkParity, createFeedbackItem, getElementBCD, getFeedbackEncoderMsgAddr, getFeedbackEncoderMsgAddr, getFeedbackMessageItems, getFeedbackMessageType, getFeedbackMessageType, getOpCodeHex, getServiceModeCVNumber, getServiceModeCVValue, getThrottleMsgAddr, getTurnoutMsgAddr, getTurnoutMsgAddr, getTurnoutStatus, getTurnoutStatus, isCommErrorMessage, isConsistMessage, isCSBusyMessage, isCSTransferError, isDirectModeResponse, isFeedbackBroadcastMessage, isFeedbackMotionComplete, isOkMessage, isPagedModeResponse, isRetransmittableErrorMsg, isThrottleMessage, isThrottleTakenOverMessage, isTimeSlotErrorMessage, isTimeSlotRestored, isTimeSlotRevoked, isUnsolicited, isUnsupportedError, onTurnoutFeedback, parseFunctionHighMomentaryStatus, parseFunctionHighStatus, parseFunctionMomentaryStatus, parseFunctionStatus, parseSpeedAndDirection, selectModuleFeedback, selectTurnoutFeedback, setParity, skipPrefix
-
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode
-
-
-
-
Constructor Detail
-
Z21XNetReply
public Z21XNetReply()
-
Z21XNetReply
public Z21XNetReply(Z21XNetReply reply)
-
Z21XNetReply
public Z21XNetReply(Z21XNetMessage message)
Create a reply from an XNetMessage.- Parameters:
message
- message to create reply from.
-
Z21XNetReply
public Z21XNetReply(java.lang.String message)
Create a reply from a string of hex characters.- Parameters:
message
- hex character string.
-
-
Method Detail
-
isServiceModeResponse
public boolean isServiceModeResponse()
Is this message a service mode response?- Overrides:
isServiceModeResponse
in classXNetReply
- Returns:
- true if a service mode response, else false.
-
isFeedbackMessage
public boolean isFeedbackMessage()
Description copied from class:XNetReply
Is this a feedback response message?- Overrides:
isFeedbackMessage
in classXNetReply
- Returns:
- true if a feedback response, else false.
-
toMonitorString
public java.lang.String toMonitorString()
- Specified by:
toMonitorString
in interfaceMessage
- Overrides:
toMonitorString
in classXNetReply
- Returns:
- a string representation of the reply suitable for display in the XpressNet monitor.
-
-