Package jmri.jmris
Class AbstractLightServer
- java.lang.Object
-
- jmri.jmris.AbstractLightServer
-
- Direct Known Subclasses:
SimpleLightServer
public abstract class AbstractLightServer extends java.lang.Object
Abstract interface between the a JMRI Light and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractLightServer.LightListener
-
Constructor Summary
Constructors Constructor Description AbstractLightServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addLightToList(java.lang.String lightName)
void
dispose()
Light
initLight(java.lang.String lightName)
void
lightOff(java.lang.String lightName)
void
lightOn(java.lang.String lightName)
abstract void
parseStatus(java.lang.String statusString)
protected void
removeLightFromList(java.lang.String lightName)
abstract void
sendErrorStatus(java.lang.String lightName)
abstract void
sendStatus(java.lang.String lightName, int Status)
-
-
-
Constructor Detail
-
AbstractLightServer
public AbstractLightServer()
-
-
Method Detail
-
sendStatus
public abstract void sendStatus(java.lang.String lightName, int Status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus(java.lang.String lightName) 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
-
addLightToList
protected void addLightToList(java.lang.String lightName)
-
removeLightFromList
protected void removeLightFromList(java.lang.String lightName)
-
initLight
public Light initLight(java.lang.String lightName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
lightOff
public void lightOff(java.lang.String lightName)
-
lightOn
public void lightOn(java.lang.String lightName)
-
dispose
public void dispose()
-
-