public class opponentOffers
extends java.lang.Object
Constructor and Description |
---|
opponentOffers(UtilitySpace utilitySpace,
double avgFlag)
creating and initializing the opponent's offers and data structure
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Issue> |
getIssuesByCounts()
returns a list of the issues, sorted by their the agent's current belief of their importance
to the opponent (assuming that a lesser variance in values for an issue implies a
higher importance for that issue.
|
double |
getOppConcessionRate()
get the opponent's concession rate
|
java.util.Vector<Bid> |
getOpponentBidsAboveThreshold(double threshold) |
double |
getOpponentUtility(Bid b)
calculates an approximation of the opponent's utility for the given bid
issue weights are determined as explained in getIssueWeights method
value utilities are determined as explained in getValueUtility method
|
double |
getOurAvgUtilFromOppOffers()
get our average utility from the opponent's offer
|
double |
getOurMaxUtilFromOppOffers()
get our max utility from the opponent's offer
|
void |
printUtilityFunction()
printing the utility function of the opponent
|
java.lang.String |
toString()
overriding toString method
|
boolean |
updateBid(Bid b)
invoked when a new bid is proposed by the opponent.
|
void |
updateWeightsAndUtils()
recalculate weights based on new learning
|
public opponentOffers(UtilitySpace utilitySpace, double avgFlag)
public boolean updateBid(Bid b) throws java.lang.Exception
b
- receiveMessage the bidding statistics using bid b.java.lang.Exception
public double getOurAvgUtilFromOppOffers()
public double getOurMaxUtilFromOppOffers()
public double getOppConcessionRate()
public double getOpponentUtility(Bid b)
b
- bid from which the utility must be estimated.public void updateWeightsAndUtils()
public java.util.List<Issue> getIssuesByCounts()
public void printUtilityFunction()
public java.util.Vector<Bid> getOpponentBidsAboveThreshold(double threshold)
public java.lang.String toString()
toString
in class java.lang.Object