MultiLight

trafficLight. MultiLight

A composite light that combines all composed lights.

Constructor

new MultiLight(lights)

Source:
Parameters:
Name Type Description
lights Array.<trafficLight.Light>

Lights composed.

Extends

Members

off :boolean

Description:
  • If the light is off.

Source:
Overrides:

If the light is off.

Type:
  • boolean

on :boolean

Description:
  • If the light is on.

Source:
Overrides:

If the light is on.

Type:
  • boolean

Methods

toggle()

Description:
  • Toggles the lights.

Source:
Overrides:

turnOff()

Description:
  • Turns the lights off.

Source:
Overrides:

turnOn()

Description:
  • Turns the lights on.

Source:
Overrides: