public class EvaluatorReal extends java.lang.Object implements Evaluator
| Constructor and Description |
|---|
EvaluatorReal() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(int index,
double value) |
EvaluatorReal |
clone() |
boolean |
equals(java.lang.Object obj) |
double |
getConstantParam() |
java.lang.Double |
getEvaluation(AdditiveUtilitySpace uspace,
Bid bid,
int index)
This method returns the utility of the value of an issue.
|
java.lang.Double |
getEvaluation(double pValue) |
EVALFUNCTYPE |
getFuncType() |
double |
getLinearParam() |
double |
getLowerBound() |
Value |
getMaxValue() |
Value |
getMinValue() |
double |
getTopParam() |
EVALUATORTYPE |
getType() |
double |
getUpperBound() |
double |
getValueByEvaluation(double pUtility) |
double |
getWeight() |
int |
hashCode() |
java.lang.String |
isComplete(Objective whichobj)
Check whether the evaluator has enough information to make an evaluation.
|
void |
loadFromXML(SimpleElement pRoot)
Load the evaluator from an XML file
|
void |
lockWeight()
lockWeight is a flag affecting the behaviour of the normalize function in
the utility space.
|
void |
setConstantParam(double par0)
Sets the constant parameter for the evaluation function and changes the
ftype of this evaluator to "constant"
|
void |
setftype(java.lang.String ft)
Sets the evaluator function type.
|
void |
setLinearParam(double par1)
Sets the linear parameter for the evaluation function and changes the
ftype of this evaluator to "linear".
|
void |
setLowerBound(double lf)
Sets the lower bound for this evaluator.
|
void |
setType(EVALFUNCTYPE pType) |
void |
setUpperBound(double ub)
Sets the upper bound for this evaluator
|
void |
setWeight(double wt)
Sets the weigth with which an Objective or Issue is evaluated.
|
SimpleElement |
setXML(SimpleElement evalObj)
Sets weights and evaluator properties for the object in SimpleElement
representation that is passed to it.
|
void |
unlockWeight()
Method to unlock a weight.
|
boolean |
weightLocked() |
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic double getWeight()
public void setWeight(double wt)
Evaluatorpublic void lockWeight()
EvaluatorlockWeight in interface Evaluatorpublic void unlockWeight()
EvaluatorunlockWeight in interface Evaluatorpublic boolean weightLocked()
weightLocked in interface Evaluatorpublic java.lang.Double getEvaluation(AdditiveUtilitySpace uspace, Bid bid, int index)
EvaluatorgetEvaluation in interface Evaluatoruspace - preference profilebid - in which the value is contained.index - unique ID of the issue in the bid for which we want an
evaluation.public EVALUATORTYPE getType()
public java.lang.String isComplete(Objective whichobj)
EvaluatorisComplete in interface Evaluatorwhichobj - is the objective/issue to which this evaluator is attached.public java.lang.Double getEvaluation(double pValue)
public double getValueByEvaluation(double pUtility)
public EVALFUNCTYPE getFuncType()
public double getLowerBound()
public double getUpperBound()
public void setLowerBound(double lf)
lf - The new lower bound.public void setUpperBound(double ub)
ub - The new upper boundpublic void setftype(java.lang.String ft)
ft - The new type, either "linear" or
"constant"public void setLinearParam(double par1)
par1 - The new linear evaluation parameter.public double getLinearParam()
public void setConstantParam(double par0)
par0 - The new constant evalutation parameter.public double getConstantParam()
public double getTopParam()
public void loadFromXML(SimpleElement pRoot)
EvaluatorloadFromXML in interface Evaluatorpublic SimpleElement setXML(SimpleElement evalObj)
evalObj - The object of which to set the evaluation properties.public Value getMaxValue()
public Value getMinValue()
public void addParam(int index,
double value)
public void setType(EVALFUNCTYPE pType)
public EvaluatorReal clone()