public class NonlinearUtilitySpace extends UtilitySpace
domain, fileName, fXMLRoot, spaceType
Constructor and Description |
---|
NonlinearUtilitySpace()
Creates an empty nonlinear utility space.
|
NonlinearUtilitySpace(Domain domain) |
NonlinearUtilitySpace(Domain domain,
java.lang.String fileName) |
NonlinearUtilitySpace(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.lang.String |
toString() |
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, unlock, validateDiscount
public NonlinearUtilitySpace()
public NonlinearUtilitySpace(Domain domain)
public NonlinearUtilitySpace(Domain domain, java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public NonlinearUtilitySpace(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.lang.String toString()
toString
in class UtilitySpace