Interface EnOceanMessageDescription
-
public interface EnOceanMessageDescription
This interface represents an EnOcean Message Description.- Version:
- 1.0
- Author:
- $Id: f8e52957543f409488553e92eba505124fcd1824 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnOceanChannel[]
deserialize(byte[] bytes)
Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.java.lang.String
getMessageDescription()
byte[]
serialize(EnOceanChannel[] channels)
Serializes a series ofEnOceanChannel
objects into the corresponding byte[] sequence.
-
-
-
Method Detail
-
serialize
byte[] serialize(EnOceanChannel[] channels)
Serializes a series ofEnOceanChannel
objects into the corresponding byte[] sequence.- Parameters:
channels
- to be serialized.- Returns:
- serialized value.
- Throws:
java.lang.IllegalArgumentException
- if the given channels is null.
-
deserialize
EnOceanChannel[] deserialize(byte[] bytes)
Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.- Parameters:
bytes
- to be deserialized.- Returns:
- deserialized value.
- Throws:
java.lang.IllegalArgumentException
- if the actual instance type of the message is not compatible with the bytes it is fed with (RORG to begin with).
-
getMessageDescription
java.lang.String getMessageDescription()
- 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).
-
-