tuwien.auto.calimero.cemi
Interface CEMI

All Known Implementing Classes:
CEMIBusMon, CEMIDevMgmt, CEMILData, CEMILDataEx

public interface CEMI

Common External Message Interface (cEMI).

Acts as basic interface to the cEMI ADT.
The cEMI message format aims to be a frame structure for KNX information transport, independent of various KNX media.


Method Summary
 short getMessageCode()
          Returns the cEMI message code.
 byte[] getPayload()
          Returns the payload carried in this cEMI message.
 short getStructLength()
          Returns the length of this cEMI message frame.
 byte[] toByteArray()
          Returns the byte representation of the whole cEMI message structure.
 

Method Detail

getMessageCode

short getMessageCode()
Returns the cEMI message code.

The codes of the different cEMI message types can be looked up in the according subtype implementations.

Returns:
the message code byte

getPayload

byte[] getPayload()
Returns the payload carried in this cEMI message.

In general, the payload refers to that content of a cEMI frame, which is not interpreted nor parsed by the different types of cEMI. See the corresponding subtypes for a more specific description.

Returns:
subset of frame data as byte array

getStructLength

short getStructLength()
Returns the length of this cEMI message frame.

Returns:
the message length in bytes

toByteArray

byte[] toByteArray()
Returns the byte representation of the whole cEMI message structure.

Returns:
frame as byte array