Class Lights.State

All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>
Enclosing class:
Lights

public static class Lights.State extends SetCommand
The lights state
  • Method Details

    • getFrontExteriorLight

      public Property<Lights.FrontExteriorLight> getFrontExteriorLight()
      Returns:
      The front exterior light
    • getRearExteriorLight

      public Property<ActiveState> getRearExteriorLight()
      Returns:
      The rear exterior light
    • getAmbientLightColour

      public Property<RgbColour> getAmbientLightColour()
      Returns:
      The ambient light colour
    • getReverseLight

      public Property<ActiveState> getReverseLight()
      Returns:
      The reverse light
    • getEmergencyBrakeLight

      public Property<ActiveState> getEmergencyBrakeLight()
      Returns:
      The emergency brake light
    • getFogLights

      public List<Property<Light>> getFogLights()
      Returns:
      The fog lights
    • getReadingLamps

      public List<Property<ReadingLamp>> getReadingLamps()
      Returns:
      The reading lamps
    • getInteriorLights

      public List<Property<Light>> getInteriorLights()
      Returns:
      The interior lights
    • getSwitchPosition

      public Property<Lights.SwitchPosition> getSwitchPosition()
      Returns:
      Position of the rotary light switch
    • getParkingLightStatus

      public Property<Lights.ParkingLightStatus> getParkingLightStatus()
      Returns:
      Indicates the status of the parking light.
    • getInteriorLight

      @Nullable public Property<Light> getInteriorLight(LocationLongitudinal location)
      Get the interior light at a location.
      Parameters:
      location - The light location.
      Returns:
      The interior light.
    • getReadingLamp

      @Nullable public Property<ReadingLamp> getReadingLamp(Location location)
      Get the reading lamp at a location.
      Parameters:
      location - The light location.
      Returns:
      The reading lamp.
    • getFogLight

      @Nullable public Property<Light> getFogLight(LocationLongitudinal location)
      Get the fog light at a location.
      Parameters:
      location - The light location.
      Returns:
      The fog light.