|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.bug.module.camera.CameraModuleControl
public class CameraModuleControl
| Field Summary |
|---|
| Fields inherited from interface com.buglabs.services.ws.PublicWSProvider |
|---|
DELETE, GET, PACKAGE_ID, POST, PUT |
| Constructor Summary | |
|---|---|
CameraModuleControl(CameraControl cameraControl,
CameraModlet cameraModlet)
|
|
| Method Summary | |
|---|---|
PublicWSDefinition |
discover(int operation)
|
IWSResponse |
execute(int operation,
java.lang.String input)
Execute a service. |
IWSResponse |
execute(int operation,
java.lang.String input,
java.util.Map get,
java.util.Map post)
Execute a service with get and post parameters passed in. |
int |
getColorEffects()
|
java.lang.String |
getDescription()
|
int |
getExposureLevel()
|
int |
getHorizontalMirror()
|
java.lang.String |
getPublicName()
|
int |
getSelectedCamera()
Returns the slot number of the selected camera. |
int |
getTestPattern()
|
int |
getVerticalFlip()
|
int |
LEDGreenOff()
|
int |
LEDGreenOn()
|
int |
LEDRedOff()
|
int |
LEDRedOn()
|
int |
setColorEffects(int colorEffects)
Set camera's color effects |
int |
setExposureLevel(int exposureLevel)
Set exposure level. |
int |
setFlashBeamIntensity(int intensity)
Sets the beam intensity |
int |
setHorizontalMirror(int horizontalMirror)
Set horizontal mirror. |
int |
setLEDFlash(boolean state)
Turns Flash LED off |
int |
setLEDFlashOff()
|
int |
setLEDFlashOn()
|
int |
setLEDGreen(boolean state)
|
int |
setLEDRed(boolean state)
|
void |
setPublicName(java.lang.String name)
Set the name of the service. |
int |
setSelectedCamera(int slot)
Selects a camera based on slot number. |
int |
setTestPattern(int testPattern)
Set camera's test pattern: |
int |
setVerticalFlip(int verticalFlip)
Set vertical flip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CameraModuleControl(CameraControl cameraControl,
CameraModlet cameraModlet)
| Method Detail |
|---|
public int setSelectedCamera(int slot)
throws java.io.IOException
ICameraModuleControl
setSelectedCamera in interface ICameraModuleControlslot - the slot number of the desired camera.
java.io.IOException
public int getSelectedCamera()
throws java.io.IOException
ICameraModuleControl
getSelectedCamera in interface ICameraModuleControljava.io.IOException
public int setFlashBeamIntensity(int intensity)
throws java.io.IOException
ICameraModuleControl
setFlashBeamIntensity in interface ICameraModuleControlintensity - The intensity of the beam. 0 = low, 1 = high
java.io.IOException
public int setLEDFlashOff()
throws java.io.IOException
java.io.IOException
public int setLEDFlashOn()
throws java.io.IOException
java.io.IOException
public int setLEDFlash(boolean state)
throws java.io.IOException
ICameraModuleControl
setLEDFlash in interface ICameraModuleControljava.io.IOException
public int LEDGreenOff()
throws java.io.IOException
java.io.IOException
public int LEDGreenOn()
throws java.io.IOException
java.io.IOException
public int LEDRedOff()
throws java.io.IOException
java.io.IOException
public int LEDRedOn()
throws java.io.IOException
java.io.IOException
public int setLEDGreen(boolean state)
throws java.io.IOException
setLEDGreen in interface IModuleLEDControllerjava.io.IOException
public int setLEDRed(boolean state)
throws java.io.IOException
setLEDRed in interface IModuleLEDControllerstate - on = true, off = false;
java.io.IOExceptionpublic int getTestPattern()
getTestPattern in interface ICamera2ModuleControlpublic int setTestPattern(int testPattern)
ICamera2ModuleControl
setTestPattern in interface ICamera2ModuleControltestPattern - 0=Disabled, 1=Walking 1's
public int getColorEffects()
getColorEffects in interface ICamera2ModuleControlpublic int setColorEffects(int colorEffects)
ICamera2ModuleControl
setColorEffects in interface ICamera2ModuleControlcolorEffects - 0=Disabled, 1=Black & White, 2=Sepia, 3=Negative, 4=Solarize
public int getVerticalFlip()
getVerticalFlip in interface ICamera2ModuleControlpublic int setVerticalFlip(int verticalFlip)
ICamera2ModuleControl
setVerticalFlip in interface ICamera2ModuleControlverticalFlip - 0=Disabled, 1=Flipped
public int getHorizontalMirror()
getHorizontalMirror in interface ICamera2ModuleControlpublic int setHorizontalMirror(int horizontalMirror)
ICamera2ModuleControl
setHorizontalMirror in interface ICamera2ModuleControlhorizontalMirror - 0=Disabled, 1=Mirrored
public int getExposureLevel()
getExposureLevel in interface ICamera2ModuleControlpublic int setExposureLevel(int exposureLevel)
ICamera2ModuleControl
setExposureLevel in interface ICamera2ModuleControlexposureLevel - in the range 0-255 (default is 55)
public void setPublicName(java.lang.String name)
PublicWSProvider2
setPublicName in interface PublicWSProvider2public PublicWSDefinition discover(int operation)
discover in interface PublicWSProvideroperation - HTTP operation. See IPublicServiceProvider.GET, etc.
public IWSResponse execute(int operation,
java.lang.String input)
PublicWSProvider
execute in interface PublicWSProvideroperation - PublicWSProvider.GET, .PUT, .POST, .DELETE
public IWSResponse execute(int operation,
java.lang.String input,
java.util.Map get,
java.util.Map post)
PublicWSProviderWithParams
execute in interface PublicWSProviderWithParamsoperation - PublicWSProvider.GET, .PUT, .POST, .DELETEinput - Request path starting with the public name of the
PublicWSProviderWithParamsget - Key value pairs of the parameters passed in via the query
stringpost - Key value pairs passed in via POST data.
public java.lang.String getPublicName()
getPublicName in interface PublicWSProviderpublic java.lang.String getDescription()
getDescription in interface PublicWSProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||