ctf.evaluation
Class STEAL

java.lang.Object
  extended by ctf.evaluation.STEAL

public class STEAL
extends java.lang.Object

The STEAL protocol


Field Summary
static int PLAYERS_PER_TEAM
           
static int TREES_PER_SIDE
           
 
Constructor Summary
STEAL()
           
 
Method Summary
static java.lang.String floatToString(double f)
          Format a STEAL Float (from double)
static java.lang.String floatToString(float f)
          Format a STEAL Float
static java.lang.String intToString(int i)
          Format a STEAL Integer
static double oldVersion()
          What's an [unacceptably] old version of the protocol?
static double parseFloat(java.lang.String s)
          Parse a STEAL floating-point number
static int parseInt(java.lang.String s)
          Parse a STEAL integer
static double version()
          What version of STEAL are we speaking?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYERS_PER_TEAM

public static int PLAYERS_PER_TEAM

TREES_PER_SIDE

public static int TREES_PER_SIDE
Constructor Detail

STEAL

public STEAL()
Method Detail

version

public static double version()
What version of STEAL are we speaking?


oldVersion

public static double oldVersion()
What's an [unacceptably] old version of the protocol?


intToString

public static java.lang.String intToString(int i)
Format a STEAL Integer


floatToString

public static java.lang.String floatToString(float f)
Format a STEAL Float


floatToString

public static java.lang.String floatToString(double f)
Format a STEAL Float (from double)


parseInt

public static int parseInt(java.lang.String s)
                    throws ProtocolError
Parse a STEAL integer

Throws:
ProtocolError

parseFloat

public static double parseFloat(java.lang.String s)
                         throws ProtocolError
Parse a STEAL floating-point number

Throws:
ProtocolError