|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PropertyAdapter
Adapter hiding protocol specifics and internals of accessing interface object properties.
A property adapter is created for one communication partner (KNX device, KNXnet/IP
router).
If close() is called by a user on an open adapter, all methods which do
interface object property access are allowed to throw KNXIllegalStateException
if invoked on that closed adapter.
| Method Summary | |
|---|---|
void |
close()
Closes the adapter. |
byte[] |
getDescription(int objIndex,
int pid,
int propIndex)
Reads the description of a property of an interface object. |
java.lang.String |
getName()
Returns the name for identifying this adapter and its destination. |
byte[] |
getProperty(int objIndex,
int pid,
int start,
int elements)
Gets property value elements in an interface object property. |
boolean |
isOpen()
Returns whether this adapter can be used for property access and is not closed. |
void |
setProperty(int objIndex,
int pid,
int start,
int elements,
byte[] data)
Sets property value elements in an interface object property. |
| Method Detail |
|---|
void close()
Depending on the adapter, necessary steps to terminate a connection might be done
and owned resources will be freed.
A closed adapter can't be used for property access anymore.
Currently, this method does not invoke
PropertyAdapterListener.adapterClosed(tuwien.auto.calimero.CloseEvent).
byte[] getDescription(int objIndex,
int pid,
int propIndex)
throws KNXException
The property description layout is according the application layer property description service.
objIndex - interface object indexpid - property identifier, specify 0 to use the property indexpropIndex - property index, starts with index 0 for the first property
KNXException - on error getting the property description
KNXIllegalStateException - if adapter was already closedjava.lang.String getName()
byte[] getProperty(int objIndex,
int pid,
int start,
int elements)
throws KNXException
objIndex - interface object indexpid - property identifierstart - start index in the property value to start reading fromelements - number of elements to get
KNXException - on error getting the interface object property
KNXIllegalStateException - if adapter was already closedboolean isOpen()
true if adapter open, false if closed
void setProperty(int objIndex,
int pid,
int start,
int elements,
byte[] data)
throws KNXException
objIndex - interface object indexpid - property identifierstart - start index in the property value to start writing toelements - number of elements to setdata - byte array containing the property value data
KNXException - on error setting the interface object property
KNXIllegalStateException - if adapter was already closed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||