FileDocCategorySizeDatePackage
Criteria.javaAPI DocphoneME MR2 API (J2ME)4345Wed May 02 18:00:40 BST 2007javax.microedition.location

Criteria

public class Criteria extends Object
This class is defined by the JSR-179 specification Location API for J2ME for J2ME™.

Fields Summary
public static final int
NO_REQUIREMENT
public static final int
POWER_USAGE_LOW
public static final int
POWER_USAGE_MEDIUM
public static final int
POWER_USAGE_HIGH
private int
preferredPowerConsumption
private boolean
allowedToCost
private boolean
speedAndCourseRequired
private boolean
altitudeRequired
private boolean
addressInfoRequired
private int
horizontalAccuracy
private int
verticalAccuracy
private int
preferredResponseTime
Constructors Summary
public Criteria()


    // JAVADOC COMMENT ELIDED
      
    
Methods Summary
public intgetHorizontalAccuracy()

        return horizontalAccuracy;
    
public intgetPreferredPowerConsumption()

        return preferredPowerConsumption;
    
public intgetPreferredResponseTime()

        return preferredResponseTime;
    
public intgetVerticalAccuracy()

        return verticalAccuracy;
    
public booleanisAddressInfoRequired()

        return addressInfoRequired;
    
public booleanisAllowedToCost()

        return allowedToCost;
    
public booleanisAltitudeRequired()

        return altitudeRequired;
    
public booleanisSpeedAndCourseRequired()

        return speedAndCourseRequired;
    
public voidsetAddressInfoRequired(boolean addressInfoRequired)

        this.addressInfoRequired = addressInfoRequired;
    
public voidsetAltitudeRequired(boolean altitudeRequired)

        this.altitudeRequired = altitudeRequired;
    
public voidsetCostAllowed(boolean costAllowed)

        allowedToCost = costAllowed;
    
public voidsetHorizontalAccuracy(int accuracy)

        horizontalAccuracy = accuracy;
    
public voidsetPreferredPowerConsumption(int level)

        preferredPowerConsumption = level;
    
public voidsetPreferredResponseTime(int time)

        preferredResponseTime = time;
    
public voidsetSpeedAndCourseRequired(boolean speedAndCourseRequired)

        this.speedAndCourseRequired = speedAndCourseRequired;
    
public voidsetVerticalAccuracy(int accuracy)

        verticalAccuracy = accuracy;