public class WinnerAgent2 extends Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
WinnerAgent2() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction()
Choose the next action.
|
java.lang.String |
getVersion()
Retrieve the version.
|
void |
init()
init is called when a next session starts with the same opponent.
|
void |
ReceiveMessage(Action opponentAction)
Receive a message from the opponent.
|
void |
shuffle(Offer[] array)
Sort the offers in the array in random order.
|
void |
updateBids(double ourW)
Update the bids in the bids array.
|
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getSupportedNegotiationSetting, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
public void init()
public java.lang.String getVersion()
getVersion
in class Agent
public void ReceiveMessage(Action opponentAction)
ReceiveMessage
in class Agent
opponentAction
- the action of the opponentspublic Action chooseAction()
chooseAction
in class Agent
public void updateBids(double ourW) throws java.lang.Exception
java.lang.Exception
public void shuffle(Offer[] array)
array
- - an array of offers