public class AgentXFrequencyModel extends OpponentModel
opponentUtilitySpace
negotiationSession
Constructor and Description |
---|
AgentXFrequencyModel() |
Modifier and Type | Method and Description |
---|---|
double |
getBidEvaluation(Bid bid)
Calculates the utility to our opponent of the bid received as a parameter
using the current knowledge given by our opponent model
|
double |
getEvaluationOfValue(int issueIndex,
ValueDiscrete valueOfIssue)
Gives the normalized value rank of some value within a certain Issue
|
DiscreteIssueProcessor |
getIssueProcessor()
Gives the discreteIssueProcessor for this opponent model
|
java.lang.String |
getName() |
UtilitySpace |
getOpponentUtilitySpace() |
DiscreteValueProcessor |
getValueProcessor(IssueDiscrete i)
Returns a DiscreteValueProcessor, allowing the use of several methods
|
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)
Creates an opponent model for the given utility space
|
void |
updateModel(Bid b,
double time)
Processes a bid, possibly changing value ranks for the internal opponent model.
|
cleanUp, getIssueWeights, init, isCleared, loadData, setOpponentUtilitySpace, setOpponentUtilitySpace, storeData, updateModel
endSession, getParameters
public void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init
in class OpponentModel
u
- The utility spacejava.lang.Exception
public DiscreteValueProcessor getValueProcessor(IssueDiscrete i)
i
- The issue for which a ValueProcessor is neededpublic DiscreteIssueProcessor getIssueProcessor()
public void updateModel(Bid b, double time)
updateModel
in class OpponentModel
b
- The bid done by the opponenttime
- Time at which the bid was donepublic double getEvaluationOfValue(int issueIndex, ValueDiscrete valueOfIssue)
issueIndex
- The index of the issue. Same index as in the ArrayList provided by
utilitySpace.getDomain().getIssues()valueOfIssue
- The value from that issue for which the normalized rank is requiredpublic double getBidEvaluation(Bid bid)
getBidEvaluation
in class OpponentModel
bid
- public double getWeight(Issue issue)
OpponentModel
getWeight
in class OpponentModel
issue
- from which the weight should be returnedpublic UtilitySpace getOpponentUtilitySpace()
getOpponentUtilitySpace
in class OpponentModel
public java.lang.String getName()
getName
in class OpponentModel