Package jmri.jmrix.ecos
Class EcosReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.ecos.EcosReply
- All Implemented Interfaces:
Message
Carries the reply to an EcosMessage.
Some rudimentary support is provided for the "binary" option.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int(package private) StringFields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZEFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck for last line starts with"<END ".static StringgetContentDetail(String str) static StringgetContentDetails(String line, String item) String[]get the contents of the reply, excluding the header and footerintintGet the Result Code.(package private) booleanisEvent()Is this EcosReply actually an independent<EVENTmessage?booleanisReply()booleanGet flag for Unsolicited.intmaxSize()protected intskipPrefix(int index) intvalue()Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toStringMethods 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
-
endAtElement
int endAtElement -
replyType
-
headerDetails
-
objectId
int objectId
-
-
Constructor Details
-
EcosReply
public EcosReply() -
EcosReply
-
EcosReply
-
-
Method Details
-
maxSize
- Overrides:
maxSizein classAbstractMRReply
-
skipPrefix
- Specified by:
skipPrefixin classAbstractMRReply
-
value
- Overrides:
valuein classAbstractMRReply
-
containsEnd
Check for last line starts with"<END ".- Returns:
- true if contains END, else false.
-
getResultCode
Get the Result Code.- Returns:
- result code, else -1 if the end code has not been found.
-
isEvent
boolean isEvent()Is this EcosReply actually an independent<EVENTmessage?- Returns:
- true if it is an independent message
-
isUnsolicited
Description copied from class:AbstractMRReplyGet flag for Unsolicited.- Overrides:
isUnsolicitedin classAbstractMRReply- Returns:
- true if Unsolicited, else false.
-
isReply
-
getReplyType
-
getReplyHeaderDetails
-
getEcosObjectId
-
getContents
get the contents of the reply, excluding the header and footer- Returns:
- array with reply values.
-
getContentDetail
-
getContentDetails
-