jmri.jmrix.rfid.coreid
Class CoreIdRfidReporter

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractReporter
          extended by jmri.jmrix.rfid.RfidReporter
              extended by jmri.jmrix.rfid.coreid.CoreIdRfidReporter
All Implemented Interfaces:
Serializable, RfidTagListener, NamedBean, Reporter

public class CoreIdRfidReporter
extends RfidReporter

CORE-ID specific implementation of an RfidReporter.

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

Since:
2.11.4
Author:
Matthew Harris Copyright (C) 2011
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.implementation.AbstractNamedBean
mSystemName, mUserName
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
CoreIdRfidReporter(String systemName)
           
CoreIdRfidReporter(String systemName, String userName)
           
 
Method Summary
 void notify(IdTag t)
           
 
Methods inherited from class jmri.jmrix.rfid.RfidReporter
getState, setState
 
Methods inherited from class jmri.implementation.AbstractReporter
getCurrentReport, getLastReport, setReport
 
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, dispose, 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, addPropertyChangeListener, dispose, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setUserName, updateListenerRef
 

Constructor Detail

CoreIdRfidReporter

public CoreIdRfidReporter(String systemName)

CoreIdRfidReporter

public CoreIdRfidReporter(String systemName,
                          String userName)
Method Detail

notify

public void notify(IdTag t)
Specified by:
notify in interface RfidTagListener
Overrides:
notify in class RfidReporter


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