tuwien.auto.eicl.struct.eibnetip.util

Class Device_DIB


public class Device_DIB
extends java.lang.Object

This class implements a representation of the EIBnet/IP device description information block. This structure is used to describe an EIBnet/IP server. All encapsulated information can be accessed through get and set methods.
See Also:
EIBNETIP_Constants, Description_Response

Constructor Summary

Device_DIB(byte[] _Body)
This constructor parses a byte array representation of an EIBNET/IP device description information block.

Method Summary

short
getDescriptionTypeCode()
Get the description type code of this message
short
getDeviceStatus()
Get the sending device status byte.
EIB_Address
getEibaddress()
Return the sending device individual address.
short
getKnxMedium()
Retrieve the KNX- medium byte
String
getKnxMediumString()
Get a human readable representation of the KNX Medium type
short[]
getMACAddress()
Get the sending point MAC address.
String
getMACAddressString()
Get a human readable MAC Address representation.
short[]
getMulticastAddress()
Get the device multicast address.
String
getMulticastAddressString()
Get a multicast address string representation.
String
getName()
Get the device name.
int
getProjectInstallationsIdentifier()
Get the project and installation identifier as int.
short[]
getSerialNumber()
Get the device serial number
String
getSerialNumberString()
Get a device serial number string representation.
short
getStructlength()
Returns the structure length of this message.

Constructor Details

Device_DIB

public Device_DIB(byte[] _Body)
This constructor parses a byte array representation of an EIBNET/IP device description information block.
Parameters:
_Body - The byte array representing the Device_DIB.

Method Details

getDescriptionTypeCode

public short getDescriptionTypeCode()
Get the description type code of this message
Returns:
The description type code

getDeviceStatus

public short getDeviceStatus()
Get the sending device status byte.
Returns:
The status byte

getEibaddress

public EIB_Address getEibaddress()
Return the sending device individual address.
Returns:
The individual address

getKnxMedium

public short getKnxMedium()
Retrieve the KNX- medium byte
Returns:
the KNX medium byte

getKnxMediumString

public String getKnxMediumString()
Get a human readable representation of the KNX Medium type
Returns:
the knx medium string

getMACAddress

public short[] getMACAddress()
Get the sending point MAC address.
Returns:
The servers interface MACAddress

getMACAddressString

public String getMACAddressString()
Get a human readable MAC Address representation.
Returns:
The MAC address as string.

getMulticastAddress

public short[] getMulticastAddress()
Get the device multicast address.
Returns:
Return the multicast address.

getMulticastAddressString

public String getMulticastAddressString()
Get a multicast address string representation.
Returns:
The multicast address string

getName

public String getName()
Get the device name.
Returns:
The device name.

getProjectInstallationsIdentifier

public int getProjectInstallationsIdentifier()
Get the project and installation identifier as int.
Returns:
The project installation identifier

getSerialNumber

public short[] getSerialNumber()
Get the device serial number
Returns:
the serial number

getSerialNumberString

public String getSerialNumberString()
Get a device serial number string representation.
Returns:
The device serial number as string.

getStructlength

public short getStructlength()
Returns the structure length of this message.
Returns:
The structure length