|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.comparison.ViperPE
This class offers a function to compare two Descriptor data files.
java viper.comparison.ViperPE -options
Options include:
System.out
Constructor Summary | |
ViperPE()
Processes a properties file into ViperPE internal state variables. |
Method Summary | |
static com.jrefinery.chart.JFreeChart |
createChart(java.lang.String name,
com.jrefinery.data.Dataset data)
Creates a new chart for the given data set |
static java.util.Map |
getOptions(java.lang.String[] args)
Parses the options into a hashmap. |
static void |
main(java.lang.String[] args)
The main program block of the command line version of the Ground Truth File Comparison software. |
static java.io.PrintWriter |
openFileForWriting(java.lang.String fileName)
Opens the file with the specified name for writing. |
static DescriptorConfigs |
parseDescriptorConfig(java.lang.String configFileName,
java.lang.String dataFileName)
Reads in config information from a gtf file. |
static DescriptorData |
parseDescriptorData(DescriptorConfigs cfgs,
java.lang.String dataFileName,
EvaluationParameters epf,
java.io.PrintWriter log)
Reads in data information from a gtf file. |
static void |
printChartPng(java.lang.String fileName,
com.jrefinery.chart.JFreeChart chart,
int width,
int height)
Saves the given chart a PNG file. |
static void |
printChartSvg(java.lang.String fileName,
com.jrefinery.chart.JFreeChart chart,
int width,
int height)
Prints out the results as an svg chart. |
static void |
printGraphs(java.util.Map data,
java.lang.String prefix,
java.lang.String suffix)
Prints out all the graphs for the given set of data. |
static void |
printUsage()
Print usage. |
static void |
printUsage(int error,
java.lang.Throwable trace)
Prints out some of the basic flags. |
static void |
printVersion()
Prints out version information. |
void |
run()
Runs the application. |
void |
setProperties(java.util.Properties props)
Sets the properties associated with this run of the performance evaluator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViperPE()
Method Detail |
public static void printUsage()
public static void printUsage(int error, java.lang.Throwable trace)
error
- the error typetrace
- the throwable associated with the errorpublic static void printVersion()
public static java.util.Map getOptions(java.lang.String[] args)
args
- the command line arguments
null
if the
arguments are malformed. (It also prints out usage in
the latter case.)public static void main(java.lang.String[] args)
args
- The command line arguments are specified at the top.
For the properties, see the package listing.public void setProperties(java.util.Properties props) throws BadDataException, ImproperMetricException
props
- the properties
BadDataException
- if some of the properties contain
errors in syntax of viper data
ImproperMetricException
- if some of the properties
contain references to unknowm metrics, or if they initialize
the metrics incorrectlypublic static java.io.PrintWriter openFileForWriting(java.lang.String fileName)
null
. If the string is a dash, "-", it returns System.out.
fileName
- The file to open for writing.
PrintWriter
or null
public static DescriptorConfigs parseDescriptorConfig(java.lang.String configFileName, java.lang.String dataFileName) throws java.io.IOException, BadDataException
configFileName
- File name of the config file - only applicable
to old file format, which can take multiple files and glue them
togetherdataFileName
- The data file. If old format, will use config file
if is not null, and this otherwise. If xml format, only uses data
file.
BadDataException
- if the parseConfig or addDesConfig method
throws it, or if an xml file is given two file names.
java.io.IOException
- if there is an io exception while parsingpublic static DescriptorData parseDescriptorData(DescriptorConfigs cfgs, java.lang.String dataFileName, EvaluationParameters epf, java.io.PrintWriter log) throws BadDataException, java.io.IOException
cfgs
- Configs, presumably from parseDescriptorConfigdataFileName
- The data file to parse.epf
- used to run the input filterlog
- recipient of the various error and notification messsages
BadDataException
- if the parseConfig or addDesConfig method
throws it, or if an xml file is given two file names.
java.io.IOException
- if there is an io exception while parsingpublic void run()
public static void printGraphs(java.util.Map data, java.lang.String prefix, java.lang.String suffix)
data
- the data setsprefix
- the prefix for each chart filenamesuffix
- the suffix for each chart filenamepublic static void printChartSvg(java.lang.String fileName, com.jrefinery.chart.JFreeChart chart, int width, int height) throws java.io.IOException
fileName
- the file to save the resultschart
- the chartwidth
- the width to give the output fileheight
- the height for the output file
java.io.IOException
public static void printChartPng(java.lang.String fileName, com.jrefinery.chart.JFreeChart chart, int width, int height) throws java.io.IOException
fileName
- the file to save tochart
- the chart to savewidth
- the width of the chartheight
- the height of the chart
java.io.IOException
public static com.jrefinery.chart.JFreeChart createChart(java.lang.String name, com.jrefinery.data.Dataset data)
name
- the name of the chartdata
- the data set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |