Previous Topic

Next Topic

Book Contents

Book Index

Overview

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

When the Home Automation Manager has to create, retrieve or execute a command of a certain type, it contacts the appropriate command provider.

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

Using Basic Command Provider Implementation

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

Development Tasks

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

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