Package jmri.jmris
Class AbstractSignalHeadServer
- java.lang.Object
-
- jmri.jmris.AbstractSignalHeadServer
-
- Direct Known Subclasses:
SimpleSignalHeadServer
public abstract class AbstractSignalHeadServer extends java.lang.Object
Abstract interface between a JMRI signal head and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractSignalHeadServer.SignalHeadListener
-
Constructor Summary
Constructors Constructor Description AbstractSignalHeadServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSignalHeadToList(java.lang.String signalHeadName)
protected int
appearanceForName(java.lang.String name)
void
dispose()
protected java.lang.String
nameForAppearance(int appearance)
abstract void
parseStatus(java.lang.String statusString)
protected void
removeSignalHeadFromList(java.lang.String signalHeadName)
abstract void
sendErrorStatus(java.lang.String signalHead)
abstract void
sendStatus(java.lang.String signalHead, int Status)
protected void
setSignalHeadAppearance(java.lang.String signalHeadName, int signalHeadState)
void
setSignalHeadAppearance(java.lang.String signalHeadName, java.lang.String signalHeadState)
-
-
-
Constructor Detail
-
AbstractSignalHeadServer
public AbstractSignalHeadServer()
-
-
Method Detail
-
sendStatus
public abstract void sendStatus(java.lang.String signalHead, int Status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus(java.lang.String signalHead) 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
-
addSignalHeadToList
protected void addSignalHeadToList(java.lang.String signalHeadName)
-
removeSignalHeadFromList
protected void removeSignalHeadFromList(java.lang.String signalHeadName)
-
setSignalHeadAppearance
public void setSignalHeadAppearance(java.lang.String signalHeadName, java.lang.String signalHeadState)
-
setSignalHeadAppearance
protected void setSignalHeadAppearance(java.lang.String signalHeadName, int signalHeadState)
-
nameForAppearance
protected java.lang.String nameForAppearance(int appearance)
-
appearanceForName
protected int appearanceForName(java.lang.String name)
-
dispose
public void dispose()
-
-