Class NceLight

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

public class NceLight extends AbstractLight
NceLight.java Implementation of the Light Object for NCE

Based in part on SerialLight.java

  • Field Details

  • Constructor Details

    • NceLight

      public NceLight(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(String systemName, 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 Details

    • 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