public class SimpleTitForTatPN extends Agent implements PocketNegotiatorAgent
Modifier and Type | Field and Description |
---|---|
protected UtilitySpace |
otherUtilitySpace |
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
SimpleTitForTatPN() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action.
|
Action |
getAction()
ask the agent for its next action.
|
java.lang.String |
getName() |
void |
handleAction(Action act)
the agent's opponent did an action.
|
void |
init()
extends Agent
|
void |
initPN(UtilitySpace mySide,
UtilitySpace otherSide,
Timeline tl)
implements PocketNegotiatorAgent
|
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
void |
updateProfiles(UtilitySpace myUtilities,
UtilitySpace opponentUtilities)
Change own and other side utility profile to the given one.
|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getSupportedNegotiationSetting, getUniqueIdentifier, getUtility, getVersion, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
protected UtilitySpace otherUtilitySpace
public java.lang.String getName()
public void ReceiveMessage(Action opponentAction)
Agent
ReceiveMessage
in class Agent
public Action chooseAction()
Agent
chooseAction
in class Agent
public void initPN(UtilitySpace mySide, UtilitySpace otherSide, Timeline tl)
initPN
in interface PocketNegotiatorAgent
tl
- the Timeline
keeping track of where we are in the
negotiation. We pass it here because the init may already need
it.public void handleAction(Action act)
PocketNegotiatorAgent
handleAction
in interface PocketNegotiatorAgent
public Action getAction()
PocketNegotiatorAgent
getAction
in interface PocketNegotiatorAgent
public void updateProfiles(UtilitySpace myUtilities, UtilitySpace opponentUtilities)
PocketNegotiatorAgent
updateProfiles
in interface PocketNegotiatorAgent
myUtilities
- the new UtilitySpace
for the bot to use as his own
utility space.opponentUtilities
- the new UtilitySpace
for the bot to use as his
opponent utility space.