roomba.roombanetwork.services.image
Class CameraFactory

java.lang.Object
  extended by roomba.roombanetwork.services.image.CameraFactory

public class CameraFactory
extends java.lang.Object

Factory to instantiate new cameras of a specified type.

Author:
Drew Housten

Field Summary
static java.lang.String CAMERA_ISIGHT
           
static java.lang.String CAMERA_LOGITECH_QUICKCAM_MACOSX
           
static java.lang.String CAMERA_LOGITECH_QUICKCAM_WINDOWS
           
 
Constructor Summary
CameraFactory()
           
 
Method Summary
static Camera getNewCamera(java.lang.String cameraType)
          Gets an instance of the specified type of camera.
static java.lang.String[] listCameras()
          Provides a list of the supported cameras.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAMERA_ISIGHT

public static final java.lang.String CAMERA_ISIGHT
See Also:
Constant Field Values

CAMERA_LOGITECH_QUICKCAM_WINDOWS

public static final java.lang.String CAMERA_LOGITECH_QUICKCAM_WINDOWS
See Also:
Constant Field Values

CAMERA_LOGITECH_QUICKCAM_MACOSX

public static final java.lang.String CAMERA_LOGITECH_QUICKCAM_MACOSX
See Also:
Constant Field Values
Constructor Detail

CameraFactory

public CameraFactory()
Method Detail

listCameras

public static java.lang.String[] listCameras()
Provides a list of the supported cameras. If a new camera is added this list should be updated

Returns:
The list of cameras

getNewCamera

public static Camera getNewCamera(java.lang.String cameraType)
Gets an instance of the specified type of camera.

Parameters:
cameraType - Type of the camera
Returns:
An instantiated camera of the specified type. This will be null if the type is unknown