Package jmri.jmrix.marklin
Class MarklinReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.marklin.MarklinReply
- All Implemented Interfaces:
Message
Carries the reply to an MarklinMessage.
-
Field Summary
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZEFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the 4-Byte Address.int[]int[]intintGet the Control Command.intgetElement(int n) Get a particular element in a Message.int[]getHash()intbooleanbooleanGet flag for Unsolicited.intmaxSize()voidsetAddress(long address) Sets the 4-byte address by splitting an integer into four bytes.voidsetCommand(int command) Set the Command value.protected intskipPrefix(int index) toString()intvalue()Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpaceMethods inherited from class jmri.jmrix.AbstractMessage
equals, getNumDataElements, hashCode
-
Constructor Details
-
MarklinReply
public MarklinReply() -
MarklinReply
-
MarklinReply
-
MarklinReply
-
-
Method Details
-
maxSize
- Overrides:
maxSizein classAbstractMRReply
-
skipPrefix
- Specified by:
skipPrefixin classAbstractMRReply
-
value
- Overrides:
valuein classAbstractMRReply
-
getElement
Description copied from class:AbstractMessageGet a particular element in a Message.- Specified by:
getElementin interfaceMessage- Overrides:
getElementin classAbstractMessage- Parameters:
n- Element Index.- Returns:
- single element of message.
-
isUnsolicited
Description copied from class:AbstractMRReplyGet flag for Unsolicited.- Overrides:
isUnsolicitedin classAbstractMRReply- Returns:
- true if Unsolicited, else false.
-
toString
- Specified by:
toStringin interfaceMessage- Overrides:
toStringin classAbstractMRReply
-
toMonitorString
- Returns:
- a human-readable representation of the message.
-
isResponse
-
getCanDataLength
-
getCanData
-
getCanAddress
-
getAddress
Get the 4-Byte Address.- Returns:
- the value from CANADDRESSBYTE1 (hi) to CANADDRESSBYTE4 (low)
-
setAddress
Sets the 4-byte address by splitting an integer into four bytes.- Parameters:
address- the 32-bit integer representing the full address
-
getPriority
-
getCommand
Get the Control Command.- Returns:
- command, e.g. MarklinConstants.CMDHALTSYS
-
setCommand
Set the Command value.- Parameters:
command- new value.
-
getHash
-