com.rapidminer.operator
Class ResultObjectAdapter

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
All Implemented Interfaces:
IOObject, ResultObject, LoggingHandler, java.io.Serializable
Direct Known Subclasses:
AbstractExampleSet, AbstractModel, ANOVAMatrix, AssociationRules, Averagable, AverageVector, DataStatistics, FrequentItemSets, GSPSet, HierarchicalClusterModel, IGSSResult, IOObjectCollection, LiftParetoChart, NumericalMatrix, ParameterSet, ROCComparison, RunVector, SignificanceTestResult, SimilarityMeasureObject, SimpleResultObject, SOMModelVisualization.SOMModelVisualizationResult, Threshold, TransitionGraph

public abstract class ResultObjectAdapter
extends AbstractIOObject
implements ResultObject, LoggingHandler

An adapter class for the interface ResultObject. Implements most methods and can be used if the subclass does not need to extend other classes. The method toResultString() delivers the return value of Object.toString(). The visualization components for the graphical user interface is simply the HTML representation of the result string.

Author:
Ingo Mierswa, Simon Fischer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject
AbstractIOObject.InputStreamProvider
 
Constructor Summary
ResultObjectAdapter()
           
 
Method Summary
protected  void addAction(javax.swing.Action a)
          Deprecated. Action concept for GUI components removed from result objects
 java.util.List<javax.swing.Action> getActions()
          Deprecated. Action concept for GUI components removed from result objects
 Annotations getAnnotations()
           
 java.lang.String getName()
          The default implementation returns the classname without package.
 javax.swing.Icon getResultIcon()
          Returns the icon registered for this class on the RendererService.
 void log(java.lang.String message)
          Logs a status message.
 void log(java.lang.String message, int level)
          Logs a message with the given log level.
 void logError(java.lang.String message)
          Logs an error message.
 void logNote(java.lang.String message)
          Logs a note message.
 void logWarning(java.lang.String message)
          Logs a warning message.
static java.lang.String toHTML(java.lang.String string)
          Encodes the given String as HTML.
 java.lang.String toResultString()
          The default implementation simply returns the result of the method Object.toString().
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.IOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write
 

Constructor Detail

ResultObjectAdapter

public ResultObjectAdapter()
Method Detail

getName

public java.lang.String getName()
The default implementation returns the classname without package.

Specified by:
getName in interface ResultObject

addAction

@Deprecated
protected void addAction(javax.swing.Action a)
Deprecated. Action concept for GUI components removed from result objects

Adds an action to the list of Java Swing Actions which will shown in the visualization component. If the class implements Saveable an action for saving is already added.


getActions

@Deprecated
public java.util.List<javax.swing.Action> getActions()
Deprecated. Action concept for GUI components removed from result objects

Returns a list of all actions which can be performed for this result object.

Specified by:
getActions in interface ResultObject

toResultString

public java.lang.String toResultString()
The default implementation simply returns the result of the method Object.toString().

Specified by:
toResultString in interface ResultObject

getResultIcon

public javax.swing.Icon getResultIcon()
Returns the icon registered for this class on the RendererService. This method can be replaced by RendererService.getIcon(Class) if no instanciated object of this class is available.

Specified by:
getResultIcon in interface ResultObject

toHTML

public static java.lang.String toHTML(java.lang.String string)
Encodes the given String as HTML. Only linebreaks and less then and greater than will be encoded.


log

public void log(java.lang.String message,
                int level)
Description copied from interface: LoggingHandler
Logs a message with the given log level.

Specified by:
log in interface LoggingHandler

log

public void log(java.lang.String message)
Description copied from interface: LoggingHandler
Logs a status message.

Specified by:
log in interface LoggingHandler

logNote

public void logNote(java.lang.String message)
Description copied from interface: LoggingHandler
Logs a note message.

Specified by:
logNote in interface LoggingHandler

logWarning

public void logWarning(java.lang.String message)
Description copied from interface: LoggingHandler
Logs a warning message.

Specified by:
logWarning in interface LoggingHandler

logError

public void logError(java.lang.String message)
Description copied from interface: LoggingHandler
Logs an error message.

Specified by:
logError in interface LoggingHandler

getAnnotations

public Annotations getAnnotations()
Specified by:
getAnnotations in interface IOObject


Copyright © 2001-2009 by Rapid-I