public class ConstraintUtilitySpace extends UtilitySpace
domain, fileName, fXMLRoot, spaceType
Constructor and Description |
---|
ConstraintUtilitySpace() |
ConstraintUtilitySpace(Domain domain) |
ConstraintUtilitySpace(Domain domain,
java.lang.String fileName) |
ConstraintUtilitySpace(UtilitySpace us) |
Modifier and Type | Method and Description |
---|---|
void |
checkReadyForNegotiation(Domain dom)
Check if this utility space is ready for negotiation.
|
boolean |
equals(java.lang.Object obj)
Uses the original equals of
Object . |
double |
getUtility(Bid bid) |
java.util.ArrayList<ZeroOutcomeContraint> |
getZeroOutcomeConstraints() |
void |
setZeroOutcomeConstraints(java.util.ArrayList<ZeroOutcomeContraint> zeroOutcomeConstraints) |
SimpleElement |
toXML()
Creates an xml representation (in the form of a SimpleElements) of the
utilityspace.
|
addEvaluator, discount, discount, getDiscountFactor, getDomain, getEvaluation, getEvaluator, getEvaluators, getFileName, getIssue, getMaxUtilityBid, getMinUtilityBid, getNrOfEvaluators, getReservationValue, getReservationValueUndiscounted, getReservationValueWithDiscount, getReservationValueWithDiscount, getType, getUtilityWithDiscount, getUtilityWithDiscount, getWeight, getXMLRoot, isDiscounted, lock, normalizeChildren, normalizeWeights, setDiscount, setReservationValue, setWeight, toString, unlock, validateDiscount
public ConstraintUtilitySpace()
public ConstraintUtilitySpace(Domain domain)
public ConstraintUtilitySpace(Domain domain, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public ConstraintUtilitySpace(UtilitySpace us)
public SimpleElement toXML() throws java.io.IOException
UtilitySpace
toXML
in class UtilitySpace
null
when
there was an error.java.io.IOException
public double getUtility(Bid bid) throws java.lang.Exception
getUtility
in class UtilitySpace
bid
- of which we are interested in its utility.java.lang.Exception
- when bid is incomplete or invalid.public void checkReadyForNegotiation(Domain dom) throws java.lang.Exception
UtilitySpace
checkReadyForNegotiation
in class UtilitySpace
dom
- is the domain in which nego is taking placejava.lang.Exception
- if utility space is incomplete (@see isComplete());public boolean equals(java.lang.Object obj)
Object
.equals
in class UtilitySpace
public java.util.ArrayList<ZeroOutcomeContraint> getZeroOutcomeConstraints()
public void setZeroOutcomeConstraints(java.util.ArrayList<ZeroOutcomeContraint> zeroOutcomeConstraints)