Class TimeoutRfidSensor

  • All Implemented Interfaces:
    java.lang.Comparable<NamedBean>, PropertyChangeProvider, DigitalIO, IdTagListener, RfidTagListener, NamedBean, Sensor

    public class TimeoutRfidSensor
    extends RfidSensor
    Timeout specific implementation of an RfidSensor.

    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 Sensor 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.

    Since:
    3.9.2