public class TournamentRunner
extends java.lang.Object
implements java.lang.Runnable
Tournament
and then runs them sequentially.
Use with new Thread(new TournamentRunner(tournament,ael)).start();
You can use a null action event listener if you want to.Constructor and Description |
---|
TournamentRunner(java.util.List<OldProtocol> sessions,
NegotiationEventListener ael) |
TournamentRunner(NegotiationEventListener ael,
boolean distributed,
java.lang.String sessionname) |
TournamentRunner(Tournament t,
NegotiationEventListener ael) |
TournamentRunner(Tournament t,
NegotiationEventListener ael,
boolean runSingleSession) |
Modifier and Type | Method and Description |
---|---|
void |
fireNegotiationSessionEvent(OldProtocol session) |
void |
run()
Warning.
|
public TournamentRunner(java.util.List<OldProtocol> sessions, NegotiationEventListener ael) throws java.lang.Exception
sessions
- the sessions to be runael
- the action event listener to use. If not null, the existing listener for each
session will be overridden with this listener.java.lang.Exception
public TournamentRunner(Tournament t, NegotiationEventListener ael) throws java.lang.Exception
t
- the tournament to be runael
- the action event listener to use. If not null, the existing listener for each
session will be overridden with this listener.java.lang.Exception
public TournamentRunner(NegotiationEventListener ael, boolean distributed, java.lang.String sessionname)
public TournamentRunner(Tournament t, NegotiationEventListener ael, boolean runSingleSession) throws java.lang.Exception
t
- the tournament to be runael
- the action event listener to use. If not null, the existing listener for each
session will be overridden with this listener.java.lang.Exception
public void run()
run
in interface java.lang.Runnable
public void fireNegotiationSessionEvent(OldProtocol session)