public abstract class OfferingStrategy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SharedAgentState |
helper
Reference to helper class used if there are dependencies between
the acceptance condition an offering strategy
|
protected NegotiationSession |
negotiationSession
Reference to the negotiation session
|
protected BidDetails |
nextBid
The next bid the agent plans to present
|
protected OMStrategy |
omStrategy
Reference to the opponent model strategy
|
protected OpponentModel |
opponentModel
Reference to the opponent model
|
Constructor and Description |
---|
OfferingStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract BidDetails |
determineNextBid()
determines the next bid the agent will offer to the opponent
|
abstract BidDetails |
determineOpeningBid()
determines the first bid to be offered by the agent
|
SharedAgentState |
getHelper() |
BidDetails |
getNextBid() |
void |
init(NegotiationSession negotiationSession,
OpponentModel opponentModel,
OMStrategy omStrategy,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the offering strategy.
|
void |
setNextBid(BidDetails counterBid) |
protected BidDetails nextBid
protected NegotiationSession negotiationSession
protected OpponentModel opponentModel
protected OMStrategy omStrategy
protected SharedAgentState helper
public void init(NegotiationSession negotiationSession, OpponentModel opponentModel, OMStrategy omStrategy, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
negotiationSession
- parameters
- java.lang.Exception
public abstract BidDetails determineOpeningBid()
public abstract BidDetails determineNextBid()
public BidDetails getNextBid()
public void setNextBid(BidDetails counterBid)
public SharedAgentState getHelper()