jhomenet.hw.driver
Class HardwareDriverManager

java.lang.Object
  extended by jhomenet.hw.driver.HardwareDriverManager
All Implemented Interfaces:
AbstractDriverManager

public class HardwareDriverManager
extends java.lang.Object
implements AbstractDriverManager

ID: $Id: HardwareDriverManager.java,v 1.11 2005/10/07 03:23:23 dhirwinjr Exp $ Description: Manages the hardware drivers.


Method Summary
 HardwareDriver getDriverByID(java.lang.String hardwareID)
          Return a hardware driver given a hardware ID
 HardwareDriver getDriverByName(java.lang.String driverName)
          Return a reference to a hardware driver given the driver name.
 java.lang.String getDriverHardwareType(java.lang.String hardwareID)
          Get the driver hardware type given the hardware ID.
static HardwareConf getHardwareConfiguration()
           
 java.util.ArrayList<java.lang.String> getHardwareIDs()
          Return a list of the all the present hardware on the jHomenet network.
 void initialize(HardwareConf hardwareConfig)
           
static HardwareDriverManager instance()
          Get an instance of the hardware driver manager.
 void register(HardwareDriver driver)
          Register a hardware driver implementation with the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static HardwareDriverManager instance()
Get an instance of the hardware driver manager.

Returns:
A reference to the hardware driver manager

initialize

public void initialize(HardwareConf hardwareConfig)

getHardwareConfiguration

public static HardwareConf getHardwareConfiguration()

register

public void register(HardwareDriver driver)
Register a hardware driver implementation with the factory.

Specified by:
register in interface AbstractDriverManager
Parameters:
driver - Reference to the hardware driver to register.

getHardwareIDs

public java.util.ArrayList<java.lang.String> getHardwareIDs()
Return a list of the all the present hardware on the jHomenet network.

Specified by:
getHardwareIDs in interface AbstractDriverManager
Returns:
A list of all the present hardware on the network.

getDriverByID

public HardwareDriver getDriverByID(java.lang.String hardwareID)
Return a hardware driver given a hardware ID

Specified by:
getDriverByID in interface AbstractDriverManager
Parameters:
hardwareID - Hardware ID
Returns:
A reference to the particular hardware driver

getDriverByName

public HardwareDriver getDriverByName(java.lang.String driverName)
Return a reference to a hardware driver given the driver name.

Specified by:
getDriverByName in interface AbstractDriverManager
Parameters:
driverName - Hardware driver name
Returns:
Reference to the hardware driver

getDriverHardwareType

public java.lang.String getDriverHardwareType(java.lang.String hardwareID)
Get the driver hardware type given the hardware ID.

Specified by:
getDriverHardwareType in interface AbstractDriverManager
Parameters:
hardwareID -
Returns:
The hardware driver type


Copyright © 2004-2005 David Irwin. All Rights Reserved.