public abstract class BilateralAtomicNegotiationSession
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
SimpleElement |
additionalLog |
protected Agent |
agentA |
protected java.lang.String |
agentAname |
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> |
agentAparams |
protected Agent |
agentB |
protected java.lang.String |
agentBname |
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> |
agentBparams |
protected BidSpace |
bidSpace |
protected java.util.ArrayList<BidPointTime> |
fAgentABids |
protected java.util.ArrayList<BidPointTime> |
fAgentBBids |
protected int |
finalRound |
protected Action |
lastAction |
protected Bid |
lastBid |
protected CSVlogger |
matchDataLogger |
protected OpponentModelMeasuresResults |
omMeasuresResults |
protected Protocol |
protocol |
protected AbstractUtilitySpace |
spaceA |
protected AbstractUtilitySpace |
spaceB |
Constructor and Description |
---|
BilateralAtomicNegotiationSession(Protocol protocol,
Agent agentA,
Agent agentB,
java.lang.String agentAname,
java.lang.String agentBname,
AbstractUtilitySpace spaceA,
AbstractUtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalLog(SimpleElement pElem) |
void |
addNegotiationEventListener(NegotiationEventListener listener) |
protected void |
fireLogMessage(java.lang.String source,
java.lang.String log) |
protected void |
fireNegotiationActionEvent(Agent actorP,
Action actP,
int roundP,
long elapsed,
double time,
double utilA,
double utilB,
double utilADiscount,
double utilBDiscount,
java.lang.String remarks,
boolean finalActionEvent) |
protected void |
fireNegotiationActionEvent(Agent actorP,
Action actP,
int roundP,
long elapsed,
double utilA,
double utilB,
double utilADiscount,
double utilBDiscount,
java.lang.String remarks,
boolean finalActionEvent)
Deprecated.
|
Agent |
getAgentA() |
java.util.ArrayList<BidPointTime> |
getAgentABids() |
java.lang.String |
getAgentAname() |
java.util.HashMap<AgentParameterVariable,AgentParamValue> |
getAgentAparams() |
AbstractUtilitySpace |
getAgentAUtilitySpace() |
Agent |
getAgentB() |
java.util.ArrayList<BidPointTime> |
getAgentBBids() |
java.lang.String |
getAgentBname() |
java.util.HashMap<AgentParameterVariable,AgentParamValue> |
getAgentBparams() |
AbstractUtilitySpace |
getAgentBUtilitySpace() |
Bid |
getLastBid() |
java.lang.String |
getLog() |
double[][] |
getNegotiationPathA() |
double[][] |
getNegotiationPathB() |
int |
getNrOfBids() |
double |
getOpponentUtility(Agent pAgent,
Bid pBid) |
double |
getOpponentWeight(Agent pAgent,
int pIssueID) |
abstract java.lang.String |
getStartingAgent() |
int |
getTestNumber() |
int |
getTournamentNumber() |
void |
removeNegotiationEventListener(NegotiationEventListener listener) |
void |
setLog(java.lang.String str) |
protected Agent agentA
protected Agent agentB
protected AbstractUtilitySpace spaceA
protected AbstractUtilitySpace spaceB
protected java.lang.String agentAname
protected java.lang.String agentBname
protected Bid lastBid
protected Action lastAction
protected Protocol protocol
protected int finalRound
protected java.util.ArrayList<BidPointTime> fAgentABids
protected java.util.ArrayList<BidPointTime> fAgentBBids
protected BidSpace bidSpace
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams
protected CSVlogger matchDataLogger
protected OpponentModelMeasuresResults omMeasuresResults
public SimpleElement additionalLog
public BilateralAtomicNegotiationSession(Protocol protocol, Agent agentA, Agent agentB, java.lang.String agentAname, java.lang.String agentBname, AbstractUtilitySpace spaceA, AbstractUtilitySpace spaceB, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams) throws java.lang.Exception
java.lang.Exception
public void addNegotiationEventListener(NegotiationEventListener listener)
public void removeNegotiationEventListener(NegotiationEventListener listener)
protected void fireNegotiationActionEvent(Agent actorP, Action actP, int roundP, long elapsed, double time, double utilA, double utilB, double utilADiscount, double utilBDiscount, java.lang.String remarks, boolean finalActionEvent)
@Deprecated protected void fireNegotiationActionEvent(Agent actorP, Action actP, int roundP, long elapsed, double utilA, double utilB, double utilADiscount, double utilBDiscount, java.lang.String remarks, boolean finalActionEvent)
protected void fireLogMessage(java.lang.String source, java.lang.String log)
public Bid getLastBid()
public int getNrOfBids()
public double[][] getNegotiationPathA()
public java.util.ArrayList<BidPointTime> getAgentABids()
public java.util.ArrayList<BidPointTime> getAgentBBids()
public double[][] getNegotiationPathB()
public double getOpponentUtility(Agent pAgent, Bid pBid) throws java.lang.Exception
java.lang.Exception
public double getOpponentWeight(Agent pAgent, int pIssueID) throws java.lang.Exception
pAgent
- pIssueID
- AdditiveUtilitySpace
java.lang.Exception
public void addAdditionalLog(SimpleElement pElem)
public void setLog(java.lang.String str)
public java.lang.String getLog()
public java.lang.String getAgentAname()
public java.lang.String getAgentBname()
public int getTournamentNumber()
public int getTestNumber()
public abstract java.lang.String getStartingAgent()
public java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentAparams()
public java.util.HashMap<AgentParameterVariable,AgentParamValue> getAgentBparams()
public Agent getAgentA()
public Agent getAgentB()
public AbstractUtilitySpace getAgentAUtilitySpace()
public AbstractUtilitySpace getAgentBUtilitySpace()