tuwien.auto.eicl.struct.cemi

Interface CEMI

Known Implementing Classes:
CEMI_L_DATA

public interface CEMI

This interface is thought as skeleton for cEMI messages

Method Summary

abstract byte[]
getData()
Get the CEMI_L_DATA application layer data (Message body).
short
getMessageCode()
Returns the CEMI_L_DATA message code.
abstract int
getStructLength()
Get the length of the message in bytes
abstract byte[]
toByteArray()
Get the byte representation of the CEMI_L_DATA_Message.

Method Details

getData

public abstract byte[] getData()
Get the CEMI_L_DATA application layer data (Message body).
Returns:
application layer data

getMessageCode

public short getMessageCode()
Returns the CEMI_L_DATA message code. See constants.
Returns:
CEMI_L_DATA message code.

getStructLength

public abstract int getStructLength()
Get the length of the message in bytes
Returns:
the message length

toByteArray

public abstract byte[] toByteArray()
            throws EICLException
Get the byte representation of the CEMI_L_DATA_Message.
Returns:
CEMI_L_DATA message as byte array.
Throws:
EICLException - Processes the IOException as EICLException