cdx.scorebot.app.reporter
Class ScoringStats

java.lang.Object
  extended by cdx.scorebot.app.reporter.ScoringStats

public abstract class ScoringStats
extends java.lang.Object

Defines framework for generating scoring information as HTML

Author:
David Underhill

Constructor Summary
ScoringStats()
           
 
Method Summary
static void generateCompleteStats(java.lang.String compName, int minPts, int initPts, int maxPts, java.util.Vector<TeamReportingInfo> teamsToScoreInfo, java.lang.String outputPath, java.lang.String templatePath, java.lang.String reportComments, java.lang.String desc, boolean useAllInfo, boolean makeFull)
          Generates statistics based on the specified input and output paths
static void generateCompleteStats(java.lang.String compName, int minPts, int initPts, int maxPts, java.util.Vector<TeamReportingInfo> teamsToScoreInfo, java.lang.String outputPath, java.lang.String templatePath, java.lang.String reportComments, java.lang.String desc, boolean useAllInfo, boolean makeFull, javax.swing.JProgressBar progressBar)
          Generates statistics based on the specified input and output paths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoringStats

public ScoringStats()
Method Detail

generateCompleteStats

public static void generateCompleteStats(java.lang.String compName,
                                         int minPts,
                                         int initPts,
                                         int maxPts,
                                         java.util.Vector<TeamReportingInfo> teamsToScoreInfo,
                                         java.lang.String outputPath,
                                         java.lang.String templatePath,
                                         java.lang.String reportComments,
                                         java.lang.String desc,
                                         boolean useAllInfo,
                                         boolean makeFull)
                                  throws com.thoughtworks.xstream.core.BaseException,
                                         java.io.FileNotFoundException,
                                         java.io.IOException,
                                         LogicException,
                                         ParseException,
                                         TokenMgrError
Generates statistics based on the specified input and output paths

Parameters:
compName - name of the competition
minPts - min # of points which can be scored
initPts - initial # of points which can be scored
maxPts - max # of points which can be scored
teamsToScoreInfo - teams to generate report pieces for
outputPath - path to write HTML output to
templatePath - path to read the template files from
reportComments - comments to add to the team's scoring report index page
desc - description of what was run (the configuration)
Throws:
BaseException - if the object cannot be deserialized
FileNotFoundException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
IOException - if an output file can be properly created
LogicException - if the scoring language in a file is invalid
ParseException - if the scoring language in a file is invalid
TokenMgrError - if there is a problem parsing the code

generateCompleteStats

public static void generateCompleteStats(java.lang.String compName,
                                         int minPts,
                                         int initPts,
                                         int maxPts,
                                         java.util.Vector<TeamReportingInfo> teamsToScoreInfo,
                                         java.lang.String outputPath,
                                         java.lang.String templatePath,
                                         java.lang.String reportComments,
                                         java.lang.String desc,
                                         boolean useAllInfo,
                                         boolean makeFull,
                                         javax.swing.JProgressBar progressBar)
                                  throws com.thoughtworks.xstream.core.BaseException,
                                         java.io.FileNotFoundException,
                                         java.io.IOException,
                                         LogicException,
                                         ParseException,
                                         TokenMgrError
Generates statistics based on the specified input and output paths

Parameters:
compName - name of the competition
minPts - min # of points which can be scored
initPts - initial # of points which can be scored
maxPts - max # of points which can be scored
teamsToScoreInfo - teams to generate report pieces for
outputPath - path to write HTML output to
templatePath - path to read the template files from
reportComments - comments to add to the team's scoring report index page
desc - description of what was run (the configuration)
progressBar - may be specified if the user wants to track progress (null => no impact)
Throws:
BaseException - if the object cannot be deserialized
FileNotFoundException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
IOException - if an output file can be properly created
LogicException - if the scoring language in a file is invalid
ParseException - if the scoring language in a file is invalid
TokenMgrError - if there is a problem parsing the code