jmri.jmris
Class AbstractReporterServer

java.lang.Object
  extended by jmri.jmris.AbstractReporterServer
Direct Known Subclasses:
SimpleReporterServer

public abstract class AbstractReporterServer
extends Object

Abstract interface between the a JMRI reporter and a network connection

Author:
Paul Bender Copyright (C) 2010

Field Summary
protected  ArrayList<String> reporters
           
 
Constructor Summary
AbstractReporterServer()
           
 
Method Summary
protected  void addReporterToList(String reporterName)
           
abstract  void parseStatus(String statusString)
           
protected  void removeReporterFromList(String reporterName)
           
abstract  void sendErrorStatus(String reporter)
           
abstract  void sendReport(String reporter, Object r)
           
 void setReporterReport(String reporterName, Object r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reporters

protected ArrayList<String> reporters
Constructor Detail

AbstractReporterServer

public AbstractReporterServer()
Method Detail

sendReport

public abstract void sendReport(String reporter,
                                Object r)
                         throws IOException
Throws:
IOException

sendErrorStatus

public abstract void sendErrorStatus(String reporter)
                              throws IOException
Throws:
IOException

parseStatus

public abstract void parseStatus(String statusString)
                          throws JmriException,
                                 IOException
Throws:
JmriException
IOException

addReporterToList

protected void addReporterToList(String reporterName)

removeReporterFromList

protected void removeReporterFromList(String reporterName)

setReporterReport

public void setReporterReport(String reporterName,
                              Object r)


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