Class SerialLight

    • Field Detail

      • output

        int output
        System dependent instance variables
    • Constructor Detail

      • SerialLight

        public SerialLight​(java.lang.String systemName,
                           GrapevineSystemConnectionMemo _memo)
        Create a Light object, with only system name.
        Parameters:
        systemName - system name including prefix, previously validated in SerialLightManager
        _memo - the associated SystemConnectionMemo
      • SerialLight

        public SerialLight​(java.lang.String systemName,
                           java.lang.String userName,
                           GrapevineSystemConnectionMemo _memo)
        Create a Light object, with both system and user names.
        Parameters:
        systemName - system name including prefix, previously validated in SerialLightManager
        userName - free form name
        _memo - the associated SystemConnectionMemo
    • Method Detail

      • doNewState

        protected void doNewState​(int oldState,
                                  int newState)
        Set the current state of this Light. This routine requests the hardware to change. If this is really a change in state of this bit (tested in SerialNode), a Transmit packet will be sent before this Node is next polled.
        Overrides:
        doNewState in class AbstractLight
        Parameters:
        oldState - old state
        newState - new state
      • sendMessage

        protected void sendMessage​(boolean on)