Package org.openhab.core.thing.profiles
Interface Profile
- All Known Subinterfaces:
StateProfile
,TimeSeriesProfile
,TriggerProfile
- All Known Implementing Classes:
ScriptProfile
@NonNullByDefault
public interface Profile
Common ancestor of all profile types.
Profiles define the communication flow between the framework and bindings, i.e. how (and if) certain events and
commands are forwarded from the framework to the thing handler and vice versa.
Profiles are allowed to maintain some transient state internally, i.e. the same instance of a profile will be used per link for all communication so that the temporal dimension can be taken in account.
- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionGet theProfileTypeUID
of this profile.void
onStateUpdateFromItem
(State state) Will be called if an item has changed its state and this information should be forwarded to the binding.
-
Method Details
-
getProfileTypeUID
ProfileTypeUID getProfileTypeUID()Get theProfileTypeUID
of this profile.- Returns:
- the UID of the profile type
-
onStateUpdateFromItem
Will be called if an item has changed its state and this information should be forwarded to the binding.- Parameters:
state
- the new state
-