📄 process.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_13) on Mon Jul 14 01:33:47 CEST 2008 --><TITLE>Process (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.Process class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="Process (RapidMiner Class Documentation)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Process.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../com/rapidminer/ObjectVisualizer.html" title="interface in com.rapidminer"><B>PREV CLASS</B></A> <A HREF="../../com/rapidminer/ProcessListener.html" title="interface in com.rapidminer"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?com/rapidminer/Process.html" target="_top"><B>FRAMES</B></A> <A HREF="Process.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.rapidminer</FONT><BR>Class Process</H2><PRE>java.lang.Object <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.Process</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../com/rapidminer/Experiment.html" title="class in com.rapidminer">Experiment</A></DD></DL><HR><DL><DT><PRE>public class <B>Process</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable</DL></PRE><P><p>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.</p> <p>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 <A HREF="../../com/rapidminer/Process.html#run()"><CODE>run()</CODE></A> method.</p><P><P><DL><DT><B>Version:</B></DT> <DD>$Id: Process.java,v 1.19 2008/07/11 09:52:55 ingomierswa Exp $</DD><DT><B>Author:</B></DT> <DD>Ingo Mierswa</DD></DL><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#PROCESS_STATE_PAUSED">PROCESS_STATE_PAUSED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#PROCESS_STATE_RUNNING">PROCESS_STATE_RUNNING</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#PROCESS_STATE_STOPPED">PROCESS_STATE_STOPPED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#PROCESS_STATE_UNKNOWN">PROCESS_STATE_UNKNOWN</A></B></CODE><BR> </TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#Process()">Process</A></B>()</CODE><BR> Constructs an process consisting only of a SimpleOperatorChain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#Process(java.io.File)">Process</A></B>(java.io.File file)</CODE><BR> Creates a new process from the given process file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#Process(java.io.InputStream)">Process</A></B>(java.io.InputStream in)</CODE><BR> Reads an process configuration from the given file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#Process(java.lang.String)">Process</A></B>(java.lang.String xmlString)</CODE><BR> Reads an process configuration from an XML String.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#Process(java.net.URL)">Process</A></B>(java.net.URL url)</CODE><BR> Creates a new process from the given URL.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#addBreakpointListener(com.rapidminer.BreakpointListener)">addBreakpointListener</A></B>(<A HREF="../../com/rapidminer/BreakpointListener.html" title="interface in com.rapidminer">BreakpointListener</A> listener)</CODE><BR> Removes a breakpoint listener.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../com/rapidminer/datatable/DataTable.html" title="interface in com.rapidminer.datatable">DataTable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#addDataTable(com.rapidminer.datatable.DataTable)">addDataTable</A></B>(<A HREF="../../com/rapidminer/datatable/DataTable.html" title="interface in com.rapidminer.datatable">DataTable</A> table)</CODE><BR> Returns the data table associated with the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#addReportStream(com.rapidminer.report.ReportStream)">addReportStream</A></B>(<A HREF="../../com/rapidminer/report/ReportStream.html" title="interface in com.rapidminer.report">ReportStream</A> stream)</CODE><BR> This method adds a new report stream with the given name</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#checkExperiment(com.rapidminer.operator.IOContainer)">checkExperiment</A></B>(<A HREF="../../com/rapidminer/operator/IOContainer.html" title="class in com.rapidminer.operator">IOContainer</A> inputContainer)</CODE><BR> <B>Deprecated.</B> <I>Use <A HREF="../../com/rapidminer/Process.html#checkProcess(com.rapidminer.operator.IOContainer)"><CODE>checkProcess(IOContainer)</CODE></A> instead</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#checkProcess(com.rapidminer.operator.IOContainer)">checkProcess</A></B>(<A HREF="../../com/rapidminer/operator/IOContainer.html" title="class in com.rapidminer.operator">IOContainer</A> inputContainer)</CODE><BR> Checks for correct number of inner operators, properties, and io.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#clearDataTables()">clearDataTables</A></B>()</CODE><BR> Removes all data tables before running a new process.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#clearMacros()">clearMacros</A></B>()</CODE><BR> Clears all macros.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#clearReportStreams()">clearReportStreams</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#clone()">clone</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.File</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#createFile(java.lang.String)">createFile</A></B>(java.lang.String name)</CODE><BR> Creates a new file relative to the process file path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#dataTableExists(java.lang.String)">dataTableExists</A></B>(java.lang.String name)</CODE><BR> Returns true if a data table object with the given name exists.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#fireBreakpointEvent(com.rapidminer.operator.Operator, com.rapidminer.operator.IOContainer, int)">fireBreakpointEvent</A></B>(<A HREF="../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A> operator, <A HREF="../../com/rapidminer/operator/IOContainer.html" title="class in com.rapidminer.operator">IOContainer</A> ioContainer, int location)</CODE><BR> Fires the event that the process was paused.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#fireResumeEvent()">fireResumeEvent</A></B>()</CODE><BR> Fires the event that the process was resumed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Collection<java.lang.String></CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#getAllOperatorNames()">getAllOperatorNames</A></B>()</CODE><BR> Returns a Set view of all operator names (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Collection<<A HREF="../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#getAllOperators()">getAllOperators</A></B>()</CODE><BR> Returns a Collection view of all operators.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#getCurrentOperator()">getCurrentOperator</A></B>()</CODE><BR> Returns the operator that is currently being executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../com/rapidminer/datatable/DataTable.html" title="interface in com.rapidminer.datatable">DataTable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../com/rapidminer/Process.html#getDataTable(java.lang.String)">getDataTable</A></B>(java.lang.String name)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -