public class OpponentModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<Bid> |
bidHistory
The history of bids this opponent has made
|
java.util.Map<IssueDiscrete,java.lang.Double> |
issueModel
Map containing the modeled issue weight for each issue.
|
java.util.Map<IssueDiscrete,java.util.Map<ValueDiscrete,java.lang.Integer>> |
valueCountModel
Map containing the observed count every value has been bid.
|
java.util.Map<IssueDiscrete,java.util.Map<ValueDiscrete,java.lang.Double>> |
valueWeightModel
Map containing the modeled value weight for each value in each issue.
|
Constructor and Description |
---|
OpponentModel(Domain domain,
Bid bid)
Constructs an new OpponentModel based on the first bid.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Bid> |
getBidHistory(double percentage) |
AdditiveUtilitySpace |
getUtilitySpace()
Generates an UtilitySpace that represents the modeled UtilitySpace of
this opponent.
|
java.lang.String |
toString() |
void |
updateModel(Bid bid)
Updates the model with a new bid that has been received.
|
public java.util.List<Bid> bidHistory
public java.util.Map<IssueDiscrete,java.lang.Double> issueModel
public java.util.Map<IssueDiscrete,java.util.Map<ValueDiscrete,java.lang.Integer>> valueCountModel
public java.util.Map<IssueDiscrete,java.util.Map<ValueDiscrete,java.lang.Double>> valueWeightModel
public java.util.List<Bid> getBidHistory(double percentage)
percentage
- The percentage (between 0 and 1) of the list, starting from
the end, that should be returned.public AdditiveUtilitySpace getUtilitySpace() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void updateModel(Bid bid) throws java.lang.Exception
bid
- The newest bid of our opponent.java.lang.Exception