Package jmri.jmris

Class AbstractLightServer

  • Direct Known Subclasses:
    SimpleLightServer

    public abstract class AbstractLightServer
    extends java.lang.Object
    Abstract interface between the a JMRI Light and a network connection
    • 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
      • addLightToList

        protected void addLightToList​(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)