net.sourceforge.apphere
Class DeviceManager

java.lang.Object
  extended bynet.sourceforge.apphere.DeviceManager

public class DeviceManager
extends java.lang.Object

Author:
Dewi Roberts Chimera - Institute for Socio-Technical Innovation and Research University of Essex

Constructor Summary
DeviceManager()
           
 
Method Summary
 int addDevice(DeviceValue newDev)
           
 Device getDevice(java.net.InetAddress ip)
           
 Device getDevice(int userId, int deviceId)
           
 java.util.List getDevices(int userId)
           
 void removeDevice(int userId, int deviceId)
           
 void updateDevice(DeviceValue device)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceManager

public DeviceManager()
Method Detail

addDevice

public int addDevice(DeviceValue newDev)
              throws AppHereException
Throws:
AppHereException

updateDevice

public void updateDevice(DeviceValue device)
                  throws AppHereException
Throws:
AppHereException

removeDevice

public void removeDevice(int userId,
                         int deviceId)
                  throws AppHereException
Throws:
AppHereException

getDevice

public Device getDevice(int userId,
                        int deviceId)
                 throws AppHereException
Throws:
AppHereException

getDevice

public Device getDevice(java.net.InetAddress ip)
                 throws AppHereException
Throws:
AppHereException

getDevices

public java.util.List getDevices(int userId)
                          throws AppHereException
Throws:
AppHereException