jmri.jmrix.rfid.coreid
Class CoreIdRfidSensor
java.lang.Object
jmri.implementation.AbstractNamedBean
jmri.implementation.AbstractSensor
jmri.jmrix.rfid.RfidSensor
jmri.jmrix.rfid.coreid.CoreIdRfidSensor
- All Implemented Interfaces:
- Serializable, RfidTagListener, NamedBean, Sensor
public class CoreIdRfidSensor
- extends RfidSensor
CORE-ID specific implementation of an RfidSensor.
The CORE-ID 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:
- 2.11.4
- Author:
- Matthew Harris Copyright (C) 2011
- See Also:
- Serialized Form
| Methods inherited from class jmri.implementation.AbstractSensor |
getInverted, getKnownState, getRawState, getSensorDebounceGoingActiveTimer, getSensorDebounceGoingInActiveTimer, getState, sensorDebounce, setInverted, setKnownState, setSensorDebounceGoingActiveTimer, setSensorDebounceGoingInActiveTimer, setState, useDefaultTimerSettings, useDefaultTimerSettings |
| Methods inherited from class jmri.implementation.AbstractNamedBean |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setUserName, updateListenerRef |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.NamedBean |
addPropertyChangeListener, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, setComment, setProperty, setUserName, updateListenerRef |
CoreIdRfidSensor
public CoreIdRfidSensor(String systemName)
CoreIdRfidSensor
public CoreIdRfidSensor(String systemName,
String userName)
notify
public void notify(IdTag t)
- Specified by:
notify in interface RfidTagListener- Overrides:
notify in class RfidSensor
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: