public abstract class OMStrategy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected OpponentModel |
model
Reference to the opponent model
|
protected NegotiationSession |
negotiationSession
Reference to the object which holds all information about the negotiation
|
Constructor and Description |
---|
OMStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canUpdateOM() |
abstract BidDetails |
getBid(java.util.List<BidDetails> bidsInRange)
Returns a bid selected using the opponent model from the given
set of similarly preferred bids.
|
BidDetails |
getBid(OutcomeSpace space,
double targetUtility)
Use this method in case no range is specified, but only a target utility.
|
BidDetails |
getBid(OutcomeSpace space,
Range range)
Returns a bid selected using the opponent model with a utility
in the given range.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model) |
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters) |
protected NegotiationSession negotiationSession
protected OpponentModel model
public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
java.lang.Exception
public void init(NegotiationSession negotiationSession, OpponentModel model)
public abstract BidDetails getBid(java.util.List<BidDetails> bidsInRange)
bidsInRange
- set of similarly preferred bidspublic BidDetails getBid(OutcomeSpace space, Range range)
space
- of all possible outcomesrange
- of utilitypublic BidDetails getBid(OutcomeSpace space, double targetUtility)
space
- of all possible outcomesrange
- of utilitypublic abstract boolean canUpdateOM()