Mobile Sensor API Version 1.2

javax.microedition.sensor.control
Interface Control

All Known Subinterfaces:
MeasurementRangeControl, SampleRateControl, StartControl, StopControl

public interface Control

A Control object represents a sensor control enabling the sensor's control.


Method Summary
 void execute()
          The method executes the control.
 java.lang.String getName()
          The method returns the name of the Control.
 

Method Detail

execute

void execute()

The method executes the control. In the case of having a separately published Control interface of your own and thus several methods for execution, this method may be used as a "reset()" method.

Throws:
java.lang.IllegalStateException - if the sensor is in an illegal state regarding the execution of the control, or if the method is not supported.

getName

java.lang.String getName()

The method returns the name of the Control. The name of the control MUST be the fully-qualified name of the class. There are four control examples represented in the specification whose names do not follow this rule. The names of these controls are plain class names without the path, namely:

  1. MeasurementRangeControl
  2. SampleRateControl
  3. StartControl
  4. StopControl

Returns:
the name of the Control

Mobile Sensor API Version 1.2

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