ca.ualberta.cs.poker.free.server
Class RunTournament

java.lang.Object
  extended by ca.ualberta.cs.poker.free.server.RunTournament

public class RunTournament
extends java.lang.Object


Nested Class Summary
 class RunTournament.Match
           
 class RunTournament.WorkQueue
           
 
Field Summary
static java.util.ArrayList currentCompetitors
           
 
Constructor Summary
RunTournament()
           
 
Method Summary
static void cleanMachines(java.lang.String taskKillCommand1, java.lang.String taskKillCommand2, java.lang.String taskCleanCommand1, java.lang.String taskCleanCommand2)
          Make this a function so we can turn on/off the "cleaning" easily, because killing every process on the machine I'm working on, isn't optimal
 void doneMatch(int winner, int loser)
           
 void exec()
           
 void launchClient()
           
static void main(java.lang.String[] args)
           
static void runMatch(int compNum1, int compNum2, java.net.InetAddress client1, java.net.InetAddress client2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentCompetitors

public static java.util.ArrayList currentCompetitors
Constructor Detail

RunTournament

public RunTournament()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException
Parameters:
args -
Throws:
java.lang.InterruptedException

runMatch

public static void runMatch(int compNum1,
                            int compNum2,
                            java.net.InetAddress client1,
                            java.net.InetAddress client2)
                     throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

cleanMachines

public static void cleanMachines(java.lang.String taskKillCommand1,
                                 java.lang.String taskKillCommand2,
                                 java.lang.String taskCleanCommand1,
                                 java.lang.String taskCleanCommand2)
Make this a function so we can turn on/off the "cleaning" easily, because killing every process on the machine I'm working on, isn't optimal

Parameters:
taskKillCommand1 -
taskKillCommand2 -
taskCleanCommand1 -
taskCleanCommand2 -

doneMatch

public void doneMatch(int winner,
                      int loser)

launchClient

public void launchClient()

exec

public void exec()