|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttuwien.auto.calimero.knxnetip.util.DIB
tuwien.auto.calimero.knxnetip.util.SuppFamiliesDIB
public class SuppFamiliesDIB
Supported service families description information block.
It informs about the service families supported by the device.
Objects of this type are immutable.
DescriptionResponse| Field Summary |
|---|
| Fields inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
|---|
DEVICE_INFO, MFR_DATA, SUPP_SVC_FAMILIES |
| Constructor Summary | |
|---|---|
SuppFamiliesDIB(byte[] data,
int offset)
Creates a supported families DIB out of a byte array. |
|
| Method Summary | |
|---|---|
java.util.Set |
getFamilies()
Returns all supported service families, each family together with the version it is implemented and supported up to. |
java.lang.String |
getFamilyName(short family)
Returns the service family name for the supplied family ID. |
short |
getVersion(short family)
Returns the version associated to a given supported service family. |
byte[] |
toByteArray()
Returns the byte representation of the whole DIB structure. |
java.lang.String |
toString()
Returns a textual representation of this supported service families DIB. |
| Methods inherited from class tuwien.auto.calimero.knxnetip.util.DIB |
|---|
getDescTypeCode, getStructLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SuppFamiliesDIB(byte[] data,
int offset)
throws KNXFormatException
data - byte array containing the service families DIB structureoffset - start offset of DIB in data
KNXFormatException - if no DIB found or invalid structure| Method Detail |
|---|
public final java.util.Set getFamilies()
The returned set holds Map.Entry items, with the service family of type
Short being the key, and the version of type Short being the value.
public final java.lang.String getFamilyName(short family)
family - service family ID to get name for
null on no name availablepublic final short getVersion(short family)
If the service family is not supported, 0 is returned.
family - supported service family to lookup
public byte[] toByteArray()
DIB
toByteArray in class DIBpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||