public class Tournament
extends java.lang.Object
implements java.io.Serializable
Protocol
s using
getSessions()
. These Protocol
s (which are actually just
negotiation sessions) are then run by TournamentRunner
, one by one,
in TournamentRunner
.run().
(Tournament contains the information for only one negotiation if you choose
Negotiation Session!).
Only ONE ProfileValue is allowed in the variables. Only TWO AgentValues are
allowed.Modifier and Type | Field and Description |
---|---|
int |
TournamentNumber
TournamentNumber is used to give a unique reference to this tournament to
the user.
|
static int |
VARIABLE_AGENT_A |
static int |
VARIABLE_AGENT_B |
static int |
VARIABLE_DB_LOCATION |
static int |
VARIABLE_DB_PASSWORD |
static int |
VARIABLE_DB_SESSIONNAME |
static int |
VARIABLE_DB_USER |
static int |
VARIABLE_DECOUPLED_A |
static int |
VARIABLE_DECOUPLED_B |
static int |
VARIABLE_NUMBER_OF_RUNS |
static int |
VARIABLE_PROFILE |
static int |
VARIABLE_PROTOCOL |
static int |
VARIABLE_TOURNAMENT_OPTIONS |
Constructor and Description |
---|
Tournament() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AgentVariable> |
getAgentVars() |
java.util.ArrayList<BOAagentInfo> |
getBOAagentA() |
java.util.ArrayList<BOAagentInfo> |
getBOAagentB() |
java.util.ArrayList<AgentVariable> |
getDecoupledAgentVars()
Converts the descriptions of the BOA framework agents to actual agents
compatible with Genius.
|
int |
getNumberOfSessions() |
java.util.HashMap<java.lang.String,java.lang.Integer> |
getOptions() |
java.util.ArrayList<AssignedParameterVariable> |
getParametersOfAgent(AgentRepItem agent,
java.lang.String name) |
java.util.ArrayList<ProfileRepItem> |
getProfiles()
Get the profiles that are available.
|
ProtocolRepItem |
getProtocol() |
int |
getRounds()
Returns how many times each session is repeated in a tournament.
|
java.util.ArrayList<Protocol> |
getSessions()
Get all combinations of agents, domains, etc.
|
java.util.ArrayList<TournamentVariable> |
getVariables() |
void |
resetTournament()
Throw away all calculated sessions to allow serialization.
|
void |
setBOAagentA(java.util.ArrayList<BOAagentInfo> BOAagentList) |
void |
setBOAagentB(java.util.ArrayList<BOAagentInfo> BOAagentList) |
java.lang.String |
toString() |
public final int TournamentNumber
public static final int VARIABLE_PROTOCOL
public static final int VARIABLE_PROFILE
public static final int VARIABLE_AGENT_A
public static final int VARIABLE_AGENT_B
public static final int VARIABLE_NUMBER_OF_RUNS
public static final int VARIABLE_TOURNAMENT_OPTIONS
public static final int VARIABLE_DECOUPLED_A
public static final int VARIABLE_DECOUPLED_B
public static final int VARIABLE_DB_LOCATION
public static final int VARIABLE_DB_USER
public static final int VARIABLE_DB_PASSWORD
public static final int VARIABLE_DB_SESSIONNAME
public java.util.ArrayList<Protocol> getSessions() throws java.lang.Exception
java.lang.Exception
public void resetTournament()
public java.util.ArrayList<AgentVariable> getAgentVars()
public int getNumberOfSessions()
public int getRounds()
public java.util.HashMap<java.lang.String,java.lang.Integer> getOptions()
public ProtocolRepItem getProtocol() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<ProfileRepItem> getProfiles() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<AssignedParameterVariable> getParametersOfAgent(AgentRepItem agent, java.lang.String name)
agent
- the agent you want the parameters ofname
- the name of this unique instantiation of the agent. Typically
AgentA and AgentB.public java.util.ArrayList<TournamentVariable> getVariables()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ArrayList<AgentVariable> getDecoupledAgentVars()
public java.util.ArrayList<BOAagentInfo> getBOAagentA()
public java.util.ArrayList<BOAagentInfo> getBOAagentB()
public void setBOAagentA(java.util.ArrayList<BOAagentInfo> BOAagentList)
public void setBOAagentB(java.util.ArrayList<BOAagentInfo> BOAagentList)