ctf.evaluation.simulator
Class DualController

java.lang.Object
  extended by ctf.evaluation.simulator.DualController

public class DualController
extends java.lang.Object

A simple dual client (both teams) for a CTF simulator


Field Summary
(package private)  Log out
          Where output is logged
 
Constructor Summary
DualController()
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
          Main entry point
protected  void placeFlag(Connection connection, Point flag)
           
protected  void placeTree(Connection connection, Point tree)
           
protected  void sendCommand(Connection connection, java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

Log out
Where output is logged

Constructor Detail

DualController

public DualController()
               throws java.lang.Exception
Constructor

Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main entry point

Throws:
java.lang.Exception

sendCommand

protected void sendCommand(Connection connection,
                           java.lang.String command)
                    throws java.io.IOException,
                           NetworkException
Throws:
java.io.IOException
NetworkException

placeTree

protected void placeTree(Connection connection,
                         Point tree)
                  throws java.io.IOException,
                         NetworkException
Throws:
java.io.IOException
NetworkException

placeFlag

protected void placeFlag(Connection connection,
                         Point flag)
                  throws java.io.IOException,
                         NetworkException
Throws:
java.io.IOException
NetworkException