Package jmri.jmrix.powerline.dmx512
Class SpecificMessage
- java.lang.Object
- 
- jmri.jmrix.AbstractMessage
- 
- jmri.jmrix.AbstractMRMessage
- 
- jmri.jmrix.powerline.SerialMessage
- 
- jmri.jmrix.powerline.dmx512.SpecificMessage
 
 
 
 
- 
- All Implemented Interfaces:
- Message
 
 public class SpecificMessage extends SerialMessage Contains the data payload of a serial packet.The transmission protocol can come in one of several forms: - If the interlocked parameter is false (default), the packet is just sent. If the response length is not zero, a reply of that length is expected.
- If the interlocked parameter is true, the transmission will require a CRC interlock, which will be automatically added. (Design note: this is done to make sure that the messages remain atomic)
 
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) booleaninterlocked(package private) intresponseLength- 
Fields inherited from class jmri.jmrix.AbstractMRMessageLONG_TIMEOUT, SHORT_TIMEOUT
 - 
Fields inherited from class jmri.jmrix.AbstractMessage_dataChars, _nDataChars
 
- 
 - 
Constructor SummaryConstructors Constructor Description SpecificMessage(byte[] a, int l)Deprecated, for removal: This API element is subject to removal in a future version.5.13.5, unused, requires further development.SpecificMessage(int l)SpecificMessage(java.lang.String m, int l)This ctor interprets the String as the exact sequence to send, byte-for-byte.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetInterlocked()intgetResponseLength()voidsetInterlocked(boolean v)voidsetResponseLength(int l)java.lang.StringtoMonitorString()- 
Methods inherited from class jmri.jmrix.powerline.SerialMessagegetAddr, getPoll, isPoll, isXmt
 - 
Methods inherited from class jmri.jmrix.AbstractMRMessageaddIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout, toString
 - 
Methods inherited from class jmri.jmrix.AbstractMessageequals, getElement, getNumDataElements, hashCode, setElement
 
- 
 
- 
- 
- 
Field Detail- 
interlockedboolean interlocked 
 - 
responseLengthint responseLength 
 
- 
 - 
Constructor Detail- 
SpecificMessagepublic SpecificMessage(int l) 
 - 
SpecificMessagepublic SpecificMessage(java.lang.String m, int l) This ctor interprets the String as the exact sequence to send, byte-for-byte.- Parameters:
- m- message
- l- response length in bytes
 
 - 
SpecificMessage@Deprecated(since="5.13.5", forRemoval=true) public SpecificMessage(byte[] a, int l)Deprecated, for removal: This API element is subject to removal in a future version.5.13.5, unused, requires further development.This ctor interprets the byte array as a sequence of characters to send.- Parameters:
- a- Array of bytes to send
- l- length of expected reply
 
 
- 
 - 
Method Detail- 
setInterlockedpublic void setInterlocked(boolean v) - Overrides:
- setInterlockedin class- SerialMessage
 
 - 
getInterlockedpublic boolean getInterlocked() - Overrides:
- getInterlockedin class- SerialMessage
 
 - 
toMonitorStringpublic java.lang.String toMonitorString() - Returns:
- a human-readable representation of the message.
 
 - 
setResponseLengthpublic void setResponseLength(int l) - Overrides:
- setResponseLengthin class- SerialMessage
 
 - 
getResponseLengthpublic int getResponseLength() - Overrides:
- getResponseLengthin class- SerialMessage
 
 
- 
 
-