public class OpponentModel extends java.lang.Object implements IOpponentModel
Constructor and Description |
---|
OpponentModel(PreferenceProfileManager pPreferenceProfileManager,
BidHistory pBidHistory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addBid(Bid pBid)
Adds the values of each issue of a bid to the preferenceprofilemanager
|
double |
getUtility(Bid pBid)
Returns the utility of a bid, but instead of the normal utility it is
based on the weights of each issues
|
java.util.HashMap<Issue,java.lang.Double> |
getWeights()
Returns a hashmap with the weights for each of the issues
|
public OpponentModel(PreferenceProfileManager pPreferenceProfileManager, BidHistory pBidHistory)
public void addBid(Bid pBid)
addBid
in interface IOpponentModel
public java.util.HashMap<Issue,java.lang.Double> getWeights()
public double getUtility(Bid pBid)
getUtility
in interface IOpponentModel