javax.microedition.sensor
Class LimitCondition

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

public class LimitCondition
extends OperatorTest
implements Condition

Basic implementation of the JSR256 LimitCondition 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
LimitCondition(double limit, String operator)
           
 
Method Summary
 double getLimit()
           
 String getOperator()
           
 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

LimitCondition

public LimitCondition(double limit,
                      String operator)
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

getLimit

public final double getLimit()

getOperator

public final String getOperator()

toString

public String toString()
Overrides:
toString in class Object