jmri.implementation
Class AbstractReporter

Show UML class diagram
java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractReporter
All Implemented Interfaces:
Serializable, NamedBean, Reporter
Direct Known Subclasses:
LnReporter, RpsReporter

public abstract class AbstractReporter
extends AbstractNamedBean
implements Reporter, Serializable

Abstract base for the Reporter interface.

Implements the parameter binding support.

Note that we consider it an error for there to be more than one object that corresponds to a particular physical Reporter on the layout. Description: Abstract class providing the basic logic of the Reporter interface

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Constructor Summary
AbstractReporter(String systemName)
           
AbstractReporter(String systemName, String userName)
           
 
Method Summary
 Object getCurrentReport()
          Query the current report.
 Object getLastReport()
          Query the last report.
 void setReport(Object r)
          Provide a general method for updating the report.
 
Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, dispose, getComment, getDisplayName, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setUserName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.Reporter
getState
 
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, dispose, getComment, getDisplayName, getNumPropertyChangeListeners, getProperty, getPropertyKeys, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setState, setUserName
 

Constructor Detail

AbstractReporter

public AbstractReporter(String systemName)

AbstractReporter

public AbstractReporter(String systemName,
                        String userName)
Method Detail

getCurrentReport

public Object getCurrentReport()
Description copied from interface: Reporter
Query the current report. If there is no current report available (e.g. the reporting hardware says no information is is currently available, this will return a null object.

Specified by:
getCurrentReport in interface Reporter

getLastReport

public Object getLastReport()
Description copied from interface: Reporter
Query the last report. This will return a value even if there's no current report available.

Specified by:
getLastReport in interface Reporter

setReport

public void setReport(Object r)
Provide a general method for updating the report.

Specified by:
setReport in interface Reporter


Copyright © 1997 - 2010 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