|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.ProcessRootOperator
public final class ProcessRootOperator
Each process must contain exactly one operator of this class and it must be the root operator of the process. The only purpose of this operator is to provide some parameters that have global relevance.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_DELETE_TEMP_FILES
|
static java.lang.String |
PARAMETER_ENCODING
|
static java.lang.String |
PARAMETER_LOGFILE
|
static java.lang.String |
PARAMETER_LOGVERBOSITY
|
static java.lang.String |
PARAMETER_NOTIFICATION_EMAIL
|
static java.lang.String |
PARAMETER_PROCESS_DURATION_FOR_MAIL
|
static java.lang.String |
PARAMETER_RANDOM_SEED
|
static java.lang.String |
PARAMETER_RESULTFILE
|
static java.lang.String |
PARAMETER_SEND_MAIL
|
static int |
PARAMETER_SEND_MAIL_ALWAYS
|
static int |
PARAMETER_SEND_MAIL_FOR_LONG
|
static int |
PARAMETER_SEND_MAIL_NEVER
|
static java.lang.String[] |
PARAMETER_SEND_MAIL_OPTIONS
|
static java.lang.String |
PARAMETER_TEMP_DIR
|
static java.lang.String |
PROPERTY_RAPIDMINER_GENERAL_RANDOMSEED
The property name for "The default random seed (-1: random random seed). |
| Constructor Summary | |
|---|---|
ProcessRootOperator(OperatorDescription description)
Creates a new process operator without reference to an process. |
|
ProcessRootOperator(OperatorDescription description,
Process process)
Creates a new process operator which directly references to the given process. |
|
| Method Summary | |
|---|---|
void |
addProcessListener(ProcessListener l)
Adds an process listener to the list of listeners. |
void |
clearListeners()
Clears all process listeners. |
boolean |
getAddOnlyAdditionalOutput()
Since the apply methods of the inner operators already add additional output, the handle additional output method should simply return a new container which is build from the additional output objects. |
InnerOperatorCondition |
getInnerOperatorCondition()
Returns a simple chain condition. |
java.lang.Class<?>[] |
getInputClasses()
Returns the classes that are needed as input. |
int |
getMaxNumberOfInnerOperators()
Returns the highest possible value for the maximum number of innner operators. |
int |
getMinNumberOfInnerOperators()
Returns 0 for the minimum number of innner operators. |
java.lang.Class<?>[] |
getOutputClasses()
Returns the classes that are guaranteed to be returned by apply() as additional output. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
Process |
getProcess()
Returns the process of this operator if available. |
void |
processFinished()
Called at the end of the process. |
protected void |
processFinishedOperator(Operator op)
Counts the step and notifies all process listeners. |
protected void |
processStartedOperator(Operator op)
Counts the step and notifies all process listeners. |
void |
processStarts()
Called at the beginning of the process. |
void |
removeProcessListener(ProcessListener l)
Removes an process listener from the list of listeners. |
void |
sendEmail(IOContainer results,
java.lang.Throwable e)
This method can be used to send an email after the process has finished. |
void |
setProcess(Process process)
Sets the process. |
boolean |
shouldReturnInnerOutput()
Returns true since this operator chain should just return the output of the last inner operator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_RAPIDMINER_GENERAL_RANDOMSEED
public static final java.lang.String PARAMETER_ENCODING
public static final java.lang.String PARAMETER_LOGVERBOSITY
public static final java.lang.String PARAMETER_LOGFILE
public static final java.lang.String PARAMETER_RESULTFILE
public static final java.lang.String PARAMETER_TEMP_DIR
public static final java.lang.String PARAMETER_DELETE_TEMP_FILES
public static final java.lang.String PARAMETER_RANDOM_SEED
public static final java.lang.String PARAMETER_SEND_MAIL
public static final java.lang.String[] PARAMETER_SEND_MAIL_OPTIONS
public static final int PARAMETER_SEND_MAIL_ALWAYS
public static final int PARAMETER_SEND_MAIL_NEVER
public static final int PARAMETER_SEND_MAIL_FOR_LONG
public static final java.lang.String PARAMETER_PROCESS_DURATION_FOR_MAIL
public static final java.lang.String PARAMETER_NOTIFICATION_EMAIL
| Constructor Detail |
|---|
public ProcessRootOperator(OperatorDescription description)
public ProcessRootOperator(OperatorDescription description,
Process process)
| Method Detail |
|---|
public void setProcess(Process process)
public Process getProcess()
getProcess in interface ConfigurationListenergetProcess in interface PreviewListenergetProcess in class Operatorpublic boolean shouldReturnInnerOutput()
shouldReturnInnerOutput in class OperatorChainpublic InnerOperatorCondition getInnerOperatorCondition()
getInnerOperatorCondition in class OperatorChainpublic boolean getAddOnlyAdditionalOutput()
getAddOnlyAdditionalOutput in class Operatorpublic int getMaxNumberOfInnerOperators()
getMaxNumberOfInnerOperators in class OperatorChainpublic int getMinNumberOfInnerOperators()
getMinNumberOfInnerOperators in class OperatorChainpublic void addProcessListener(ProcessListener l)
public void removeProcessListener(ProcessListener l)
public void clearListeners()
public void processStarts()
throws OperatorException
processStarts in class OperatorChainOperatorExceptionprotected void processStartedOperator(Operator op)
protected void processFinishedOperator(Operator op)
public void processFinished()
throws OperatorException
processFinished in class OperatorChainOperatorException
public void sendEmail(IOContainer results,
java.lang.Throwable e)
throws UndefinedParameterError
UndefinedParameterErrorpublic java.lang.Class<?>[] getInputClasses()
OperatorOperator.getOutputClasses() and
Operator.apply() if this is necessary. This default behavior can be
changed by overriding Operator.getInputDescription(Class). Subclasses
which implement this method should not make use of parameters since this
method is invoked by getParameterTypes(). Therefore, parameters are not
fully available at this point of time and this might lead to exceptions.
Please use InputDescriptions instead.
getInputClasses in class Operatorpublic java.lang.Class<?>[] getOutputClasses()
OperatorReturns the classes that are guaranteed to be returned by
apply() as additional output. Please note that input objects
which should not be consumed must also be defined by this method (e.g.
an example set which is changed but not consumed in the case of a preprocessing
operator must be defined in both, the methods Operator.getInputClasses() and
Operator.getOutputClasses()). The default behavior for input consumation
is defined by Operator.getInputDescription(Class) and can be changed by
overwriting this method. Objects which are not consumed (defined by changing
the implementation in Operator.getInputDescription(Class)) must not be
defined as additional output in this method.
May deliver null or an empy array (no additional output is produced or guaranteed). Must return the class array of delivered output objects otherwise.
getOutputClasses in class Operatorpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||