jmri.jmris
Class AbstractLightServer
java.lang.Object
jmri.jmris.AbstractLightServer
- Direct Known Subclasses:
- JsonLightServer, SimpleLightServer
public abstract class AbstractLightServer
- extends Object
Abstract interface between the a JMRI Light and a network connection
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lights
protected ArrayList<String> lights
newState
String newState
log
static org.slf4j.Logger log
AbstractLightServer
public AbstractLightServer()
sendStatus
public abstract void sendStatus(String lightName,
int Status)
throws IOException
- Throws:
IOException
sendErrorStatus
public abstract void sendErrorStatus(String lightName)
throws IOException
- Throws:
IOException
parseStatus
public abstract void parseStatus(String statusString)
throws JmriException,
IOException
- Throws:
JmriException
IOException
addLightToList
protected void addLightToList(String lightName)
removeLightFromList
protected void removeLightFromList(String lightName)
initLight
public Light initLight(String lightName)
lightOff
public void lightOff(String lightName)
lightOn
public void lightOn(String lightName)
Copyright © 1997-2013 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: