jmri.jmrix.rfid
Class RfidReporter

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

public class RfidReporter
extends AbstractReporter
implements RfidTagListener

Extend AbstractReporter for RFID systems

System names are "FRpppp", where ppp is a representation of the RFID reader.


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
RfidReporter(String systemName)
           
RfidReporter(String systemName, String userName)
           
 
Method Summary
 int getState()
          Provide an int form of the last report.
 void notify(IdTag id)
           
 void setState(int s)
          Provide generic access to internal state.
 
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

RfidReporter

public RfidReporter(String systemName)

RfidReporter

public RfidReporter(String systemName,
                    String userName)
Method Detail

notify

public void notify(IdTag id)
Specified by:
notify in interface RfidTagListener

setState

public void setState(int s)
Description copied from interface: NamedBean
Provide generic access to internal state.

This generally shouldn't be used by Java code; use the class-specific form instead. (E.g. setCommandedState in Turnout) This provided to make Jython script access easier to read.

Specified by:
setState in interface NamedBean

getState

public int getState()
Description copied from interface: Reporter
Provide an int form of the last report.

Specified by:
getState in interface NamedBean
Specified by:
getState in interface Reporter


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