Package jmri.jmris
Class AbstractSignalMastServer
- java.lang.Object
-
- jmri.jmris.AbstractSignalMastServer
-
public abstract class AbstractSignalMastServer extends java.lang.Object
Abstract interface between a JMRI signal mast and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractSignalMastServer.SignalMastListener
-
Constructor Summary
Constructors Constructor Description AbstractSignalMastServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSignalMastToList(java.lang.String signalMastName)
void
dispose()
abstract void
parseStatus(java.lang.String statusString)
protected void
removeSignalMastFromList(java.lang.String signalMastName)
abstract void
sendErrorStatus(java.lang.String signalMast)
abstract void
sendStatus(java.lang.String signalMast, java.lang.String Status)
protected void
setSignalMastAspect(java.lang.String signalMastName, java.lang.String signalMastState)
-
-
-
Constructor Detail
-
AbstractSignalMastServer
public AbstractSignalMastServer()
-
-
Method Detail
-
sendStatus
public abstract void sendStatus(java.lang.String signalMast, java.lang.String Status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus(java.lang.String signalMast) throws java.io.IOException
- Throws:
java.io.IOException
-
parseStatus
public abstract void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException, JsonException
- Throws:
JmriException
java.io.IOException
JsonException
-
addSignalMastToList
protected void addSignalMastToList(java.lang.String signalMastName)
-
removeSignalMastFromList
protected void removeSignalMastFromList(java.lang.String signalMastName)
-
setSignalMastAspect
protected void setSignalMastAspect(java.lang.String signalMastName, java.lang.String signalMastState)
-
dispose
public void dispose()
-
-