Package jmri.jmris
Class AbstractReporterServer
- java.lang.Object
-
- jmri.jmris.AbstractReporterServer
-
- Direct Known Subclasses:
SimpleReporterServer
public abstract class AbstractReporterServer extends java.lang.Object
Abstract interface between the a JMRI reporter and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractReporterServer.ReporterListener
-
Constructor Summary
Constructors Constructor Description AbstractReporterServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addReporterToList(java.lang.String reporterName)
void
dispose()
Reporter
initReporter(java.lang.String reporterName)
abstract void
parseStatus(java.lang.String statusString)
protected void
removeReporterFromList(java.lang.String reporterName)
abstract void
sendErrorStatus(java.lang.String reporter)
abstract void
sendReport(java.lang.String reporter, java.lang.Object r)
void
setReporterReport(java.lang.String reporterName, java.lang.Object r)
-
-
-
Constructor Detail
-
AbstractReporterServer
public AbstractReporterServer()
-
-
Method Detail
-
sendReport
public abstract void sendReport(java.lang.String reporter, java.lang.Object r) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus(java.lang.String reporter) throws java.io.IOException
- Throws:
java.io.IOException
-
parseStatus
public abstract void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
addReporterToList
protected void addReporterToList(java.lang.String reporterName)
-
removeReporterFromList
protected void removeReporterFromList(java.lang.String reporterName)
-
initReporter
public Reporter initReporter(java.lang.String reporterName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
setReporterReport
public void setReporterReport(java.lang.String reporterName, java.lang.Object r)
-
dispose
public void dispose()
-
-