com.rapidminer.tools
Class ResultService

java.lang.Object
  extended by com.rapidminer.tools.ResultService

public class ResultService
extends java.lang.Object

Some statical methods to write results in a file. The class must be set up properly before you can use these methods. Therefore the destination file is read from the global part of the process configuration file.

Author:
Ingo Mierswa

Constructor Summary
ResultService()
           
 
Method Summary
static void close()
          Closes the stream.
static void init(java.io.PrintWriter outWriter)
          Initializes the ResultService.
static void init(Process process)
          Initializes the ResultService.
static void init(java.lang.String filename, Process process)
          Initializes the ResultService.
static void logResult(ResultObject resultObject)
          Writes the result string from the given result object in the result file.
static void logResult(ResultObject resultObject, java.io.PrintWriter localOut)
          Writes the result string from the given result object in the result file.
static void logResult(java.lang.String result)
          Writes the string in the general result file.
static void logResult(java.lang.String result, java.io.PrintWriter localOut)
          Writes the string in the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultService

public ResultService()
Method Detail

init

public static void init(java.lang.String filename,
                        Process process)
Initializes the ResultService.

Parameters:
filename - destination file.
process - the process which is used to resolve the filename

init

public static void init(java.io.PrintWriter outWriter)
Initializes the ResultService.

Parameters:
outWriter - writer to write the results to.

init

public static void init(Process process)
Initializes the ResultService.


close

public static void close()
Closes the stream.


logResult

public static void logResult(java.lang.String result)
Writes the string in the general result file.


logResult

public static void logResult(java.lang.String result,
                             java.io.PrintWriter localOut)
Writes the string in the given stream.


logResult

public static void logResult(ResultObject resultObject)
Writes the result string from the given result object in the result file.


logResult

public static void logResult(ResultObject resultObject,
                             java.io.PrintWriter localOut)
Writes the result string from the given result object in the result file.



Copyright © 2001-2009 by Rapid-I