Class ParallaxRfidProtocol
- java.lang.Object
- 
- jmri.jmrix.rfid.RfidProtocol
- 
- jmri.jmrix.rfid.protocol.parallax.ParallaxRfidProtocol
 
 
- 
 public class ParallaxRfidProtocol extends RfidProtocol Common routines to extract the Tag information and validate checksum for implementations that use the Parallax 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. - Since:
- 3.9.2
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intSPECIFICMAXSIZE- 
Fields inherited from class jmri.jmrix.rfid.RfidProtocolconcentratorFirst, concentratorLast, isConcentrator, portPosition
 
- 
 - 
Constructor SummaryConstructors Constructor Description ParallaxRfidProtocol()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanendOfMessage(AbstractMRReply msg)Determines if at the end of this RFID replyjava.lang.StringgetCheckSum(AbstractMRReply msg)When available, returns the checksum portion of an RFID replystatic intgetMaxSize()java.lang.StringgetTag(AbstractMRReply msg)Retrieves RFID Tag information from messagejava.lang.StringinitString()Returns the initialisation string to be sent to an adapter implementing the protocol.booleanisValid(AbstractMRReply msg)Determines if this RFID reply is validjava.lang.StringtoMonitorString(AbstractMRReply msg)Provides a textual representation of this message for the monitor- 
Methods inherited from class jmri.jmrix.rfid.RfidProtocolconvertHexString, getReaderPort, providesChecksum
 
- 
 
- 
- 
- 
Field Detail- 
SPECIFICMAXSIZEpublic static final int SPECIFICMAXSIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ParallaxRfidProtocolpublic ParallaxRfidProtocol() 
 
- 
 - 
Method Detail- 
getMaxSizepublic static final int getMaxSize() 
 - 
initStringpublic java.lang.String initString() Description copied from class:RfidProtocolReturns the initialisation string to be sent to an adapter implementing the protocol. For those protocols that do not require one, return a blank string- Specified by:
- initStringin class- RfidProtocol
- Returns:
- initialisation string
 
 - 
getTagpublic java.lang.String getTag(AbstractMRReply msg) Description copied from class:RfidProtocolRetrieves RFID Tag information from message- Overrides:
- getTagin class- RfidProtocol
- Parameters:
- msg- Message to decode
- Returns:
- String representation of tag
 
 - 
getCheckSumpublic java.lang.String getCheckSum(AbstractMRReply msg) Description copied from class:RfidProtocolWhen available, returns the checksum portion of an RFID reply- Specified by:
- getCheckSumin class- RfidProtocol
- Parameters:
- msg- RFID reply to process
- Returns:
- checksum value
 
 - 
isValidpublic boolean isValid(AbstractMRReply msg) Description copied from class:RfidProtocolDetermines if this RFID reply is valid- Specified by:
- isValidin class- RfidProtocol
- Parameters:
- msg- RFID reply to process
- Returns:
- true if valid
 
 - 
endOfMessagepublic boolean endOfMessage(AbstractMRReply msg) Description copied from class:RfidProtocolDetermines if at the end of this RFID reply- Specified by:
- endOfMessagein class- RfidProtocol
- Parameters:
- msg- RFID reply to process
- Returns:
- true if at end
 
 - 
toMonitorStringpublic java.lang.String toMonitorString(AbstractMRReply msg) Description copied from class:RfidProtocolProvides a textual representation of this message for the monitor- Overrides:
- toMonitorStringin class- RfidProtocol
- Parameters:
- msg- RFID reply to process
- Returns:
- textual representation
 
 
- 
 
-