|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttuwien.auto.calimero.link.medium.KNXMediumSettings
tuwien.auto.calimero.link.medium.RFSettings
public class RFSettings
Provides settings necessary for communication on RF medium.
| Field Summary |
|---|
| Fields inherited from class tuwien.auto.calimero.link.medium.KNXMediumSettings |
|---|
MEDIUM_PL110, MEDIUM_PL132, MEDIUM_RF, MEDIUM_TP0, MEDIUM_TP1 |
| Constructor Summary | |
|---|---|
RFSettings(IndividualAddress device)
Creates a new settings container with the device individual address for RF medium. |
|
RFSettings(IndividualAddress device,
byte[] domain,
byte[] serialNumber,
boolean unidirectional)
Creates a new settings container with RF medium specific information. |
|
| Method Summary | |
|---|---|
byte[] |
getDomainAddress()
Returns the domain address. |
short |
getMedium()
Returns the KNX medium type identifier specifying the communication medium this setting object is for. |
byte[] |
getSerialNumber()
Returns the serial number of the device. |
boolean |
isUnidirectional()
Returns whether unidirectional device is set. |
void |
setDomainAddress(byte[] domain)
Sets a new domain address. |
java.lang.String |
toString()
|
| Methods inherited from class tuwien.auto.calimero.link.medium.KNXMediumSettings |
|---|
getDeviceAddress, getMediumString, setDeviceAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RFSettings(IndividualAddress device)
The domain address is initialized to broadcast domain, serial number is 0,
unidirectional is set false.
device - device individual device address to use as source address in KNX
messages, specifying null uses the individual address 0.0.0
public RFSettings(IndividualAddress device,
byte[] domain,
byte[] serialNumber,
boolean unidirectional)
device - device individual device address to use as source address in KNX
messages, specifying null uses the individual address 0.0.0domain - byte array containing the domain address to use in KNX messages,
address is given in network byte order, domain.length = 6,
supplying null defaults to the broadcast domainserialNumber - serial number of the device, serialNumber.length =
6unidirectional - true to indicate an unidirectional device,
false otherwise| Method Detail |
|---|
public final byte[] getDomainAddress()
The address is returned in network byte order.
public short getMedium()
KNXMediumSettings
getMedium in class KNXMediumSettingspublic final byte[] getSerialNumber()
public final boolean isUnidirectional()
true if unidirectional, false otherwisepublic final void setDomainAddress(byte[] domain)
domain - byte array containing the domain address to use in KNX messages,
address is given in network byte order, domain.length = 6,
supplying null defaults to the broadcast domainpublic java.lang.String toString()
toString in class KNXMediumSettings
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||