jmri.jmrix.rfid.coreid
Class CoreIdRfidReply

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRReply
          extended by jmri.jmrix.rfid.RfidReply
              extended by jmri.jmrix.rfid.coreid.CoreIdRfidReply
All Implemented Interfaces:
Message
Direct Known Subclasses:
SpecificReply, SpecificReply

public abstract class CoreIdRfidReply
extends RfidReply

Common routines to extract the Tag information and validate checksum for implementations that use the CORE-ID / ID-Innovations protocol.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Matthew Harris Copyright (C) 2011

Field Summary
static int SPECIFICMAXSIZE
           
 
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
 
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
 
Constructor Summary
CoreIdRfidReply(RfidTrafficController tc)
           
CoreIdRfidReply(RfidTrafficController tc, RfidReply l)
           
CoreIdRfidReply(RfidTrafficController tc, String s)
           
 
Method Summary
 String getCheckSum()
           
 String getTag()
          Is reply to poll message
 boolean isCheckSumValid()
           
 
Methods inherited from class jmri.jmrix.rfid.RfidReply
convertHexString, skipPrefix, toMonitorString
 
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value
 
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
 

Field Detail

SPECIFICMAXSIZE

public static final int SPECIFICMAXSIZE
See Also:
Constant Field Values
Constructor Detail

CoreIdRfidReply

public CoreIdRfidReply(RfidTrafficController tc)

CoreIdRfidReply

public CoreIdRfidReply(RfidTrafficController tc,
                       String s)

CoreIdRfidReply

public CoreIdRfidReply(RfidTrafficController tc,
                       RfidReply l)
Method Detail

getTag

public String getTag()
Description copied from class: RfidReply
Is reply to poll message

Overrides:
getTag in class RfidReply

getCheckSum

public String getCheckSum()

isCheckSumValid

public boolean isCheckSumValid()


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