public class TheNegotiator_Offering extends OfferingStrategy
endNegotiation, helper, nextBid, omStrategy, opponentModel
negotiationSession
Constructor and Description |
---|
TheNegotiator_Offering()
Empty constructor for the BOA framework.
|
Modifier and Type | Method and Description |
---|---|
BidDetails |
determineNextBid()
Determine the next bid.
|
BidDetails |
determineOffer(int phase,
double threshold)
Determine what (counter)offer should be made in a given phase with
a minimum threshold.
|
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent
|
Bid |
getBestPartnerBids(double threshold)
Get a partner bid which has a utility of at least a certain
value.
|
Bid |
getOwnBidBetween(double lowerThres,
double upperThres) |
Bid |
getOwnBidBetween(double lowerThres,
double upperThres,
int counter)
Get a random bid between two given thresholds.
|
double |
getUpperThreshold(double threshold,
double percentage)
Calculate the upperthreshold based on the lowerthreshold and a given percentage.
|
void |
init(NegotiationSession negoSession,
OpponentModel model,
OMStrategy oms,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Init required for the Decoupled Framework.
|
getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
endSession, getParameters, init
public TheNegotiator_Offering()
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 determineNextBid()
determineNextBid
in class OfferingStrategy
public BidDetails determineOffer(int phase, double threshold)
agentID
- of our agentphase
- of the negotationthreshold
- minimum thresholdpublic double getUpperThreshold(double threshold, double percentage)
threshold
- percentage
- public Bid getOwnBidBetween(double lowerThres, double upperThres)
public Bid getOwnBidBetween(double lowerThres, double upperThres, int counter)
lowerThres
- lowerbound thresholdupperThres
- upperbound thresholdpublic Bid getBestPartnerBids(double threshold)
threshold
- public BidDetails determineOpeningBid()
OfferingStrategy
determineOpeningBid
in class OfferingStrategy