public class OfferBestN extends OMStrategy
model
negotiationSession
Constructor and Description |
---|
OfferBestN()
Empty constructor used for reflexion.
|
OfferBestN(NegotiationSession negotiationSession,
OpponentModel model,
int n)
Normal constructor used to initialize the OfferBestN opponent model
strategy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateOM()
Specifies that the opponent model may be updated when the current time is
smaller than the deadline.
|
BidDetails |
getBid(java.util.List<BidDetails> allBids)
First this method determines the N best bids given the array 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 agent by storing the size of the domain, and checking if
the domain is large.
|
getBid, getBid, init, loadData, setOpponentModel, storeData
endSession, init
public OfferBestN()
public OfferBestN(NegotiationSession negotiationSession, OpponentModel model, int n)
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 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
allBids
- list of similarly preferred bids.public boolean canUpdateOM()
canUpdateOM
in class OMStrategy
public java.util.Set<BOAparameter> getParameters()
BOA
#init(...)
calls to the
components.getParameters
in class BOA