javax.microedition.sensor
Class RangeCondition

java.lang.Object
  extended by javax.microedition.sensor.OperatorTest
      extended by javax.microedition.sensor.RangeCondition
All Implemented Interfaces:
Condition

public final class RangeCondition
extends OperatorTest
implements Condition

Basic implementation of JSR256 RangeCondition class

Author:
Lawrie Griffiths

Field Summary
 
Fields inherited from interface javax.microedition.sensor.Condition
OP_EQUALS, OP_GREATER_THAN, OP_GREATER_THAN_OR_EQUALS, OP_LESS_THAN, OP_LESS_THAN_OR_EQUALS
 
Constructor Summary
RangeCondition(double lowerLimit, String lowerOp, double upperLimit, String upperOp)
           
 
Method Summary
 double getLowerLimit()
           
 String getLowerOp()
           
 double getUpperLimit()
           
 String getUpperOp()
           
 boolean isMet(double doubleValue)
           
 boolean isMet(Object value)
           
 String toString()
           
 
Methods inherited from class javax.microedition.sensor.OperatorTest
test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeCondition

public RangeCondition(double lowerLimit,
                      String lowerOp,
                      double upperLimit,
                      String upperOp)
Method Detail

isMet

public boolean isMet(double doubleValue)
Specified by:
isMet in interface Condition

isMet

public boolean isMet(Object value)
Specified by:
isMet in interface Condition

getLowerLimit

public final double getLowerLimit()

getLowerOp

public final String getLowerOp()

getUpperLimit

public final double getUpperLimit()

getUpperOp

public final String getUpperOp()

toString

public String toString()
Overrides:
toString in class Object