public class BayesianAgent extends Agent
Modifier and Type | Field and Description |
---|---|
protected OpponentModel |
fOpponentModel |
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
BayesianAgent() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action.
|
protected void |
dumpDistancesToLog(int pRound) |
java.lang.String |
getName() |
SupportedNegotiationSetting |
getSupportedNegotiationSetting()
Indicates what negotiation settings are supported by an agent, such as
linear or non-linear utility spaces.
|
java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
protected boolean |
isAcceptableAfter(double offeredutil,
Bid lnextBid)
Returns whether the offered utility is acceptable after computing a
counter offer.
|
protected boolean |
isAcceptableBefore(double offeredutil)
Returns whether the offered utility is acceptable before computing a
counter offer.
|
protected void |
prepareOpponentModel() |
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
protected OpponentModel fOpponentModel
public java.lang.String getVersion()
getVersion
in class Agent
public java.lang.String getName()
public void init()
Agent
protected void prepareOpponentModel()
public void ReceiveMessage(Action opponentAction)
Agent
ReceiveMessage
in class Agent
public Action chooseAction()
Agent
chooseAction
in class Agent
protected boolean isAcceptableAfter(double offeredutil, Bid lnextBid) throws java.lang.Exception
java.lang.Exception
protected boolean isAcceptableBefore(double offeredutil) throws java.lang.Exception
java.lang.Exception
protected void dumpDistancesToLog(int pRound)
public SupportedNegotiationSetting getSupportedNegotiationSetting()
Agent
getSupportedNegotiationSetting
in class Agent