Constructor
new MultiLight(lights)
Parameters:
Name | Type | Description |
---|---|---|
lights |
Array.<trafficLight.Light> | Lights composed. |
Extends
Members
off :boolean
- Source:
- Overrides:
If the light is off.
Type:
- boolean
on :boolean
- Source:
- Overrides:
If the light is on.
Type:
- boolean
Methods
toggle()
- Source:
- Overrides:
Toggles the lights.
turnOff()
- Source:
- Overrides:
Turns the lights off.
turnOn()
- Source:
- Overrides:
Turns the lights on.