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
|
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
nullif no traffic lights are available.
- Source:
Returns:
- A multi traffic light, or
null.
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: