jmri.jmrix.nce
Class NceReply

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRReply
          extended by jmri.jmrix.nce.NceReply
All Implemented Interfaces:
Message

public class NceReply
extends AbstractMRReply

Carries the reply to an NceMessage.

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

Author:
Bob Jacobsen Copyright (C) 2001, 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
NceReply()
           
NceReply(NceReply l)
           
NceReply(String s)
           
 
Method Summary
 boolean isSensorMessage()
          Examine message to see if it is an asynchronous sensor (AIU) state report
 boolean isUnsolicited()
           
 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, match, maxSize, 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

NceReply

public NceReply()

NceReply

public NceReply(String s)

NceReply

public NceReply(NceReply l)
Method Detail

skipPrefix

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

value

public int value()
Overrides:
value in class AbstractMRReply

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 - 2008 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: SourceForge_Logo