public class SimpleAgentPN extends SimpleAgent implements PocketNegotiatorAgent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
SimpleAgentPN() |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
ask the agent for its next action.
|
void |
handleAction(Action act)
the agent's opponent did an action.
|
void |
initPN(UtilitySpace mySide,
UtilitySpace otherSide,
Timeline tl)
initializes the agent, with suggestions for utility space for mySide and
otherSide.
|
void |
updateProfiles(UtilitySpace my,
UtilitySpace other)
Change own and other side utility profile to the given one.
|
chooseAction, getName, getVersion, init, ReceiveMessage
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getSupportedNegotiationSetting, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
public void initPN(UtilitySpace mySide, UtilitySpace otherSide, Timeline tl)
PocketNegotiatorAgent
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 updateProfiles(UtilitySpace my, UtilitySpace other)
PocketNegotiatorAgent
updateProfiles
in interface PocketNegotiatorAgent
my
- the new UtilitySpace
for the bot to use as his own
utility space.other
- the new UtilitySpace
for the bot to use as his
opponent utility space.public void handleAction(Action act)
PocketNegotiatorAgent
handleAction
in interface PocketNegotiatorAgent
public Action getAction()
PocketNegotiatorAgent
getAction
in interface PocketNegotiatorAgent