public class UncertainAdditiveUtilitySpace extends AdditiveUtilitySpace
AdditiveUtilitySpace
from which
the N bids are generated. Usually the N bids with highest utility are taken.DISCOUNT_FACTOR, fileName, RESERVATION
Constructor and Description |
---|
UncertainAdditiveUtilitySpace(AdditiveUtilitySpace utilitySpace,
java.lang.Integer comparisons,
java.lang.Integer errors,
boolean experimental)
Constructor to extend normal AdditiveUtilitySpace to a
UncertainAdditiveUtilitySpace.
|
UncertainAdditiveUtilitySpace(Domain domain,
java.lang.String fullfile) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getComparisons() |
java.lang.Integer |
getErrors() |
java.lang.Boolean |
isExperimental() |
protected boolean |
loadTreeFromFile(java.lang.String filename) |
SimpleElement |
toXML()
Creates an xml representation (in the form of a SimpleElements) of the
utilityspace.
|
addEvaluator, copy, equals, getEvaluation, getEvaluator, getEvaluator, getEvaluators, getfEvaluators, getIssue, getNrOfEvaluators, getUtility, getWeight, getWeight, isComplete, loadTreeRecursive, lock, normalizeChildren, normalizeWeights, setWeight, setWeights, toString, unlock
checkReadyForNegotiation, discount, getDiscountFactor, getDomain, getFileName, getMaxUtilityBid, getMinUtilityBid, getName, getReservationValue, getReservationValueUndiscounted, getReservationValueWithDiscount, getReservationValueWithDiscount, getUtilityWithDiscount, getUtilityWithDiscount, isDiscounted, setDiscount, setReservationValue, validateDiscount
public UncertainAdditiveUtilitySpace(Domain domain, java.lang.String fullfile) throws java.io.IOException
java.io.IOException
public UncertainAdditiveUtilitySpace(AdditiveUtilitySpace utilitySpace, java.lang.Integer comparisons, java.lang.Integer errors, boolean experimental)
utilitySpace
- the existing AdditiveUtilitySpace.comparisons
- the value for comparisonserrors
- the value for errorsexperimental
- the value for experimentalpublic java.lang.Integer getComparisons()
public java.lang.Integer getErrors()
public java.lang.Boolean isExperimental()
AdditiveUtilitySpace
protected boolean loadTreeFromFile(java.lang.String filename) throws java.io.IOException
loadTreeFromFile
in class AdditiveUtilitySpace
filename
- The name of the xml file to parse.java.io.IOException
- if error occurs, e.g. file not foundpublic SimpleElement toXML() throws java.io.IOException
UtilitySpace
toXML
in interface UtilitySpace
toXML
in class AdditiveUtilitySpace
null
when
there was an error.java.io.IOException