endrov.hardware
Class EvHardware

java.lang.Object
  extended by endrov.hardware.EvHardware

public class EvHardware
extends java.lang.Object

Manager of all existing hardware


Constructor Summary
EvHardware()
           
 
Method Summary
 org.jdom.Element getConfig()
          Get current configuration as XML
static EvCoreDevice getCoreDevice()
           
static EvDevice getDevice(EvDevicePath name)
          Get device or null if it does not exist
static java.util.Set<EvDevicePath> getDeviceList()
          Get list of all installed hardware
static java.util.TreeMap<EvDevicePath,EvDevice> getDeviceMap()
          Get map of all installed hardware
static java.util.Map<EvDevicePath,EvDevice> getDeviceMap(java.lang.Class<?> hw)
          Get list of all installed hardware of a specific type
static
<E> java.util.Map<EvDevicePath,E>
getDeviceMapCast(java.lang.Class<E> hw)
           
static EvDeviceRoot getRoot()
           
 void setConfig(org.jdom.Element root)
          Set current config
static void updateAvailableDevices()
          Update the list of all available devices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvHardware

public EvHardware()
Method Detail

getCoreDevice

public static EvCoreDevice getCoreDevice()

getRoot

public static EvDeviceRoot getRoot()

getDevice

public static EvDevice getDevice(EvDevicePath name)
Get device or null if it does not exist


getDeviceList

public static java.util.Set<EvDevicePath> getDeviceList()
Get list of all installed hardware


getDeviceMap

public static java.util.TreeMap<EvDevicePath,EvDevice> getDeviceMap()
Get map of all installed hardware


getDeviceMap

public static java.util.Map<EvDevicePath,EvDevice> getDeviceMap(java.lang.Class<?> hw)
Get list of all installed hardware of a specific type


getDeviceMapCast

public static <E> java.util.Map<EvDevicePath,E> getDeviceMapCast(java.lang.Class<E> hw)

getConfig

public org.jdom.Element getConfig()
Get current configuration as XML


setConfig

public void setConfig(org.jdom.Element root)
Set current config


updateAvailableDevices

public static void updateAvailableDevices()
Update the list of all available devices. To be called by device providers.