public enum EVALFUNCTYPE extends java.lang.Enum<EVALFUNCTYPE>
Enum Constant and Description |
---|
CONSTANT
A constant evaluation function: all values have the same utility.
|
FARATIN
A Faratin utilty function.
|
LINEAR
A linear utility function.
|
TRIANGULAR
A triangular utility function.
|
TRIANGULAR_VARIABLE_TOP
A triangular utility function of which the top has a given utility.
|
Modifier and Type | Method and Description |
---|---|
static EVALFUNCTYPE |
convertToType(java.lang.String type)
Method which convert a string type to an object.
|
static double |
evalFaratin(double x,
double max,
double min,
double alpha,
double epsilon)
Method which given the value of an issue, returns the utility of the value.
|
static double |
evalLinear(double value,
double slope,
double offset)
Method which given a value of a linear issue, returns the utility of the value.
|
static double |
evalLinearRev(double utility,
double offset,
double slope)
Method which given the utility of an issue, converts it back to the value.
|
static double |
evalTriangular(double x,
double lowerBound,
double upperBound,
double top)
Method which given the value x, returns the utility of the value.
|
static double |
evalTriangularVariableTop(double x,
double lowerBound,
double upperBound,
double top,
double topValue)
Method which given the value x, returns the utility of the value.
|
static EVALFUNCTYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EVALFUNCTYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EVALFUNCTYPE CONSTANT
public static final EVALFUNCTYPE LINEAR
public static final EVALFUNCTYPE FARATIN
public static final EVALFUNCTYPE TRIANGULAR
public static final EVALFUNCTYPE TRIANGULAR_VARIABLE_TOP
public static EVALFUNCTYPE[] values()
for (EVALFUNCTYPE c : EVALFUNCTYPE.values()) System.out.println(c);
public static EVALFUNCTYPE valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EVALFUNCTYPE convertToType(java.lang.String type)
type
- of the evaluation function.public static double evalLinear(double value, double slope, double offset)
value
- of the issue.slope
- of the linear evaluation function.offset
- of the linear evaluation function.public static double evalLinearRev(double utility, double offset, double slope)
utility
- of a value for the issue.offset
- of the linear evaluation function of the issue.slope
- of the linear evaluation function of the issue.public static double evalFaratin(double x, double max, double min, double alpha, double epsilon)
x
- value of the issue.max
- min
- alpha
- epsilon
- public static double evalTriangular(double x, double lowerBound, double upperBound, double top)
x
- lowerBound
- upperBound
- top
- public static double evalTriangularVariableTop(double x, double lowerBound, double upperBound, double top, double topValue)
x
- lowerBound
- upperBound
- top
- topValue
- utility of the value with the highest utility.