Class NceLight

    • Constructor Detail

      • NceLight

        public NceLight​(java.lang.String systemName,
                        NceTrafficController tc,
                        NceLightManager mgr)
        Create a Light object, with only system name.

        'systemName' was previously validated in NceLightManager

        Parameters:
        systemName - system name for light
        tc - traffic controller for connection
        mgr - LightManager for light
      • NceLight

        public NceLight​(java.lang.String systemName,
                        java.lang.String userName,
                        NceTrafficController tc,
                        NceLightManager mgr)
        Create a Light object, with both system and user names.

        'systemName' was previously validated in NceLightManager

        Parameters:
        systemName - system name for light
        userName - userName for light
        tc - traffic controller for connection
        mgr - LightManager for light
    • Method Detail

      • doNewState

        protected void doNewState​(int oldState,
                                  int newState)
        Set the current state of this Light This routine requests the hardware to change.
        Overrides:
        doNewState in class AbstractLight
        Parameters:
        oldState - old state
        newState - new state