|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intel.bluetooth.emu.EmulatorConfiguration
public class EmulatorConfiguration
Defines Emulator configuration properties. See properties defined in javax.bluetooth.LocalDevice.getProperty();
| Field Summary | |
|---|---|
static String |
CONFIG_FILE_NAME
Name of configuration file or resource. |
protected int |
connectionBufferSize
Defaults to 8K. |
static String |
deviceClass
Allow to define device class. |
protected boolean |
deviceDiscoverable
Created Devices are initially discoverable. |
protected int |
deviceInquiryDuration
deviceInquiryDuration in seconds, Defaults to 11. |
protected boolean |
deviceInquiryRandomDelay
Device Inquiry Duration is random. |
static String |
deviceName
Allow to define device name. |
protected String |
deviceNamePrefix
Defaults to "EmuDevice". |
protected int |
durationLIAC
Discoverable duration in seconds for LIAC. |
protected long |
firstDeviceAddress
Defaults to '0B1000000000'. |
protected int |
keepAliveSeconds
Monitor if client device is active. |
protected boolean |
linkEncryptionSupported
Defaults to true. |
protected boolean |
senderFlushBlock
stream.flush() will Block sender till client reads all data. |
| Constructor Summary | |
|---|---|
EmulatorConfiguration()
|
|
| Method Summary | |
|---|---|
EmulatorConfiguration |
clone(long localAddress)
|
int |
getConnectionBufferSize()
|
int |
getDeviceInquiryDuration()
|
String |
getDeviceNamePrefix()
|
int |
getDurationLIAC()
|
long |
getFirstDeviceAddress()
|
int |
getIntProperty(String property)
|
int |
getKeepAliveSeconds()
|
String |
getProperty(long address,
String property)
Get specific device property. |
String |
getProperty(String property)
|
boolean |
isDeviceDiscoverable()
|
boolean |
isDeviceInquiryRandomDelay()
|
boolean |
isLinkEncryptionSupported()
|
boolean |
isSenderFlushBlock()
|
void |
loadConfigFile()
|
static int |
valueToInt(String value)
|
static long |
valueToLong(String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_FILE_NAME
public static final String deviceName
0B1000000000.deviceName=My Device Server # Device is Computer 0B1000000000.deviceClass=0x0100 0B1000000001.deviceName=My Device Client # Device is Phone 0B1000000001.deviceClass=0x0200
public static final String deviceClass
deviceName,
Constant Field Valuesprotected long firstDeviceAddress
protected String deviceNamePrefix
protected boolean deviceDiscoverable
protected int durationLIAC
3.
protected int deviceInquiryDuration
11.
protected boolean deviceInquiryRandomDelay
false.
protected int connectionBufferSize
protected boolean linkEncryptionSupported
true.
protected boolean senderFlushBlock
protected int keepAliveSeconds
| Constructor Detail |
|---|
public EmulatorConfiguration()
| Method Detail |
|---|
public void loadConfigFile()
public static int valueToInt(String value)
public static long valueToLong(String value)
public EmulatorConfiguration clone(long localAddress)
public int getDurationLIAC()
public int getDeviceInquiryDuration()
public boolean isDeviceInquiryRandomDelay()
public long getFirstDeviceAddress()
public String getProperty(long address,
String property)
address - device addressproperty -
public String getProperty(String property)
public int getIntProperty(String property)
public String getDeviceNamePrefix()
public boolean isDeviceDiscoverable()
public int getConnectionBufferSize()
public boolean isLinkEncryptionSupported()
public int getKeepAliveSeconds()
public boolean isSenderFlushBlock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||