|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface Device
This interface defines all methods for devices, that can be managed by the device manager, must implement.
| Method Summary | |
|---|---|
void |
connect()
Connect the device. |
void |
disconnect()
Disconnect the device. |
int |
getConnectionType()
Get the connection type of the device. |
String |
getDeviceClass()
Get the device type (E.g. |
String |
getDeviceID()
Get the unique identifier of the device. |
int |
getDeviceType()
Get the type of the device. |
String |
getName()
Get the display name for the device. |
boolean |
isConnectable()
Check whether the device can be connected by the user or is automatically connected. |
boolean |
isConnected()
Check whether the device is connected or not. |
boolean |
isDefaultDevice()
Check whether the device is the default device. |
boolean |
isDisconnectable()
Check whether the device can be disconnected by the user. |
void |
setConnectionType(int connectionType)
Set the connection type of the device. |
void |
setDefaultDevice(boolean isDefault)
Set the default device status of the device. |
void |
setDeviceID(String id)
Set the unique identifier of the device. |
void |
setDeviceType(int deviceType)
Set the type of the device. |
void |
setIsConnected(boolean isConnected)
Change the connection status of the device. |
void |
setName(String name)
Set the display name for the device. |
String |
toString()
|
| Method Detail |
|---|
String getDeviceID()
void setDeviceID(String id)
id - String getName()
void setName(String name)
name - void disconnect()
void connect()
boolean isConnectable()
boolean isDisconnectable()
boolean isConnected()
void setIsConnected(boolean isConnected)
isConnected - The new connection status.int getDeviceType()
void setDeviceType(int deviceType)
deviceType - int getConnectionType()
void setConnectionType(int connectionType)
connectionType - boolean isDefaultDevice()
void setDefaultDevice(boolean isDefault)
isDefault - String toString()
toString in class ObjectString getDeviceClass()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||