Package org.openhab.core.thing
Interface ThingManager
-
@NonNullByDefault public interface ThingManager
ThingManager
interface defines methods for managing aThing
.- Author:
- Yordan Zhelev - Initial contribution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEnabled(ThingUID thingUID)
This method gets the enabled status for aThing
.void
setEnabled(ThingUID thingUID, boolean isEnabled)
This method is used for changing enabled state of theThing
The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled(ThingUID thingUID)
This method gets the enabled status for aThing
. The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.- Parameters:
thingUID
- UID of theThing
.- Returns:
false
when theThing
hasThingStatus
withThingStatusDetail.DISABLED
. Returnstrue
in all other cases.
-
setEnabled
void setEnabled(ThingUID thingUID, boolean isEnabled)
This method is used for changing enabled state of theThing
The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.
-
-