de.fzi.kadmos.cmdutils.formatter
Class GNUPlotResultFormatter

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

public class GNUPlotResultFormatter
extends Object
implements EvaluatorResultFormatter

Implementation of EvaluatorResultFormatter Interface that formats evaluator result objects and creates a GNUPlot compatible 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 GNUPlotResultFormatter getInstance()
          Gets a (new) instance of this formatter.
 void setOutputDir(String outputDir)
          Sets the pathname to the output dir of the GNUPlot compatible file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
GNUPlotResultFormatter instance.
Since:
1.0.1

setOutputDir

public void setOutputDir(String outputDir)
Sets the pathname to the output dir of the GNUPlot compatible 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.