public class OpMod extends OpponentModel
opponentUtilitySpace
negotiationSession
Constructor and Description |
---|
OpMod() |
Modifier and Type | Method and Description |
---|---|
double |
getGroupUtility(Bid bid,
double selfWeight)
Computes the product of all utilities for the input
Bid . |
AdditiveUtilitySpace |
getOpSpace(java.lang.String name)
Returns the
AdditiveUtilitySpace belonging to the provided party. |
void |
init(NegotiationSession negotiationSession)
|
java.lang.String |
toString() |
void |
updateModel(Bid arg0,
double arg1)
Unused silly method which is not needed.
|
void |
updateModel(Bid bid,
java.lang.String sender)
Updates the opponent
AdditiveUtilitySpace (predicted utility
space). |
cleanUp, getBidEvaluation, getIssueWeights, getName, getOpponentUtilitySpace, getWeight, init, isCleared, loadData, setOpponentUtilitySpace, setOpponentUtilitySpace, storeData, updateModel
endSession, getParameters
public void init(NegotiationSession negotiationSession)
init
in class OpponentModel
negotiationSession
- public void updateModel(Bid bid, java.lang.String sender) throws java.lang.Exception
AdditiveUtilitySpace
(predicted utility
space).bid
- The Bid
offered by the opponentsender
- The name of the opponentjava.lang.Exception
public double getGroupUtility(Bid bid, double selfWeight) throws java.lang.Exception
Bid
.bid
- which is the bid to compute the groupUtility forjava.lang.Exception
public AdditiveUtilitySpace getOpSpace(java.lang.String name)
AdditiveUtilitySpace
belonging to the provided party.name
- which is the name of the provided partyAdditiveUtilitySpace
public java.lang.String toString()
toString
in class java.lang.Object
public void updateModel(Bid arg0, double arg1)
updateModel
in class OpponentModel
arg0
- to receiveMessage the model with.arg1
- at which the bid was offered.