public class OpponentModel
extends agents.bayesianopponentmodel.OpponentModel
Modifier and Type | Class and Description |
---|---|
static class |
OpponentModel.Extreme |
Constructor and Description |
---|
OpponentModel(UtilitySpace utilitySpace)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
findMinMaxUtility()
Find the minimum and maximum utilities of the bids in the utility space.
|
EvaluatorHypothesis |
getBestHypothesis(int issue) |
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,
OpponentModel.Extreme extreme) |
Bid |
getFirstBid()
Get the first bid.
|
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.
|
void |
printBestHypothesis()
Print the best hypothesis.
|
void |
printHypotheses()
Print the details of all of the hypotheses.
|
void |
updateBeliefs(Bid opponentBid,
long currentTime,
double totalTime)
Update the beliefs about the opponent, based on an observation.
|
public OpponentModel(UtilitySpace utilitySpace)
utilitySpace
- The utility space of the agent.agent
- The agent (used only for logging purposes).public double getNormalizedUtility(Bid bid) throws java.lang.Exception
getNormalizedUtility
in class agents.bayesianopponentmodel.OpponentModel
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
getExpectedUtility
in class agents.bayesianopponentmodel.OpponentModel
bid
- The bid to get the expected utility of.java.lang.Exception
public void updateBeliefs(Bid opponentBid, long currentTime, double totalTime) throws java.lang.Exception
opponentBid
- The opponent's bid that was observed.java.lang.Exception
protected void findMinMaxUtility() throws java.lang.Exception
findMinMaxUtility
in class agents.bayesianopponentmodel.OpponentModel
java.lang.Exception
public double getExtremeEvaluation(Evaluator evaluator, OpponentModel.Extreme extreme)
public double getExpectedWeight(int number)
getExpectedWeight
in class agents.bayesianopponentmodel.OpponentModel
number
- The issue number.public void printBestHypothesis()
public EvaluatorHypothesis getBestHypothesis(int issue)
public void printHypotheses()
public Bid getFirstBid()
public Hypothesis getHypothesis(int index)