public class IAMhagglerModel extends OpponentModel
Modifier and Type | Class and Description |
---|---|
static class |
IAMhagglerModel.Extreme |
negotiationSession, opponentUtilitySpace
Constructor and Description |
---|
IAMhagglerModel() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected void |
findMinMaxUtility()
Find the minimum and maximum utilities of the bids in the utility space.
|
EvaluatorHypothesis |
getBestHypothesis(int issue) |
double |
getBidEvaluation(Bid bid)
Determines the utility of the opponent according to the OpponentModel
|
double |
getExpectedUtility(Bid bid)
Get the expected utility of a bid.
|
double |
getExpectedWeight(int number)
Get the expected weight of a particular issue.
|
double |
getExtremeEvaluation(Evaluator evaluator,
IAMhagglerModel.Extreme extreme) |
Hypothesis |
getHypothesis(int index) |
double |
getNormalizedUtility(Bid bid)
Get the normalised utility of a bid.
|
double |
getNormalizedUtility(Bid bid,
boolean debug)
Get the normalised utility of a bid.
|
UtilitySpace |
getOpponentUtilitySpace() |
void |
init(NegotiationSession negotiationSession,
java.util.HashMap<java.lang.String,java.lang.Double> parameters) |
void |
updateModel(Bid opponentBid)
Update the beliefs about the opponent, based on an observation.
|
getDiscountedBidEvaluation, init, isCleared, setOpponentUtilitySpace
public void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init
in class OpponentModel
java.lang.Exception
public double getBidEvaluation(Bid bid)
OpponentModel
getBidEvaluation
in class OpponentModel
public double getNormalizedUtility(Bid bid) throws java.lang.Exception
bid
- The bid to get the normalised utility of.java.lang.Exception
public double getNormalizedUtility(Bid bid, boolean debug) throws java.lang.Exception
bid
- The bid to get the normalised utility of.debug
- Whether or not to output debugging informationjava.lang.Exception
public double getExpectedUtility(Bid bid) throws java.lang.Exception
bid
- The bid to get the expected utility of.java.lang.Exception
public void updateModel(Bid opponentBid)
updateModel
in class OpponentModel
opponentBid
- The opponent's bid that was observed.java.lang.Exception
protected void findMinMaxUtility() throws java.lang.Exception
java.lang.Exception
public double getExtremeEvaluation(Evaluator evaluator, IAMhagglerModel.Extreme extreme)
public double getExpectedWeight(int number)
number
- The issue number.public EvaluatorHypothesis getBestHypothesis(int issue)
public Hypothesis getHypothesis(int index)
public UtilitySpace getOpponentUtilitySpace()
getOpponentUtilitySpace
in class OpponentModel
public void cleanUp()
cleanUp
in class OpponentModel