Mobile Sensor API Version 1.2

Package javax.microedition.sensor.control

This Mobile Sensor API package is optional and it enables the control of the sensor.

See:
          Description

Interface Summary
Control A Control object represents a sensor control enabling the sensor's control.
Controllable The Controllable represents a sensor which can be controlled with the controls provided.
MeasurementRangeControl A MeasurementRangeControl object is an example of a general control used to set the measurement range of the sensor.
SampleRateControl A SampleRateControl object is an example of a general control used to set the sample rate of the sensor.
StartControl A StartControl object is an example of a general control used to start the sensor by calling its execute() method.
StopControl A StopControl object is an example of a general control used to stop the sensor by calling its execute() method.
 

Package javax.microedition.sensor.control Description

This Mobile Sensor API package is optional and it enables the control of the sensor.

Before opening the connection to the sensor, the sensor's controllability can be queried. If the sensor can be controlled, the method SensorInfo.getProperty(SensorInfo.PROP_IS_CONTROLLABLE) MUST return an object that equals Boolean.TRUE. Several controls can be attached to each sensor.

Controllable sensor

Figure 4: The controllable sensor implements two interfaces: a SensorConnection and a Controllable.

After the connection has been created the controllability of a sensor can also be checked with instanceof Controllable.


Mobile Sensor API Version 1.2

Copyright © 2005-2008 Nokia Corporation. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.