de.fzi.kadmos.cmdutils.formatter
Class CSVResultFormatter

java.lang.Object
  extended by de.fzi.kadmos.cmdutils.formatter.CSVResultFormatter
All Implemented Interfaces:
EvaluatorResultFormatter

public class CSVResultFormatter
extends Object
implements EvaluatorResultFormatter

Implementation of EvaluatorResultFormatter Interface that formats evaluator result objects and creates a CSV file

Since:
1.0.1
Version:
1.3.0
Author:
Matthias Stumpp

Method Summary
 void format(EvaluatorResult result)
          Initiates the formatting process using an evaluator result object.
 void format(List<EvaluatorResult> results)
          Initiates the formatting process using the a list of evaluator result objects.
static CSVResultFormatter getInstance()
          Gets a (new) instance of this formatter.
 void setOutputDir(String outputDir)
          Sets the pathname to the output dir of the CSV file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CSVResultFormatter getInstance()
Gets a (new) instance of this formatter. There can only be one formatter instance.

Returns:
CSVResultFormatter instance.
Since:
1.0.1

setOutputDir

public void setOutputDir(String outputDir)
Sets the pathname to the output dir of the CSV file.

Parameters:
Pathname - to outputDir
Since:
1.0.1

format

public void format(EvaluatorResult result)
            throws KADMOSCMDException
Initiates the formatting process using an evaluator result object.

Specified by:
format in interface EvaluatorResultFormatter
Throws:
KADMOSCMDException

format

public void format(List<EvaluatorResult> results)
            throws KADMOSCMDException
Initiates the formatting process using the a list of evaluator result objects.

Specified by:
format in interface EvaluatorResultFormatter
Throws:
KADMOSCMDException


Copyright © 2012. All Rights Reserved.