com.rapidminer.operator
Class InputDescription

java.lang.Object
  extended by com.rapidminer.operator.InputDescription

public class InputDescription
extends java.lang.Object

This class is used to describe the required input of an operator and the operator's behavior with respect to consumption of this input object. Input objects can be simply consumed (default) or the consumption behavior can be defined with help of an parameter (user decision).

Author:
Ingo Mierswa

Constructor Summary
InputDescription(java.lang.Class<?> inputType)
          Creates a new input description for the given class.
InputDescription(java.lang.Class<?> inputType, boolean keepDefault)
          Creates a new input description for the given class.
InputDescription(java.lang.Class<?> inputType, boolean keepDefault, boolean parameter)
          Creates a new input description for the given class.
InputDescription(java.lang.Class<?> inputType, boolean keepDefault, boolean parameter, java.lang.String parameterName)
          Creates a new input description for the given class.
 
Method Summary
 java.lang.Class getInputType()
          Returns the desired class of the input object.
 boolean getKeepDefault()
          Indicates if the input should be consumed.
 java.lang.String getParameterName()
          Returns the name of the user parameter.
 boolean showParameter()
          Indicates if a user parameter should be defined.
 java.lang.String toString()
          Returns a String representation of this input description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputDescription

public InputDescription(java.lang.Class<?> inputType)
Creates a new input description for the given class. The input object is consumed.


InputDescription

public InputDescription(java.lang.Class<?> inputType,
                        boolean keepDefault)
Creates a new input description for the given class. The parameter keepDefault defines if the input object is consumed.


InputDescription

public InputDescription(java.lang.Class<?> inputType,
                        boolean keepDefault,
                        boolean parameter)
Creates a new input description for the given class. The parameter keepDefault defines if the input object is consumed per default. parameter defines if the operator should provide a user parameter.


InputDescription

public InputDescription(java.lang.Class<?> inputType,
                        boolean keepDefault,
                        boolean parameter,
                        java.lang.String parameterName)
Creates a new input description for the given class. The parameter keepDefault defines if the input object is consumed per default. parameter defines if the operator should provide a user parameter. This parameter utilizes the given name.

Method Detail

getInputType

public java.lang.Class getInputType()
Returns the desired class of the input object.


getKeepDefault

public boolean getKeepDefault()
Indicates if the input should be consumed.


showParameter

public boolean showParameter()
Indicates if a user parameter should be defined.


getParameterName

public java.lang.String getParameterName()
Returns the name of the user parameter.


toString

public java.lang.String toString()
Returns a String representation of this input description.

Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I