Class PredictionParserMain

java.lang.Object
  extended by PredictionParserMain

public class PredictionParserMain
extends java.lang.Object

This is a modification of the se.sics.tasim.logtool.Main log parsing class. The required command line arguments are the predictor class, the game list, and the name of the agent for which predictions will be made. The verbose option causes all predictions to be output.


Field Summary
(package private) static se.sics.isl.util.ArgumentManager config
           
(package private) static int gameCount
           
(package private) static SCMPredictor predictor
           
(package private) static double[] results
           
(package private) static double[] resultSums
           
 
Constructor Summary
PredictionParserMain()
           
 
Method Summary
(package private) static java.io.InputStream getDataStream(java.lang.String filename)
          From the original LogManager class.
(package private) static java.lang.String getNextLine(java.io.BufferedReader f)
          Read the next line from the file, ignoring lines starting with #
static void main(java.lang.String[] args)
          The original main method, modified to accept the needed arguments.
(package private) static void processDataFile(java.lang.String filename)
          From the original LogManager class.
(package private) static void reportFinalResults()
          Print results for aall games.
(package private) static void reportResults(java.lang.String s)
          Print results for a single game and update averages.
static void run()
          Reads the list of games and calls the parser for each one to obtain results.
private static void showWarning(se.sics.isl.util.ConfigManager config, java.lang.String title, java.lang.String message)
          From the original Main class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

static se.sics.isl.util.ArgumentManager config

predictor

static SCMPredictor predictor

results

static double[] results

resultSums

static double[] resultSums

gameCount

static int gameCount
Constructor Detail

PredictionParserMain

public PredictionParserMain()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws se.sics.isl.util.IllegalConfigurationException,
                        java.io.IOException
The original main method, modified to accept the needed arguments.

Throws:
se.sics.isl.util.IllegalConfigurationException
java.io.IOException

run

public static void run()
Reads the list of games and calls the parser for each one to obtain results.


reportResults

static void reportResults(java.lang.String s)
Print results for a single game and update averages.


reportFinalResults

static void reportFinalResults()
Print results for aall games.


getNextLine

static java.lang.String getNextLine(java.io.BufferedReader f)
                             throws java.lang.Exception
Read the next line from the file, ignoring lines starting with #

Throws:
java.lang.Exception

processDataFile

static void processDataFile(java.lang.String filename)
From the original LogManager class. Processes a single file. Modified to call the parser directly.


getDataStream

static java.io.InputStream getDataStream(java.lang.String filename)
                                  throws java.io.IOException
From the original LogManager class.

Throws:
java.io.IOException

showWarning

private static void showWarning(se.sics.isl.util.ConfigManager config,
                                java.lang.String title,
                                java.lang.String message)
From the original Main class.