public interface EnOceanChannelDescription
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_ID
The unique ID of this EnOceanChannelDescription object.
|
static String |
TYPE_DATA
A DATA channel maps itself to a
Double value representing a
physical measure. |
static String |
TYPE_ENUM
An ENUM channel maps itself to one between a list of discrete
EnOceanChannelEnumValue "value objects". |
static String |
TYPE_FLAG
A FLAG channel maps itself to a
Boolean value. |
static String |
TYPE_RAW
A RAW channel is only made of bytes.
|
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(byte[] bytes)
Tries to deserialize a series of bytes into a documented value object
(raw bytes, Double or
EnOceanChannelEnumValue . |
String |
getType()
Retrieves the type of the channel.
|
byte[] |
serialize(Object obj)
Tries to serialize the channel into a series of bytes.
|
static final String CHANNEL_ID
static final String TYPE_RAW
static final String TYPE_DATA
Double
value representing a
physical measure.static final String TYPE_FLAG
Boolean
value.static final String TYPE_ENUM
EnOceanChannelEnumValue
"value objects".String getType()
byte[] serialize(Object obj)
obj
- the value of the channel.IllegalArgumentException
Object deserialize(byte[] bytes)
EnOceanChannelEnumValue
. Of course this
method will be specialized for each EnOceanChannelDescription
subinterface, depending on the type of this channel.bytes
- the right-aligned raw bytes.IllegalArgumentException
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0