Constructor
(package) new PhysicalMultiTrafficLightSelector(optionsopt)
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
|
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)
Logs information about known devices.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
logger |
object |
<optional> |
console
|
A Console-like object for logging. |
resolveTrafficLight() → {trafficLight.FlexMultiTrafficLight}
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.
Events
disabled
Fired when the multi traffic light gets disabled.
enabled
Fired when the multi traffic light gets enabled.
interrupted
Fired when the multi traffic light gets interrupted.