© 2006-2007 ETH Zurich

org.ximtec.igesture.io
Interface IDeviceManager

All Known Implementing Classes:
DeviceManagerController, DeviceManagerService

public interface IDeviceManager

This interface defines the methods the controller of the device manager should support.

Author:
Bjorn Puype, bpuype@gmail.com

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

addUser

void addUser(IUser user)
Add a user.

Parameters:
user -

removeUser

void removeUser(IUser user)
Remove a user


addDevice

void addDevice(AbstractGestureDevice<?,?> device,
               IUser user)
Add a device and associate it with a user.

Parameters:
device - The device to add.
user - The user to associate with the device.

removeDevice

void removeDevice(AbstractGestureDevice<?,?> device)
Remove a device.

Parameters:
device - The device to remove.

associateUser

void associateUser(AbstractGestureDevice<?,?> device,
                   IUser user)
Associate a user with a device.

Parameters:
device - The device.
user - The user to associate with the device.

getAssociatedUser

IUser getAssociatedUser(GestureDevice<?,?> device)
Get the user that is associated with device


getDefaultUser

IUser getDefaultUser()
Get the default user of the system (aka system user).

Returns:
default user.

getDevices

Set<AbstractGestureDevice<?,?>> getDevices()
Get all devices registered with the controller.

Returns:
A set of devices.

getUsers

Set<IUser> getUsers()
Get all users registered with the controller.

Returns:
A set of users.

showView

void showView(Point p)
Show the view at a certain point.

Parameters:
p - The desired point

getDiscoveryMapping

Map<String,DeviceDiscoveryService> getDiscoveryMapping()
Get the mapping between connection types and discovery services.

Returns:

saveConfiguration

void saveConfiguration(File file)
Save the current user and device configuration to file.

Parameters:
file - The file to save to.

loadConfiguration

void loadConfiguration(File file)
Load a user and device configuration from file.

Parameters:
file - The file to load from.

addDeviceManagerListener

void addDeviceManagerListener(DeviceManagerListener listener)

removeDeviceManagerListener

void removeDeviceManagerListener(DeviceManagerListener listener)

removeAllDeviceManagerListener

void removeAllDeviceManagerListener()

notifyDeviceManagerListener

void notifyDeviceManagerListener(int operation,
                                 AbstractGestureDevice<?,?> device)

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.