Class XBeeLight

All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, DigitalIO, Light, NamedBean

public class XBeeLight extends AbstractLight
Light implementation for XBee systems.
  • Field Details

  • Constructor Details

    • XBeeLight

      public XBeeLight(String systemName, String userName, XBeeTrafficController controller)
      Create a Light object, with system and user names and a reference to the traffic controller.
      Parameters:
      systemName - Xbee system id : pin id
      userName - User friendly name
      controller - tc for connection for this node
    • XBeeLight

      public XBeeLight(String systemName, XBeeTrafficController controller)
  • Method Details

    • doNewState

      protected void doNewState(int oldState, int newState)
      Description copied from class: AbstractLight
      Implement the specific change of state needed by hardware.
      Overrides:
      doNewState in class AbstractLight
      Parameters:
      oldState - old state
      newState - new state