|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttuwien.auto.calimero.mgmt.RemotePropertyServiceAdapter
public class RemotePropertyServiceAdapter
Property adapter for remote property services.
| Constructor Summary | |
|---|---|
RemotePropertyServiceAdapter(KNXNetworkLink link,
IndividualAddress remote,
PropertyAdapterListener l,
boolean connOriented)
Creates a new property adapter for remote property access. |
|
RemotePropertyServiceAdapter(KNXNetworkLink link,
IndividualAddress remote,
PropertyAdapterListener l,
byte[] authorizeKey)
Creates a new property adapter for remote property access in connection-oriented mode with authorization. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemotePropertyServiceAdapter(KNXNetworkLink link,
IndividualAddress remote,
PropertyAdapterListener l,
boolean connOriented)
throws KNXLinkClosedException
link - KNX network link used for communication with the KNX networkremote - KNX individual address to access its interface objectsl - property adapter listener to get notified about adapter events, use
null for no listenerconnOriented - true to use connection oriented mode for access,
false to use connectionless mode
KNXLinkClosedException - if the network link is closed
public RemotePropertyServiceAdapter(KNXNetworkLink link,
IndividualAddress remote,
PropertyAdapterListener l,
byte[] authorizeKey)
throws KNXException
link - KNX network link used for communication with the KNX networkremote - KNX individual address to access its interface objectsl - property adapter listener to get notified about adapter events, use
null for no listenerauthorizeKey - byte array with authorization key
KNXLinkClosedException - if the network link is closed
KNXException - on failure during authorization| Method Detail |
|---|
public void close()
PropertyAdapter
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).
close in interface PropertyAdapter
public byte[] getDescription(int objIndex,
int pid,
int propIndex)
throws KNXException
PropertyAdapterThe property description layout is according the application layer property description service.
getDescription in interface PropertyAdapterobjIndex - 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 descriptionpublic java.lang.String getName()
The name for this adapter starts with "remote PS " + remote KNX individual address, allowing easier distinction of adapter types.
getName in interface PropertyAdapter
public byte[] getProperty(int objIndex,
int pid,
int start,
int elements)
throws KNXException
PropertyAdapter
getProperty in interface PropertyAdapterobjIndex - 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 propertypublic boolean isOpen()
PropertyAdapter
isOpen in interface PropertyAdaptertrue if adapter open, false if closed
public void setProperty(int objIndex,
int pid,
int start,
int elements,
byte[] data)
throws KNXException
PropertyAdapter
setProperty in interface PropertyAdapterobjIndex - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||