Previous Topic

Next Topic

Book Contents

Book Index

Overview

Conditions of a certain type are handled by a common condition provider which creates and retrieves condition objects upon request.

Automation management applications such as the HAM plugin for the Web Console can initialize new conditions through interaction with the Home Automation Manager.

Using Basic Command Provider Implementation

The Home Automation Manager Module offers a ready basic implementation of condition provider. In most cases you can develop a new condition type by extending it. The basic condition provider implementation accomplishes the following tasks:

Development Tasks

To define a new condition type, execute the following steps:

  1. Create a Condition - Extend the Condition interface, and then implement it.
  2. Implement a Condition Provider - Implement the ConditionProvider interface for creating and retrieving condition objects.
  3. Register the Condition Provider - Register the implementation of ConditionProvider as an OSGi service.