Top Description Methods
org.osgi.service.enocean.descriptions

public Interface EnOceanMessageDescription

Imports
org.osgi.service.enocean.EnOceanChannel

This interface represents an EnOcean Message Description.
Author
$Id: f8e52957543f409488553e92eba505124fcd1824 $
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public EnOceanChannel[]

Returns:

deserialized value.
deserialize
(byte[]
to be deserialized.
bytes
)

Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.

public String

Returns:

the message description containing the RORG, (and the FUNC, and the TYPE if available), as well as, the EEP's "title" (e.g. for F60201: Rocker Switch, 2 Rocker; Light and Blind Control - Application Style 1).
getMessageDescription
()

public byte[]

Returns:

serialized value.
serialize
(EnOceanChannel[]
to be serialized.
channels
)

Serializes a series of EnOceanChannel objects into the corresponding byte[] sequence.

Method Detail

deserializeback to summary
public EnOceanChannel[] deserialize(byte[] bytes)

Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.

Parameters
bytes:byte[]

to be deserialized.

Returns:EnOceanChannel[]

deserialized value.

Exceptions
IllegalArgumentException:
if the actual instance type of the message is not compatible with the bytes it is fed with (RORG to begin with).
getMessageDescriptionback to summary
public String getMessageDescription()
Returns:String

the message description containing the RORG, (and the FUNC, and the TYPE if available), as well as, the EEP's "title" (e.g. for F60201: Rocker Switch, 2 Rocker; Light and Blind Control - Application Style 1).

serializeback to summary
public byte[] serialize(EnOceanChannel[] channels)

Serializes a series of EnOceanChannel objects into the corresponding byte[] sequence.

Parameters
channels:EnOceanChannel[]

to be serialized.

Returns:byte[]

serialized value.

Exceptions
IllegalArgumentException:
if the given channels is null.