com.rapidminer.parameter
Class ParameterTypeConfiguration

java.lang.Object
  extended by com.rapidminer.parameter.ParameterType
      extended by com.rapidminer.parameter.ParameterTypeConfiguration
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ParameterTypeConfiguration
extends ParameterType

This parameter type will lead to a GUI element which can be used as initialization for a sort of operator configuration wizard.

Author:
Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
ParameterTypeConfiguration(java.lang.Class<? extends ConfigurationWizardCreator> wizardCreatorClass, ConfigurationListener wizardListener)
           
ParameterTypeConfiguration(java.lang.Class<? extends ConfigurationWizardCreator> wizardCreatorClass, java.util.Map<java.lang.String,java.lang.String> parameters, ConfigurationListener wizardListener)
           
 
Method Summary
 java.lang.Object getDefaultValue()
          Returns null.
 java.lang.String getRange()
          Returns a human readable description of the range.
 ConfigurationWizardCreator getWizardCreator()
          Returns a new instance of the wizard creator.
 ConfigurationListener getWizardListener()
           
 java.lang.String getXML(java.lang.String indent, java.lang.String key, java.lang.String value, boolean hideDefault)
          Returns an empty string since this parameter cannot be used in XML description but is only used for GUI purposes.
 boolean isNumerical()
          Returns true if the values of this parameter type are numerical, i.e. might be parsed by Double.parseDouble(String).
 void setDefaultValue(java.lang.Object value)
          Does nothing.
 
Methods inherited from class com.rapidminer.parameter.ParameterType
compareTo, getDescription, getKey, illegalValue, isExpert, isHidden, isOptional, registerDependencyCondition, setDescription, setExpert, setHidden, setKey, setShowRange, showRange, toString, toString, toXMLString, transformNewValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterTypeConfiguration

public ParameterTypeConfiguration(java.lang.Class<? extends ConfigurationWizardCreator> wizardCreatorClass,
                                  ConfigurationListener wizardListener)

ParameterTypeConfiguration

public ParameterTypeConfiguration(java.lang.Class<? extends ConfigurationWizardCreator> wizardCreatorClass,
                                  java.util.Map<java.lang.String,java.lang.String> parameters,
                                  ConfigurationListener wizardListener)
Method Detail

getWizardCreator

public ConfigurationWizardCreator getWizardCreator()
Returns a new instance of the wizard creator. If anything does not work this method will return null.


getWizardListener

public ConfigurationListener getWizardListener()

getDefaultValue

public java.lang.Object getDefaultValue()
Returns null.

Specified by:
getDefaultValue in class ParameterType

setDefaultValue

public void setDefaultValue(java.lang.Object value)
Does nothing.

Specified by:
setDefaultValue in class ParameterType

getRange

public java.lang.String getRange()
Description copied from class: ParameterType
Returns a human readable description of the range.

Specified by:
getRange in class ParameterType

getXML

public java.lang.String getXML(java.lang.String indent,
                               java.lang.String key,
                               java.lang.String value,
                               boolean hideDefault)
Returns an empty string since this parameter cannot be used in XML description but is only used for GUI purposes.

Specified by:
getXML in class ParameterType

isNumerical

public boolean isNumerical()
Description copied from class: ParameterType
Returns true if the values of this parameter type are numerical, i.e. might be parsed by Double.parseDouble(String). Otherwise false should be returned. This method might be used by parameter logging operators.

Specified by:
isNumerical in class ParameterType


Copyright © 2001-2009 by Rapid-I