com.cra.bnet.engine
Class ThresholdBeliefCondition.ComparisonOperator

java.lang.Object
  |
  +--com.cra.bnet.engine.ThresholdBeliefCondition.ComparisonOperator
Enclosing class:
ThresholdBeliefCondition

public abstract static class ThresholdBeliefCondition.ComparisonOperator
extends Object

An operator that compares two numbers.


Method Summary
abstract  boolean compare(double d1, double d2)
          Compares the first specified number to the second specified number.
 String toString()
          Returns a string representation of this comparison operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Returns a string representation of this comparison operator.

Overrides:
toString in class Object
Returns:
a string representation of this comparison operator.

compare

public abstract boolean compare(double d1,
                                double d2)
Compares the first specified number to the second specified number.

Parameters:
d1 - first number.
d2 - second number.
Returns:
true if the first number meets the comparison with the second number.