sophware.home.insteon
Class InsteonDeviceFactory

java.lang.Object
  extended by sophware.home.insteon.InsteonDeviceFactory

public class InsteonDeviceFactory
extends java.lang.Object

The InsteonDeviceFactory is responsible for the dynamic creation of Insteon devices as they are discovered.

Version:
1.0, 03/19/07
Author:
Russell Soph

Constructor Summary
InsteonDeviceFactory()
           
 
Method Summary
 HomeDevice getDevice(short type, float rev, InsteonAddress addr)
          Gets the class associated with the reported device type bytes
static InsteonDeviceFactory getFactory()
          Gets the InsteonDeviceFactory
static void setFactory(InsteonDeviceFactory factory)
          Gets the InsteonDeviceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsteonDeviceFactory

public InsteonDeviceFactory()
Method Detail

getFactory

public static InsteonDeviceFactory getFactory()
Gets the InsteonDeviceFactory

Returns:
the InsteonDeviceFactory

setFactory

public static void setFactory(InsteonDeviceFactory factory)
Gets the InsteonDeviceFactory

Parameters:
factory - the new InsteonDeviceFactory

getDevice

public HomeDevice getDevice(short type,
                            float rev,
                            InsteonAddress addr)
Gets the class associated with the reported device type bytes

Parameters:
type - the device type
rev - the device revision
addr - the device address
Returns:
the HomeDevice class used for this device