public final class TheFawkes_OMS extends OMStrategy
model
negotiationSession
Constructor and Description |
---|
TheFawkes_OMS()
Empty constructor used for reflexion.
|
TheFawkes_OMS(NegotiationSession negotiationSession,
OpponentModel model)
Normal constructor used to initialize the OfferBestN opponent model strategy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateOM() |
BidDetails |
getBid(java.util.List<BidDetails> list)
Returns a bid selected using the opponent model from the given set of
similarly preferred bids.
|
int |
getSecondBestCount() |
void |
init(NegotiationSession nSession,
OpponentModel oppModel,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework.
|
getBid, getBid, init, loadData, setOpponentModel, storeData
endSession, getParameters, init
public TheFawkes_OMS()
public TheFawkes_OMS(NegotiationSession negotiationSession, OpponentModel model)
negotiationSession
- symbolizing the negotiation state.model
- opponent model strategy used by this opponent model strategy.n
- amount of best bids from which a random bid is selected.public void init(NegotiationSession nSession, OpponentModel oppModel, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OMStrategy
init
in class OMStrategy
nSession
- state of the negotiation.oppModel
- opponent model to which the opponent model strategy applies.parameters
- for the opponent model strategy, for example the maximum
receiveMessage time.java.lang.Exception
- thrown when initializing the opponent model strategy fails.public BidDetails getBid(java.util.List<BidDetails> list)
OMStrategy
getBid
in class OMStrategy
list
- set of similarly preferred bidspublic int getSecondBestCount()
public boolean canUpdateOM()
canUpdateOM
in class OMStrategy