jmri.jmrix.rfid.coreid
Class CoreIdRfidSensor

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractSensor
          extended by jmri.jmrix.rfid.RfidSensor
              extended by 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

Field Summary
 
Fields inherited from class jmri.implementation.AbstractSensor
_inverted, _knownState, _rawState, r, sensorDebounceGoingActive, sensorDebounceGoingInActive, thr, useDefaultTimerSettings
 
Fields inherited from class jmri.implementation.AbstractNamedBean
mSystemName, mUserName
 
Fields inherited from interface jmri.Sensor
ACTIVE, INACTIVE
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
CoreIdRfidSensor(String systemName)
           
CoreIdRfidSensor(String systemName, String userName)
           
 
Method Summary
 void notify(IdTag t)
           
 
Methods inherited from class jmri.jmrix.rfid.RfidSensor
dispose, requestUpdateFromLayout, setOwnState
 
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.Sensor
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, setComment, setProperty, setUserName, updateListenerRef
 

Constructor Detail

CoreIdRfidSensor

public CoreIdRfidSensor(String systemName)

CoreIdRfidSensor

public CoreIdRfidSensor(String systemName,
                        String userName)
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads