public class PerfectIAMhagglerBayesianModel extends OpponentModel
Modifier and Type | Class and Description |
---|---|
static class |
PerfectIAMhagglerBayesianModel.Extreme |
opponentUtilitySpace
negotiationSession
Constructor and Description |
---|
PerfectIAMhagglerBayesianModel() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Removes references to the objects used by the opponent model.
|
protected void |
findMinMaxUtility()
Find the minimum and maximum utilities of the bids in the utility space.
|
agents.bayesianopponentmodel.EvaluatorHypothesis |
getBestHypothesis(int issue) |
double |
getBidEvaluation(Bid bid)
Determines the utility of a bid according to the preference profile.
|
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,
PerfectIAMhagglerBayesianModel.Extreme extreme) |
agents.bayesianopponentmodel.Hypothesis |
getHypothesis(int index) |
java.lang.String |
getName() |
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() |
double |
getWeight(Issue issue)
Returns the weight of a particular issue in the domain.
|
void |
init(NegotiationSession negotiationSession,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the model.
|
void |
setOpponentUtilitySpace(BilateralAtomicNegotiationSession session)
Method which may be overwritten by an opponent model to get access to the
opponent's utilityspace.
|
void |
setOpponentUtilitySpace(UtilitySpace opponentUtilitySpace)
Method which may be overwritten by an opponent model to get access to the
opponent's utilityspace.
|
void |
updateModel(Bid opponentBid,
double time)
Update the beliefs about the opponent, based on an observation.
|
getIssueWeights, init, isCleared, loadData, storeData, updateModel
endSession, getParameters
public void setOpponentUtilitySpace(BilateralAtomicNegotiationSession session)
OpponentModel
setOpponentUtilitySpace
in class OpponentModel
public void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OpponentModel
init
in class OpponentModel
negotiationSession
- reference to the state of the negotiationjava.lang.Exception
public double getBidEvaluation(Bid bid)
OpponentModel
getBidEvaluation
in class OpponentModel
bid
- of which the utility is calculated.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, double time)
updateModel
in class OpponentModel
opponentBid
- The opponent's bid that was observed.time
- at which the bid was offered.java.lang.Exception
protected void findMinMaxUtility() throws java.lang.Exception
java.lang.Exception
public double getWeight(Issue issue)
OpponentModel
getWeight
in class OpponentModel
issue
- from which the weight should be returnedpublic double getExtremeEvaluation(Evaluator evaluator, PerfectIAMhagglerBayesianModel.Extreme extreme)
public double getExpectedWeight(int number)
number
- The issue number.public agents.bayesianopponentmodel.EvaluatorHypothesis getBestHypothesis(int issue)
public agents.bayesianopponentmodel.Hypothesis getHypothesis(int index)
public UtilitySpace getOpponentUtilitySpace()
getOpponentUtilitySpace
in class OpponentModel
public java.lang.String getName()
getName
in class OpponentModel
public void cleanUp()
OpponentModel
cleanUp
in class OpponentModel
public void setOpponentUtilitySpace(UtilitySpace opponentUtilitySpace)
OpponentModel
setOpponentUtilitySpace
in class OpponentModel