public class ConstraintUtilitySpace extends AbstractUtilitySpace
DISCOUNT_FACTOR, fileName, RESERVATION
Constructor and Description |
---|
ConstraintUtilitySpace() |
ConstraintUtilitySpace(ConstraintUtilitySpace us)
construct a clone of another utility space
|
ConstraintUtilitySpace(Domain domain) |
ConstraintUtilitySpace(Domain domain,
java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
UtilitySpace |
copy() |
boolean |
equals(java.lang.Object obj)
Uses the original equals of
Object . |
double |
getUtility(Bid bid) |
java.util.ArrayList<ZeroOutcomeContraint> |
getZeroOutcomeConstraints() |
java.lang.String |
isComplete()
Check if this utility space is complete and ready for negotiation.
|
void |
setZeroOutcomeConstraints(java.util.ArrayList<ZeroOutcomeContraint> zeroOutcomeConstraints) |
SimpleElement |
toXML()
Creates an xml representation (in the form of a SimpleElements) of the
utilityspace.
|
checkReadyForNegotiation, discount, getDiscountFactor, getDomain, getFileName, getMaxUtilityBid, getMinUtilityBid, getName, getReservationValue, getReservationValueUndiscounted, getReservationValueWithDiscount, getReservationValueWithDiscount, getUtilityWithDiscount, getUtilityWithDiscount, isDiscounted, setDiscount, setReservationValue, validateDiscount
public ConstraintUtilitySpace()
public ConstraintUtilitySpace(Domain domain)
public ConstraintUtilitySpace(Domain domain, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public ConstraintUtilitySpace(ConstraintUtilitySpace us)
public SimpleElement toXML() throws java.io.IOException
UtilitySpace
null
when
there was an error.java.io.IOException
public double getUtility(Bid bid)
bid
- of which we are interested in its utility.UtilitySpace.discount(double, double)
.public boolean equals(java.lang.Object obj)
Object
.equals
in class java.lang.Object
public java.util.ArrayList<ZeroOutcomeContraint> getZeroOutcomeConstraints()
public void setZeroOutcomeConstraints(java.util.ArrayList<ZeroOutcomeContraint> zeroOutcomeConstraints)
public UtilitySpace copy()
public java.lang.String isComplete()
UtilitySpace