public class AlternatingOffersBilateralAtomicNegoSession extends BilateralAtomicNegotiationSession
Timeline
.Modifier and Type | Field and Description |
---|---|
Agent |
currentAgent |
java.util.ArrayList<NegotiationOutcome> |
MACoutcomes |
NegotiationOutcome |
no |
protected Protocol |
protocol |
protected java.lang.String |
startingAgent |
protected boolean |
startingWithA |
protected java.util.Date |
startTime |
protected long |
startTimeMillies |
boolean |
stopNegotiation
stopNegotiation indicates that the session has now ended.
|
protected java.lang.Integer |
totalTime
Default setting is 3min.
|
additionalLog, agentA, agentAname, agentAparams, agentB, agentBname, agentBparams, bidSpace, fAgentABids, fAgentBBids, finalRound, lastAction, lastBid, matchDataLogger, omMeasuresResults, spaceA, spaceB
Constructor and Description |
---|
AlternatingOffersBilateralAtomicNegoSession(Protocol protocol,
Agent agentA,
Agent agentB,
java.lang.String agentAname,
java.lang.String agentBname,
UtilitySpace spaceA,
UtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams,
java.lang.String startingAgent)
load the runtime objects to start negotiation
|
Modifier and Type | Method and Description |
---|---|
protected void |
badOutcome(double time,
java.lang.String logMsg)
Creates a bad Outcome, which is an outcome with an error
|
protected void |
checkAgentActivity(Agent agent)
This is the running method of the negotiation thread.
|
protected void |
createBadMACOutcomes() |
protected void |
createMACOutcomes(double time)
Creates the different outcomes for an agent that is using a MAC Calls
createOutcome which actually creates the outcome to be logged.
|
void |
createOutcome(Bid lastBid,
double time,
boolean isMac,
OutcomeTuple outcomeTuple,
java.lang.String acceptedBy)
Creates an actual outcome object that can be logged
|
NegotiationOutcome |
getNegotiationOutcome() |
java.lang.String |
getStartingAgent() |
protected Action |
intercept(Action lastAction)
Does not usually intercept anything, but when "oneSidedBidding" is
enabled in the settings, then agent A's bids are ignored, and replaced by
the bid that has max utility for A.
|
void |
JudgeTimeout()
This is called whenever the protocol is timed-out.
|
Agent |
otherAgent(Agent ag) |
void |
run()
a parent thread will call this via the Thread.run() function.
|
void |
setStartingWithA(boolean val) |
void |
setTotalTime(int val) |
addAdditionalLog, addNegotiationEventListener, fireLogMessage, fireNegotiationActionEvent, fireNegotiationActionEvent, getAgentA, getAgentABids, getAgentAname, getAgentAparams, getAgentAUtilitySpace, getAgentB, getAgentBBids, getAgentBname, getAgentBparams, getAgentBUtilitySpace, getLastBid, getLog, getNegotiationPathA, getNegotiationPathB, getNrOfBids, getOpponentUtility, getOpponentWeight, getTestNumber, getTournamentNumber, removeNegotiationEventListener, setLog
public boolean stopNegotiation
public NegotiationOutcome no
protected java.lang.String startingAgent
protected boolean startingWithA
protected java.util.Date startTime
protected long startTimeMillies
protected java.lang.Integer totalTime
protected Protocol protocol
public Agent currentAgent
public java.util.ArrayList<NegotiationOutcome> MACoutcomes
public AlternatingOffersBilateralAtomicNegoSession(Protocol protocol, Agent agentA, Agent agentB, java.lang.String agentAname, java.lang.String agentBname, UtilitySpace spaceA, UtilitySpace spaceB, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams, java.lang.String startingAgent) throws java.lang.Exception
java.lang.Exception
public void run()
protected Action intercept(Action lastAction) throws java.lang.Exception
java.lang.Exception
protected void badOutcome(double time, java.lang.String logMsg) throws java.lang.Exception
java.lang.Exception
protected void createMACOutcomes(double time) throws java.lang.Exception
java.lang.Exception
protected void createBadMACOutcomes()
protected void checkAgentActivity(Agent agent)
public void JudgeTimeout()
public void createOutcome(Bid lastBid, double time, boolean isMac, OutcomeTuple outcomeTuple, java.lang.String acceptedBy) throws java.lang.Exception
java.lang.Exception
public NegotiationOutcome getNegotiationOutcome()
public java.lang.String getStartingAgent()
getStartingAgent
in class BilateralAtomicNegotiationSession
public void setStartingWithA(boolean val)
public void setTotalTime(int val)