|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface IDeviceManager
This interface defines the methods the controller of the device manager should support.
| Method Summary | |
|---|---|
void |
addDevice(AbstractGestureDevice<?,?> device,
IUser user)
Add a device and associate it with a user. |
void |
addDeviceManagerListener(DeviceManagerListener listener)
|
void |
addUser(IUser user)
Add a user. |
void |
associateUser(AbstractGestureDevice<?,?> device,
IUser user)
Associate a user with a device. |
IUser |
getAssociatedUser(GestureDevice<?,?> device)
Get the user that is associated with device |
IUser |
getDefaultUser()
Get the default user of the system (aka system user). |
Set<AbstractGestureDevice<?,?>> |
getDevices()
Get all devices registered with the controller. |
Map<String,DeviceDiscoveryService> |
getDiscoveryMapping()
Get the mapping between connection types and discovery services. |
Set<IUser> |
getUsers()
Get all users registered with the controller. |
void |
loadConfiguration(File file)
Load a user and device configuration from file. |
void |
notifyDeviceManagerListener(int operation,
AbstractGestureDevice<?,?> device)
|
void |
removeAllDeviceManagerListener()
|
void |
removeDevice(AbstractGestureDevice<?,?> device)
Remove a device. |
void |
removeDeviceManagerListener(DeviceManagerListener listener)
|
void |
removeUser(IUser user)
Remove a user |
void |
saveConfiguration(File file)
Save the current user and device configuration to file. |
void |
showView(Point p)
Show the view at a certain point. |
| Method Detail |
|---|
void addUser(IUser user)
user - void removeUser(IUser user)
void addDevice(AbstractGestureDevice<?,?> device,
IUser user)
device - The device to add.user - The user to associate with the device.void removeDevice(AbstractGestureDevice<?,?> device)
device - The device to remove.
void associateUser(AbstractGestureDevice<?,?> device,
IUser user)
device - The device.user - The user to associate with the device.IUser getAssociatedUser(GestureDevice<?,?> device)
IUser getDefaultUser()
Set<AbstractGestureDevice<?,?>> getDevices()
Set<IUser> getUsers()
void showView(Point p)
p - The desired pointMap<String,DeviceDiscoveryService> getDiscoveryMapping()
void saveConfiguration(File file)
file - The file to save to.void loadConfiguration(File file)
file - The file to load from.void addDeviceManagerListener(DeviceManagerListener listener)
void removeDeviceManagerListener(DeviceManagerListener listener)
void removeAllDeviceManagerListener()
void notifyDeviceManagerListener(int operation,
AbstractGestureDevice<?,?> device)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||