|
||||||||||
| 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 java.lang.String |
CONFIG_FILE_NAME
Name of configuration file or resource. |
protected int |
connectionBufferSize
Defaults to 8K. |
static java.lang.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 java.lang.String |
deviceName
Allow to define device name. |
protected java.lang.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()
|
java.lang.String |
getDeviceNamePrefix()
|
int |
getDurationLIAC()
|
long |
getFirstDeviceAddress()
|
int |
getIntProperty(java.lang.String property)
|
int |
getKeepAliveSeconds()
|
java.lang.String |
getProperty(long address,
java.lang.String property)
Get specific device property. |
java.lang.String |
getProperty(java.lang.String property)
|
boolean |
isDeviceDiscoverable()
|
boolean |
isDeviceInquiryRandomDelay()
|
boolean |
isLinkEncryptionSupported()
|
boolean |
isSenderFlushBlock()
|
void |
loadConfigFile()
|
static int |
valueToInt(java.lang.String value)
|
static long |
valueToLong(java.lang.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 java.lang.String CONFIG_FILE_NAME
public static final java.lang.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 java.lang.String deviceClass
deviceName,
Constant Field Valuesprotected long firstDeviceAddress
protected java.lang.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(java.lang.String value)
public static long valueToLong(java.lang.String value)
public EmulatorConfiguration clone(long localAddress)
public int getDurationLIAC()
public int getDeviceInquiryDuration()
public boolean isDeviceInquiryRandomDelay()
public long getFirstDeviceAddress()
public java.lang.String getProperty(long address,
java.lang.String property)
address - device addressproperty -
public java.lang.String getProperty(java.lang.String property)
public int getIntProperty(java.lang.String property)
public java.lang.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 | |||||||||