tuwien.auto.eicl.struct.eibnetip.util

Class SUPPFAM_DIB


public class SUPPFAM_DIB
extends java.lang.Object

This class implements the EIBnet/IP supported families description information block (SUPPFAM_DIB). This structure is contained in the Description response message.
See Also:
Description_Response

Constructor Summary

SUPPFAM_DIB(byte[] _Body)
Creates a new object by parsing a byte array.

Method Summary

short
getStructlength()
Returns the length of the structure.
Enumeration
getSupportedFamilies()
Returns an enumeration of integer values describing the supported service families (e.g., Tunnelling = 4, Routing = 5, ...)
int
getVersion(int _SupportedFamily)
Returns the version of a given service

Constructor Details

SUPPFAM_DIB

public SUPPFAM_DIB(byte[] _Body)
            throws EICLException
Creates a new object by parsing a byte array. If something goes wrong an Exception is thrown
Parameters:
_Body - The supported family DIB as byte array.
Throws:
EICLException - If the conversion does not succeed.

Method Details

getStructlength

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

getSupportedFamilies

public Enumeration getSupportedFamilies()
Returns an enumeration of integer values describing the supported service families (e.g., Tunnelling = 4, Routing = 5, ...) Their versions can be retrieved using getVersion(int family)
Returns:
Supported families (as an Enumeration of Integer objects)

getVersion

public int getVersion(int _SupportedFamily)
Returns the version of a given service
Parameters:
_SupportedFamily - the service
Returns:
The version