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 Details

    • getProfileTypeUID

      ProfileTypeUID getProfileTypeUID()
      Get the ProfileTypeUID of this profile.
      Returns:
      the UID of the profile type
    • onStateUpdateFromItem

      void onStateUpdateFromItem(State state)
      Will be called if an item has changed its state and this information should be forwarded to the binding.
      Parameters:
      state - the new state