jmri.jmrix.ecos
Class EcosReply

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRReply
          extended by jmri.jmrix.ecos.EcosReply
All Implemented Interfaces:
Message

public class EcosReply
extends AbstractMRReply

Carries the reply to an EcosMessage.

Some rudimentary support is provided for the "binary" option.

Author:
Bob Jacobsen Copyright (C) 2001, 2008, Daniel Boudreau Copyright (C) 2007

Field Summary
 
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
 
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
 
Constructor Summary
EcosReply()
           
EcosReply(EcosReply l)
           
EcosReply(String s)
           
 
Method Summary
 boolean containsEnd()
          Check for last line starts with "
 boolean isSensorMessage()
          Examine message to see if it is an asynchronous sensor (AIU) state report
 boolean isUnsolicited()
           
 int maxSize()
           
 int pollValue()
          Extract poll values from binary reply
protected  int skipPrefix(int index)
           
 int value()
           
 
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString
 
Methods inherited from class jmri.jmrix.AbstractMessage
getElement, getNumDataElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EcosReply

public EcosReply()

EcosReply

public EcosReply(String s)

EcosReply

public EcosReply(EcosReply l)
Method Detail

maxSize

public int maxSize()
Overrides:
maxSize in class AbstractMRReply

skipPrefix

protected int skipPrefix(int index)
Specified by:
skipPrefix in class AbstractMRReply

value

public int value()
Overrides:
value in class AbstractMRReply

containsEnd

public boolean containsEnd()
Check for last line starts with "

pollValue

public int pollValue()
Extract poll values from binary reply

Overrides:
pollValue in class AbstractMRReply

isSensorMessage

public boolean isSensorMessage()
Examine message to see if it is an asynchronous sensor (AIU) state report

Returns:
true if message asynch sensor message Boudreau: Improved detection to check three bytes and message length of exactly 3

isUnsolicited

public boolean isUnsolicited()
Overrides:
isUnsolicited in class AbstractMRReply


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads