public class IAMHaggler2012_Offering extends OfferingStrategy
Modifier and Type | Field and Description |
---|---|
protected double |
RISK_PARAMETER |
endNegotiation, helper, nextBid, omStrategy, opponentModel
negotiationSession
Constructor and Description |
---|
IAMHaggler2012_Offering()
Empty constructor for the BOA framework.
|
IAMHaggler2012_Offering(NegotiationSession negoSession,
OpponentModel model,
OMStrategy oms) |
Modifier and Type | Method and Description |
---|---|
double |
adjustDiscountFactor(double discountFactor) |
BidDetails |
determineNextBid()
Determines the next bid the agent will offer to the opponent
|
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent
|
protected Matrix |
generateRiskFunction(double riskParameter)
Generate an n-by-m matrix representing the risk based utility for a given
utility-time combination.
|
protected double |
generateRiskFunction(double riskParameter,
double utility)
Generate the risk based utility for a given actual utility.
|
protected Bid |
getRandomBidInRange(double lowerBound,
double upperBound)
Get a random bid in a given utility range.
|
protected double |
getTarget(double opponentUtility,
double time) |
void |
init(NegotiationSession negoSession,
OpponentModel model,
OMStrategy oms,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Init required for the Decoupled Framework.
|
protected Bid |
proposeNextBid(Bid opponentBid) |
getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
endSession, getParameters, init
public IAMHaggler2012_Offering()
public IAMHaggler2012_Offering(NegotiationSession negoSession, OpponentModel model, OMStrategy oms) throws java.lang.Exception
java.lang.Exception
public void init(NegotiationSession negoSession, OpponentModel model, OMStrategy oms, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init
in class OfferingStrategy
negoSession
- state of the negotiation.model
- opponent model which may be used.oms
- opponent model strategy which may be used.parameters
- optional parameters for the offering strategy.java.lang.Exception
- if the offering strategy fails to initialize.public BidDetails determineOpeningBid()
OfferingStrategy
determineOpeningBid
in class OfferingStrategy
public BidDetails determineNextBid()
OfferingStrategy
determineNextBid
in class OfferingStrategy
protected Bid proposeNextBid(Bid opponentBid) throws java.lang.Exception
java.lang.Exception
protected double getTarget(double opponentUtility, double time)
protected Matrix generateRiskFunction(double riskParameter)
riskParameter
- The risk parameter.protected double generateRiskFunction(double riskParameter, double utility)
riskParameter
- The risk parameter.utility
- The actual utility to calculate the risk based utility from.protected Bid getRandomBidInRange(double lowerBound, double upperBound) throws java.lang.Exception
lowerBound
- The lower bound on utility.upperBound
- The upper bound on utility.java.lang.Exception
public double adjustDiscountFactor(double discountFactor)