ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.autotune
Class AutotuneMetricOperator

java.lang.Object
  |
  +--com.ibm.able.autotune.AutotuneMetricOperator
All Implemented Interfaces:
java.io.Serializable

public class AutotuneMetricOperator
extends java.lang.Object
implements java.io.Serializable

This class performs binary relation tests against 2 AutotuneMetricValues The result is either a boolean or a double (delta) value use the test() method to check a boolean relation use the computeDelta() method to compute a difference

See Also:
Serialized Form

Field Summary
static int BETWEEN
           
protected  double delta
           
static int DELTA_ABS
           
static int DELTA_AT
           
static int DELTA_TA
           
static int EQUALS
           
static int GREATER_THAN
           
static int GREATER_THAN_EQUALS
           
static int IS
           
static int LESS_THAN
           
static int LESS_THAN_EQUALS
           
protected  int operation
           
protected  boolean truth
           
 
Constructor Summary
AutotuneMetricOperator()
           
 
Method Summary
 double computeDelta(AbleLiteral target, AbleLiteral actual)
          Compute the error or difference between a metric value and a target value The error can be computed in 3 ways: DELTA_AT : actual - target DELTA_TA : target - actual DELTA_ABS : absolute value of (actual - target)
static java.lang.String Copyright()
          Determine the copyright of this class.
 int getOperation()
           
 void setOperation(int operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

public static final int EQUALS

GREATER_THAN

public static final int GREATER_THAN

LESS_THAN

public static final int LESS_THAN

GREATER_THAN_EQUALS

public static final int GREATER_THAN_EQUALS

LESS_THAN_EQUALS

public static final int LESS_THAN_EQUALS

BETWEEN

public static final int BETWEEN

IS

public static final int IS

DELTA_TA

public static final int DELTA_TA

DELTA_AT

public static final int DELTA_AT

DELTA_ABS

public static final int DELTA_ABS

operation

protected int operation

truth

protected boolean truth

delta

protected double delta
Constructor Detail

AutotuneMetricOperator

public AutotuneMetricOperator()
Method Detail

computeDelta

public double computeDelta(AbleLiteral target,
                           AbleLiteral actual)
                    throws AbleDataException
Compute the error or difference between a metric value and a target value The error can be computed in 3 ways: DELTA_AT : actual - target DELTA_TA : target - actual DELTA_ABS : absolute value of (actual - target)
Parameters:
target - - the target value
actual - - the actual or current metric value

setOperation

public void setOperation(int operation)

getOperation

public int getOperation()

Copyright

public static java.lang.String Copyright()
Determine the copyright of this class.
Returns:
A String containing this class's copyright statement.


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003