PhysicalMultiTrafficLightSelector

selectors. PhysicalMultiTrafficLightSelector

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

Constructor

(package) new PhysicalMultiTrafficLightSelector(optionsopt)

Source:

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

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()

Source:
See:

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

logInfo(loggeropt)

Source:

Logs information about known devices.

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

A Console-like object for logging.

resolveTrafficLight() → {trafficLight.FlexMultiTrafficLight}

Source:

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

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

Events

disabled

Source:

Fired when the multi traffic light gets disabled.

enabled

Source:

Fired when the multi traffic light gets enabled.

interrupted

Source:

Fired when the multi traffic light gets interrupted.