Understanding the conceptual model

The control data model in XMPP is very simple. Each device just consists of a set of control parameters. When we introduce nodes in later chapters and allow our devices to be divided into nodes, we can allow each controllable node to have its own set of control parameters:

Figure 2. Conceptual model of control parameters in XMPP

As with sensor data, there are different kinds of control parameters that can be represented in this model. They all share the common parameters presented in Figure 2, but represent the corresponding control value differently:

Representation

Description

String

Value encoded as xsd:string.

Boolean

Value encoded as xsd:boolean.

Color

Value encoded as a six- or eight-character hexadecimal string in the format RRGGBB or RRGGBBAA.

Date

Value encoded as xsd:date.

DateTime

Value encoded as xsd:dateTime.

Double

Value encoded as xsd:double.

Duration

Value encoded as xsd:duration.

Int32

Value encoded as xsd:int.

Int64

Value encoded as xsd:long.

Time

Value encoded as xsd:time.

Parameter classes for the different control parameters are defined in the Waher.Things.ControlParameters namespace.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset