public class TournamentManager
extends java.lang.Thread
SessionManager
are
instantiated. It uses the configuration object which is created by the user interface and extracts
individual session from configuration object which it wil pass on to the session manager.Constructor and Description |
---|
TournamentManager(MultilateralTournamentConfiguration config)
Initializes a new instance of the
TournamentManager class. |
Modifier and Type | Method and Description |
---|---|
void |
run()
Runnable implementation for thread
|
void |
runSingleSession(java.util.List<NegotiationParty> parties)
Run a single session for the given parties (protocol and session are also used, but extracted
from the tournament manager's configuration
|
void |
runTournament()
Run the complete tournament the number of times provided by the configuration file
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public TournamentManager(MultilateralTournamentConfiguration config)
TournamentManager
class. The
tournament manager uses the provided configuration to find which sessions to run and how
many collections of these sessions (tournaments) to run.config
- The configuration to use for this Tournamentpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void runTournament() throws java.lang.Exception
java.lang.Exception
public void runSingleSession(java.util.List<NegotiationParty> parties) throws java.lang.Exception
parties
- the parties to run the tournament forjava.lang.Exception
- if some of the required data could not be extracted