|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.Process
public class Process
This class was introduced to avoid confusing handling of operator maps and other stuff when a new process definition is created. It is also necessary for file name resolving and breakpoint handling.
If you want to use RapidMiner from your own application the best way is often to
create a process definition from the scratch (by adding the complete operator tree
to the process' root operator) or from a file (for example created with the
GUI beforehand) and start it by invoking the run() method.
| Field Summary | |
|---|---|
static int |
PROCESS_STATE_PAUSED
|
static int |
PROCESS_STATE_RUNNING
|
static int |
PROCESS_STATE_STOPPED
|
static int |
PROCESS_STATE_UNKNOWN
|
| Constructor Summary | |
|---|---|
Process()
Constructs an process consisting only of a SimpleOperatorChain. |
|
Process(java.io.File file)
Creates a new process from the given process file. |
|
Process(java.io.InputStream in)
Reads an process configuration from the given stream. |
|
Process(java.io.Reader in)
Reads an process configuration from the given reader. |
|
Process(java.lang.String xmlString)
Reads an process configuration from an XML String. |
|
Process(java.net.URL url)
Reads an process configuration from the given URL. |
|
| Method Summary | |
|---|---|
void |
addBreakpointListener(BreakpointListener listener)
Removes a breakpoint listener. |
void |
addDataTable(DataTable table)
Adds the given data table. |
void |
addLoggingListener(LoggingListener loggingListener)
Adds the given logging listener. |
void |
addReportStream(ReportStream stream)
This method adds a new report stream with the given name |
boolean |
checkExperiment(IOContainer inputContainer)
Deprecated. Use checkProcess(IOContainer) instead |
boolean |
checkProcess(IOContainer inputContainer)
Checks for correct number of inner operators, properties, and io. |
void |
clearDataTable(java.lang.String name)
Clears a single data table, i.e. removes all entries. |
void |
clearMacros()
Clears all macros. |
void |
clearReportStreams()
|
void |
clearStorage()
Clears all macros. |
void |
clearUnknownParameters()
Clears the information about unknown parameter types which occurred during process creation (from streams or files). |
java.lang.Object |
clone()
|
boolean |
dataTableExists(java.lang.String name)
Returns true if a data table object with the given name exists. |
void |
deleteDataTable(java.lang.String name)
Deletes a single data table. |
void |
fireResumeEvent()
Fires the event that the process was resumed. |
java.util.Collection<java.lang.String> |
getAllOperatorNames()
Returns a Set view of all operator names (i.e. |
java.util.Collection<Operator> |
getAllOperators()
Returns a Collection view of all operators. |
Operator |
getCurrentOperator()
Returns the operator that is currently being executed. |
DataTable |
getDataTable(java.lang.String name)
Returns the data table associated with the given name. |
java.util.Collection<DataTable> |
getDataTables()
Returns all data tables. |
static java.nio.charset.Charset |
getEncoding(java.lang.String encoding)
|
java.io.File |
getExperimentFile()
Deprecated. Use getProcessFile() instead |
int |
getExperimentState()
Deprecated. Use getProcessState() instead |
LogService |
getLog()
|
MacroHandler |
getMacroHandler()
Returns the macro handler. |
Operator |
getOperator(java.lang.String name)
Returns the operator with the given name. |
java.io.File |
getProcessFile()
Returns the current process file. |
int |
getProcessState()
|
ReportStream |
getReportStream(java.lang.String name)
Returns the reportStream with given name |
ProcessRootOperator |
getRootOperator()
Delivers the current root operator. |
java.util.List<UnknownParameterInformation> |
getUnknownParameters()
Delivers the information about unknown parameter types which occurred during process creation (from streams or files). |
int |
notifyRenaming(java.lang.String oldName,
java.lang.String newName)
|
void |
pause(Operator operator,
IOContainer iocontainer,
int breakpointType)
Pauses the process at a breakpoint. |
void |
readProcess(java.io.Reader in)
Reads the process setup from the given input stream. |
java.lang.String |
registerName(java.lang.String name,
Operator operator)
Returns a "name (i)" if name is already in use. |
void |
removeBreakpointListener(BreakpointListener listener)
Adds a breakpoint listener. |
void |
removeLoggingListener(LoggingListener loggingListener)
Removes the given logging listener. |
void |
removeReportStream(java.lang.String name)
Removes this reportStream from process. |
java.io.File |
resolveFileName(java.lang.String name)
Resolves the given filename against the directory containing the process file. |
void |
resume()
Resumes the process after it has been paused. |
IOObject |
retrieve(java.lang.String name,
boolean remove)
Retrieves the stored object. |
IOContainer |
run()
Starts the process with no input. |
IOContainer |
run(int logVerbosity)
Starts the process with the given log verbosity. |
IOContainer |
run(IOContainer input)
Starts the process with the given input. |
IOContainer |
run(IOContainer input,
boolean cleanUp)
Starts the process with the given input. |
IOContainer |
run(IOContainer input,
int logVerbosity)
Starts the process with the given input. |
IOContainer |
run(IOContainer input,
int logVerbosity,
boolean cleanUp)
Starts the process with the given input. |
void |
save()
Saves the process to the process file. |
void |
save(java.io.File file)
Saves the process to the given process file. |
void |
setCurrentOperator(Operator operator)
Returns the operator that is currently being executed. |
void |
setExperimentFile(java.io.File file)
Deprecated. Please use setProcessFile(File) instead. |
void |
setExperimentState(int state)
Deprecated. Use setProcessState(int) instead |
void |
setProcessFile(java.io.File file)
Sets the process file. |
void |
setRootOperator(ProcessRootOperator root)
Sets the current root operator. |
void |
setupFromXML(java.lang.String xmlString)
Creates the process from the given XML. |
boolean |
shouldStop()
Returns true iff the process should be stopped. |
void |
stop()
Stops the process as soon as possible. |
void |
store(java.lang.String name,
IOObject object)
Returns the macro handler. |
java.lang.String |
toString()
|
void |
unregisterName(java.lang.String name)
This method is used for unregistering a name from the operator name map. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PROCESS_STATE_UNKNOWN
public static final int PROCESS_STATE_STOPPED
public static final int PROCESS_STATE_PAUSED
public static final int PROCESS_STATE_RUNNING
| Constructor Detail |
|---|
public Process()
public Process(java.io.File file)
throws java.io.IOException,
XMLException
java.io.IOException
XMLException
public Process(java.lang.String xmlString)
throws java.io.IOException,
XMLException
java.io.IOException
XMLException
public Process(java.io.Reader in)
throws java.io.IOException,
XMLException
java.io.IOException
XMLException
public Process(java.io.InputStream in)
throws java.io.IOException,
XMLException
java.io.IOException
XMLException
public Process(java.net.URL url)
throws java.io.IOException,
XMLException
java.io.IOException
XMLException| Method Detail |
|---|
public void setupFromXML(java.lang.String xmlString)
throws java.io.IOException,
XMLException
java.io.IOException
XMLExceptionpublic java.lang.Object clone()
clone in class java.lang.Object@Deprecated public void setExperimentState(int state)
setProcessState(int) instead
@Deprecated public int getExperimentState()
getProcessState() instead
public int getProcessState()
public LogService getLog()
public MacroHandler getMacroHandler()
public void clearMacros()
public void store(java.lang.String name,
IOObject object)
public IOObject retrieve(java.lang.String name,
boolean remove)
public void clearStorage()
public void addLoggingListener(LoggingListener loggingListener)
public void removeLoggingListener(LoggingListener loggingListener)
public boolean dataTableExists(java.lang.String name)
public void addDataTable(DataTable table)
public void clearDataTable(java.lang.String name)
public void deleteDataTable(java.lang.String name)
public DataTable getDataTable(java.lang.String name)
public java.util.Collection<DataTable> getDataTables()
public void addReportStream(ReportStream stream)
public ReportStream getReportStream(java.lang.String name)
public void removeReportStream(java.lang.String name)
name - of the report stream given in the ReportGenerator operatorpublic void clearReportStreams()
public void setRootOperator(ProcessRootOperator root)
public ProcessRootOperator getRootOperator()
@Deprecated public java.io.File getExperimentFile()
getProcessFile() instead
public java.io.File getProcessFile()
public Operator getOperator(java.lang.String name)
public Operator getCurrentOperator()
public java.util.Collection<Operator> getAllOperators()
public java.util.Collection<java.lang.String> getAllOperatorNames()
public void setCurrentOperator(Operator operator)
public void pause(Operator operator,
IOContainer iocontainer,
int breakpointType)
public void resume()
public void stop()
public boolean shouldStop()
public void addBreakpointListener(BreakpointListener listener)
public void removeBreakpointListener(BreakpointListener listener)
public void fireResumeEvent()
public java.util.List<UnknownParameterInformation> getUnknownParameters()
public void clearUnknownParameters()
@Deprecated public boolean checkExperiment(IOContainer inputContainer)
checkProcess(IOContainer) instead
public boolean checkProcess(IOContainer inputContainer)
public final IOContainer run()
throws OperatorException
OperatorException
public final IOContainer run(int logVerbosity)
throws OperatorException
OperatorException
public final IOContainer run(IOContainer input)
throws OperatorException
OperatorException
public final IOContainer run(IOContainer input,
int logVerbosity)
throws OperatorException
OperatorException
public final IOContainer run(IOContainer input,
boolean cleanUp)
throws OperatorException
OperatorException
public final IOContainer run(IOContainer input,
int logVerbosity,
boolean cleanUp)
throws OperatorException
OperatorExceptionpublic static java.nio.charset.Charset getEncoding(java.lang.String encoding)
public void save()
throws java.io.IOException
java.io.IOException
public void save(java.io.File file)
throws java.io.IOException
java.io.IOException@Deprecated public void setExperimentFile(java.io.File file)
setProcessFile(File) instead.
public void setProcessFile(java.io.File file)
public java.io.File resolveFileName(java.lang.String name)
public void readProcess(java.io.Reader in)
throws XMLException,
java.io.IOException
XMLException
java.io.IOException
public java.lang.String registerName(java.lang.String name,
Operator operator)
public void unregisterName(java.lang.String name)
public int notifyRenaming(java.lang.String oldName,
java.lang.String newName)
public java.lang.String toString()
toString in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||