edu.udo.cs.yale.operator.io
Class KDBExampleSource

java.lang.Object
  extended by edu.udo.cs.yale.operator.Operator
      extended by edu.udo.cs.yale.operator.io.ResultSetExampleSource
          extended by edu.udo.cs.yale.operator.io.KDBExampleSource
All Implemented Interfaces:
ConfigurationListener
Direct Known Subclasses:
BibtexExampleSource, DBaseExampleSource

public abstract class KDBExampleSource
extends ResultSetExampleSource

This class can read arff, comma separated values (csv), dbase and bibtex files. It uses Stefan Haustein's kdb tools.

Version:
$Id: KDBExampleSource.java,v 1.11 2006/04/05 08:57:25 ingomierswa Exp $
Author:
Simon Fischer, Ingo Mierswa

Constructor Summary
KDBExampleSource(OperatorDescription description)
           
 
Method Summary
abstract  java.lang.String getExtension()
           
abstract  java.lang.String getFormat()
           
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 java.sql.ResultSet getResultSet()
          Returns a ResultSet.
 void setNominalValues(java.util.List attributeList, java.sql.ResultSet resultSet, Attribute label)
          Since the ResultSet does not provide information about possible values of nominal attributes, subclasses must set these by implementing this method.
 
Methods inherited from class edu.udo.cs.yale.operator.io.ResultSetExampleSource
apply, createExampleSet, getInputClasses, getOutputClasses
 
Methods inherited from class edu.udo.cs.yale.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, delete, experimentFinished, experimentStarts, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getName, getNumberOfSteps, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsInt, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isEnabled, isParameterSet, logMessage, performAdditionalChecks, register, remove, rename, resume, setBreakpoint, setEnabled, setExperiment, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KDBExampleSource

public KDBExampleSource(OperatorDescription description)
Method Detail

getFormat

public abstract java.lang.String getFormat()

getExtension

public abstract java.lang.String getExtension()

getResultSet

public java.sql.ResultSet getResultSet()
                                throws UndefinedParameterError
Description copied from class: ResultSetExampleSource
Returns a ResultSet.

Specified by:
getResultSet in class ResultSetExampleSource
Throws:
UndefinedParameterError


setNominalValues

public void setNominalValues(java.util.List attributeList,
                             java.sql.ResultSet resultSet,
                             Attribute label)
                      throws OperatorException
Description copied from class: ResultSetExampleSource
Since the ResultSet does not provide information about possible values of nominal attributes, subclasses must set these by implementing this method.

Specified by:
setNominalValues in class ResultSetExampleSource
Parameters:
attributeList - List of Attribute
Throws:
OperatorException


getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed.

Overrides:
getParameterTypes in class ResultSetExampleSource



Copyright © 2001-2006