public class EvaluatorObjective extends java.lang.Object implements Evaluator
| Constructor and Description |
|---|
EvaluatorObjective()
Creates a new evaluator for an objective with a zero weight.
|
EvaluatorObjective(EvaluatorObjective e)
Copies the data from the given EvaluatorObjective.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluatorObjective |
clone() |
java.lang.Double |
getEvaluation(AdditiveUtilitySpace uspace,
Bid bid,
int index)
This method returns the utility of the value of an issue.
|
boolean |
getHasWeight() |
EVALUATORTYPE |
getType() |
double |
getWeight() |
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 |
setHasWeight(boolean doesHaveWeight) |
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 EvaluatorObjective()
public EvaluatorObjective(EvaluatorObjective e)
e - other EvaluatorObjectivepublic EvaluatorObjective clone()
public 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 void loadFromXML(SimpleElement pRoot)
EvaluatorloadFromXML in interface Evaluatorpublic void setHasWeight(boolean doesHaveWeight)
doesHaveWeight - signals that this objective has a weight.public boolean getHasWeight()
public SimpleElement setXML(SimpleElement evalObj)
evalObj - The object of which to set the evaluation properties.public java.lang.String isComplete(Objective whichobj)
EvaluatorisComplete in interface Evaluatorwhichobj - is the objective/issue to which this evaluator is attached.