|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.mgmt.Description
public final class Description
Holds description information of a KNX interface object property.
The supported description information and the expected description structure layout is
according to the application layer property description read service.
This Description type also supports the property object type and the number of current
elements.
When used together with local device management, not all description information will be available.
Objects of this type are immutable.
Constructor Summary | |
---|---|
Description(int objType,
byte[] data)
Creates a new description object for a property out of a byte array. |
|
Description(int objType,
int currentElements,
byte[] data)
Creates a new description object for a property out of a data byte array, together with object type and number of current elements. |
|
Description(int objIndex,
int objType,
int pid,
int propIndex,
int pdt,
boolean writeEnable,
int currentElements,
int maxElements,
int readLevel,
int writeLevel)
Creates a new description object for a property using the given parameters. |
Method Summary | |
---|---|
int |
getCurrentElements()
Returns the current number of elements in the property. |
int |
getMaxElements()
Returns the maximum number of elements allowed in the property. |
short |
getObjectIndex()
Returns the device unique object index contained the property. |
int |
getObjectType()
Returns the object type to which the property belongs to. |
byte |
getPDT()
Returns the property data type. |
short |
getPID()
Returns the property identifier. |
short |
getPropIndex()
Returns the property index. |
byte |
getReadLevel()
Returns the read access level for the property. |
byte |
getWriteLevel()
Returns the write access level for the property. |
boolean |
isWriteEnabled()
Returns whether the property is write-enabled or read only. |
java.lang.String |
toString()
Returns the property description in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Description(int objType, byte[] data)
The description structure layout of data
is according to the
application layer property description read service.
objType
- interface object type the property belongs todata
- byte array containing property description, starting at
data[0]
public Description(int objType, int currentElements, byte[] data)
objType
- interface object type the property belongs tocurrentElements
- current number of elements in the propertydata
- byte array holding the description information, the structure is
according to the ASDU of a property description service responsepublic Description(int objIndex, int objType, int pid, int propIndex, int pdt, boolean writeEnable, int currentElements, int maxElements, int readLevel, int writeLevel)
objIndex
- index of the object in the device, starting with 0objType
- interface object type the property belongs topid
- property identifier, a 6 Bit identifierpropIndex
- property index in the object, starting with 0pdt
- property data typewriteEnable
- specifies if the property is write-enabled or read onlycurrentElements
- current number of elements in the propertymaxElements
- maximum number of elements allowed in the propertyreadLevel
- read access level, 0 <= level <= 15writeLevel
- write access level, 0 <= level <= 15Method Detail |
---|
public int getCurrentElements()
public int getMaxElements()
With local device management, this attribute is not available and 0 is returned.
public short getObjectIndex()
public int getObjectType()
public byte getPDT()
With local device management, the PDT is not available and -1 is returned.
public short getPID()
public short getPropIndex()
public byte getReadLevel()
The level is between 0 (maximum access rights) and 15 (minimum access rights).
public byte getWriteLevel()
The level is between 0 (maximum access rights) and 15 (minimum access rights).
public boolean isWriteEnabled()
true
if write enabled, false
otherwisepublic 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 |