public class OpponentModel
extends java.lang.Object
Constructor and Description |
---|
OpponentModel(java.util.ArrayList<Issue> iList,
double discountFactor,
Timeline tl)
Constructor, needs a list of Issues for this domain
|
Modifier and Type | Method and Description |
---|---|
void |
addOpponentBid(Bid lastOpponentBid)
Updates the model using the received bid
|
double |
getEstimatedUtility(Bid bid)
Estimates the utility of a particular bid for our opponent
|
java.util.HashMap<Issue,java.lang.Double> |
getIssueWeights()
returns the weight our opponent gives to every issue as a HashMap
wherein each Issue refers to the weight it gets
|
java.lang.String |
getPreferredValueForIssue(Issue i)
Gets the estimated most-preferred value that our opponent wants for given Issue
|
boolean |
isProperlyInitialized()
Returns true iff this opponentmodel was properly initialized (ie.
|
boolean |
isStalling(int consecutiveDiff)
Returns true iff we suspect our opponent might be stalling
|
public java.util.HashMap<Issue,java.lang.Double> getIssueWeights()
public java.lang.String getPreferredValueForIssue(Issue i)
i
- Issuepublic double getEstimatedUtility(Bid bid)
bid
- Bidjava.lang.Exception
public boolean isProperlyInitialized()
public void addOpponentBid(Bid lastOpponentBid)
lastOpponentBid
- public boolean isStalling(int consecutiveDiff)
consecutiveDiff
- number of consecutive unique bids our opponent has made