Class TimeoutRfidReporter

All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, IdTagListener, NamedBean, PhysicalLocationReporter, Reporter

public class TimeoutRfidReporter
extends RfidReporter
since 4.19.4. Use jmri.implementation.decorators.TimeoutReporter as a replacement.
Timeout specific implementation of an RfidReporter.

Certain RFID readers only send a message when an RFID tag is within the proximity of the reader - no message is sent when it leaves.

As a result, this implementation simulates this message using a timeout mechanism - if no further tags are sensed within a pre-defined time period, the Reporter value is nullified and state reverts to IdTag.UNSEEN.

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.