public class BestBid extends OMStrategy
model
negotiationSession
Constructor and Description |
---|
BestBid()
Empty constructor for the BOA framework.
|
BestBid(NegotiationSession negotiationSession,
OpponentModel model)
Normal constructor used to initialize the BestBid opponent model
strategy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateOM()
The opponent model may be updated, unless the time is higher than a given
constant.
|
BidDetails |
getBid(java.util.List<BidDetails> allBids)
Returns the best bid for the opponent given a set of similarly preferred
bids.
|
java.util.Set<BOAparameter> |
getParameters()
returns the set of available parameters of this BOA component.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the opponent model strategy.
|
getBid, getBid, init, loadData, setOpponentModel, storeData
endSession, init
public BestBid()
public BestBid(NegotiationSession negotiationSession, OpponentModel model)
negotiationSession
- symbolizing the negotiation state.model
- used by the opponent model strategy.public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init
in class OMStrategy
negotiationSession
- state of the negotiation.model
- opponent model used in conjunction with this opponent modeling
strategy.parameters
- set of parameters for this opponent model strategy.java.lang.Exception
- thrown when initializing the opponent model strategy fails.public BidDetails getBid(java.util.List<BidDetails> allBids)
getBid
in class OMStrategy
list
- of the bids considered for offering.public boolean canUpdateOM()
canUpdateOM
in class OMStrategy
public java.util.Set<BOAparameter> getParameters()
BOA
#init(...)
calls to the
components.getParameters
in class BOA