PhysicalMultiTrafficLightSelector

selectors. PhysicalMultiTrafficLightSelector

Selects all available physical traffic lights to use in a composite.

Constructor

(package) new PhysicalMultiTrafficLightSelector(optionsopt)

Description:
  • Selects all available physical traffic lights to use. Checks-out and uses all available traffic lights to issue commands.

Source:
Parameters:
Name Type Attributes Description
options object <optional>

Options.

Properties
Name Type Attributes Description
manager physical.DeviceManager <optional>

The Device Manager to use.

Extends

  • EventEmitter

Methods

close()

Description:
  • Called to close this instance and to stop monitoring for devices. Should be done as the last operation before exiting the process.

Source:
See:

logInfo(loggeropt)

Description:
  • Logs information about known devices.

Source:
Parameters:
Name Type Attributes Default Description
logger object <optional>
console

A Console-like object for logging.

resolveTrafficLight() → {trafficLight.FlexMultiTrafficLight}

Description:
  • Retrieves a multi traffic light for exclusive usage of the caller, or null if no traffic lights are available.

Source:
Returns:
  • A multi traffic light, or null.
Type
trafficLight.FlexMultiTrafficLight

Events

disabled

Description:
  • Fired when the multi traffic light gets disabled.

Source:

enabled

Description:
  • Fired when the multi traffic light gets enabled.

Source:

interrupted

Description:
  • Fired when the multi traffic light gets interrupted.

Source: