public class ANAC2013BOAExample_Offering extends OfferingStrategy
endNegotiation, helper, nextBid, omStrategy, opponentModel
negotiationSession
Constructor and Description |
---|
ANAC2013BOAExample_Offering()
Empty constructor called by BOA framework.
|
Modifier and Type | Method and Description |
---|---|
BidDetails |
determineNextBid()
Offer a random bid with a utility higher than the target breakoff.
|
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent
|
void |
endSession(NegotiationResult result)
Method called at the end of a negotiation.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel opponentModel,
OMStrategy omStrategy,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the offering strategy.
|
getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
getParameters, init
public ANAC2013BOAExample_Offering()
public void init(NegotiationSession negotiationSession, OpponentModel opponentModel, OMStrategy omStrategy, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OfferingStrategy
init
in class OfferingStrategy
negotiationSession
- state of the negotiation.opponentModel
- opponent model which may be used.omStrategy
- 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()
determineNextBid
in class OfferingStrategy
public void endSession(NegotiationResult result)
endSession
in class BOA
result
- of the negotiation.