jmri.jmrix.easydcc
Class EasyDccReply

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRReply
          extended by jmri.jmrix.easydcc.EasyDccReply
All Implemented Interfaces:
Message

public class EasyDccReply
extends AbstractMRReply

Carries the reply to an EasyDccMessage.

Author:
Bob Jacobsen Copyright (C) 2001, 2004

Field Summary
 
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
 
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
 
Constructor Summary
EasyDccReply()
           
EasyDccReply(EasyDccReply l)
           
EasyDccReply(String s)
           
 
Method Summary
protected  int skipPrefix(int index)
           
 int value()
          Extracts Read-CV returned value from a message.
 
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isUnsolicited, match, maxSize, pollValue, 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

EasyDccReply

public EasyDccReply()

EasyDccReply

public EasyDccReply(String s)

EasyDccReply

public EasyDccReply(EasyDccReply l)
Method Detail

skipPrefix

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

value

public int value()
Extracts Read-CV returned value from a message. Returns -1 if message can't be parsed. Expects a message of the formnat "CVnnnvv" where vv is the hexadecimal value or "Vnvv" where vv is the hexadecimal value.

Overrides:
value 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