public interface Room
| Modifier and Type | Method | Description |
|---|---|---|
Optional<Light> |
getLightByName(String lightName) |
Returns one light, if found by the given name.
|
Collection<Light> |
getLights() |
Returns all the lights that have been assigned to this room or zone.
|
String |
getName() |
Returns the name of the room or zone, as set by the user.
|
boolean |
isAllOn() |
Queries the state of the room or zone.
|
boolean |
isAnyOn() |
Queries the state of the room or zone.
|
void |
setState(State state) |
Sets a state for the room or zone.
|
String getName()
Collection<Light> getLights()
Optional<Light> getLightByName(String lightName)
lightName - Name of a light in this room or zone.boolean isAnyOn()
boolean isAllOn()
void setState(State state)
state - A state to be set for this room or zone.Copyright © 2019. All rights reserved.