public abstract class OptimalBidder extends Agent
Modifier and Type | Field and Description |
---|---|
protected static int |
ownTotalRounds |
protected static int |
partitions |
protected static Issue |
pie |
protected double |
rv |
protected static java.util.HashMap<java.lang.Integer,Value> |
values |
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
OptimalBidder() |
Modifier and Type | Method and Description |
---|---|
abstract double |
bid(int j)
computation of the bid for round j
|
Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action.
|
java.lang.String |
getName() |
int |
getOwnRoundsLeft() |
int |
getRound() |
int |
getRoundsLeft() |
int |
getTotalRounds() |
double |
getTotalTime() |
abstract void |
getValues()
Getting the values
|
java.lang.String |
getVersion() |
void |
init()
Init is called when a next session starts with the same opponent.
|
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getSupportedNegotiationSetting, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
protected double rv
protected static int partitions
protected static int ownTotalRounds
protected static java.util.HashMap<java.lang.Integer,Value> values
protected static Issue pie
public abstract double bid(int j)
round
- jpublic abstract void getValues() throws java.lang.Exception
void
- java.lang.Exception
public void init()
public java.lang.String getVersion()
getVersion
in class Agent
public java.lang.String getName()
public void ReceiveMessage(Action opponentAction)
Agent
ReceiveMessage
in class Agent
public Action chooseAction()
Agent
chooseAction
in class Agent
public int getRound()
public int getRoundsLeft()
public int getOwnRoundsLeft()
public int getTotalRounds()
public double getTotalTime()