public class NTFTstrategy extends OMStrategy
model
negotiationSession
Constructor and Description |
---|
NTFTstrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateOM()
Method which specifies when the opponent model may be updated.
|
BidDetails |
getBid(java.util.List<BidDetails> bidsInRange)
Selects a random bid from the best N bids, where N depends on the
domain size.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model)
Initializes the agent by storing the size of the domain, and checking
if the domain is large.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework.
|
getBid, getBid, loadData, setOpponentModel, storeData
endSession, getParameters, init
public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OMStrategy
init
in class OMStrategy
negotiationSession
- state of the negotiation.model
- 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 void init(NegotiationSession negotiationSession, OpponentModel model)
init
in class OMStrategy
negotiationSession
- state of the negotiation.model
- opponent model used in conjunction with this opponent modeling strategy.public BidDetails getBid(java.util.List<BidDetails> bidsInRange)
getBid
in class OMStrategy
set
- of similarly preferred bids.public boolean canUpdateOM()
canUpdateOM
in class OMStrategy