public class NullStrategy extends OMStrategy
model
negotiationSession
Constructor and Description |
---|
NullStrategy()
Empty constructor used for reflexion.
|
NullStrategy(NegotiationSession negotiationSession)
Normal constructor used to initialize the NullStrategy opponent model
strategy.
|
NullStrategy(NegotiationSession negotiationSession,
double time) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateOM()
Returns true if the opponent model be updated, which is in this case if
the time is lower than the given threshold.
|
BidDetails |
getBid(java.util.List<BidDetails> allBids)
Returns a random bid from the give 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)
Initialize method to be used by the BOA framework.
|
getBid, getBid, init, loadData, setOpponentModel, storeData
endSession, init
public NullStrategy()
public NullStrategy(NegotiationSession negotiationSession, double time)
public NullStrategy(NegotiationSession negotiationSession)
negotiationSession
- symbolizing the negotiation state.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 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