jmri.jmris
Class AbstractLightServer

Show UML class diagram
java.lang.Object
  extended by 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


Nested Class Summary
(package private)  class AbstractLightServer.LightListener
           
 
Field Summary
protected  ArrayList<String> lights
           
(package private) static org.slf4j.Logger log
           
(package private)  String newState
           
 
Constructor Summary
AbstractLightServer()
           
 
Method Summary
protected  void addLightToList(String lightName)
           
 Light initLight(String lightName)
           
 void lightOff(String lightName)
           
 void lightOn(String lightName)
           
abstract  void parseStatus(String statusString)
           
protected  void removeLightFromList(String lightName)
           
abstract  void sendErrorStatus(String lightName)
           
abstract  void sendStatus(String lightName, int Status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lights

protected ArrayList<String> lights

newState

String newState

log

static org.slf4j.Logger log
Constructor Detail

AbstractLightServer

public AbstractLightServer()
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads