📄 operatorservice.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:36:50 CEST 2008 --><TITLE>OperatorService (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.tools.OperatorService class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="OperatorService (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/OperatorService.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/tools/Ontology.html" title="class in com.rapidminer.tools"><B>PREV CLASS</B></A> <A HREF="../../../com/rapidminer/tools/OutputStreamMultiplier.html" title="class in com.rapidminer.tools"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?com/rapidminer/tools/OperatorService.html" target="_top"><B>FRAMES</B></A> <A HREF="OperatorService.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.tools</FONT><BR>Class OperatorService</H2><PRE>java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.tools.OperatorService</B></PRE><HR><DL><DT><PRE>public class <B>OperatorService</B><DT>extends java.lang.Object</DL></PRE><P><p>This class reads the description of the RapidMiner operators. These descriptions are entries in a XML File like:</p> <br> <code> <operators><br> <operator<br> name="OperatorName" <br> class="java.path.OperatorClass" <br> description="OperatorDescription" <br> deprecation="OperatorDeprecationInfo" <br> group="OperatorGroup" <br> icon="OperatorIcon" <br> /><br> </code><br> <p>The values (and the whole tag) for deprecation and icon might be omitted. If no deprecation info was specified, the operator is simply not deprecated. If no icon is specified, RapidMiner just uses the icon of the parent group.</p> <p>NOTE: This class should be used to create operators and is therefore an operator factory.</p><P><P><DL><DT><B>Version:</B></DT> <DD>$Id: OperatorService.java,v 1.12 2008/07/12 17:46:46 ingomierswa Exp $</DD><DT><B>Author:</B></DT> <DD>Ingo Mierswa, Simon Fischer</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 java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#MAIN_OPERATORS_NAME">MAIN_OPERATORS_NAME</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/tools/OperatorService.html#OperatorService()">OperatorService</A></B>()</CODE><BR> </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>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T extends <A HREF="../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A>> <BR>T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#createOperator(java.lang.Class)">createOperator</A></B>(java.lang.Class<T> clazz)</CODE><BR> Use this method to create an operator from an operator class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/tools/OperatorService.html#createOperator(com.rapidminer.operator.OperatorDescription)">createOperator</A></B>(<A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A> description)</CODE><BR> Use this method to create an operator of a given description object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/tools/OperatorService.html#createOperator(java.lang.String)">createOperator</A></B>(java.lang.String typeName)</CODE><BR> Use this method to create an operator from the given class name (from operator description file operators.xml, not from the Java class name).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#defineXMLAliasPairs()">defineXMLAliasPairs</A></B>()</CODE><BR> Defines the alias pairs for the <A HREF="../../../com/rapidminer/tools/XMLSerialization.html" title="class in com.rapidminer.tools"><CODE>XMLSerialization</CODE></A> for all IOObject pairs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/rapidminer/tools/GroupTree.html" title="class in com.rapidminer.tools">GroupTree</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getGroups()">getGroups</A></B>()</CODE><BR> Returns the group hierarchy of all operators.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.Class<<A HREF="../../../com/rapidminer/operator/IOObject.html" title="interface in com.rapidminer.operator">IOObject</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getIOObjectClass(java.lang.String)">getIOObjectClass</A></B>(java.lang.String name)</CODE><BR> Returns the class for the short name of an IO object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Set<java.lang.String></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getIOObjectsNames()">getIOObjectsNames</A></B>()</CODE><BR> Returns a sorted set of all short IO object names.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getMainOperators()">getMainOperators</A></B>()</CODE><BR> Returns the main operator description file (XML).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getOperatorDescription(java.lang.String)">getOperatorDescription</A></B>(java.lang.String completeName)</CODE><BR> Returns the operator description for a given class name from the operators.xml file, e.g.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getOperatorDescriptions(java.lang.Class)">getOperatorDescriptions</A></B>(java.lang.Class clazz)</CODE><BR> Returns the operator descriptions for the operators which uses the given class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Set<java.lang.String></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getOperatorNames()">getOperatorNames</A></B>()</CODE><BR> Returns a collection of all operator names.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Set<<A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getOperatorsDelivering(java.lang.Class)">getOperatorsDelivering</A></B>(java.lang.Class ioObject)</CODE><BR> Returns a collection of all operator descriptions of operators which return the desired IO object as output.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Set<<A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#getOperatorsRequiring(java.lang.Class)">getOperatorsRequiring</A></B>(java.lang.Class ioObject)</CODE><BR> Returns a collection of all operator descriptions which requires the given IO object as input.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#registerOperator(com.rapidminer.operator.OperatorDescription)">registerOperator</A></B>(<A HREF="../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A> description)</CODE><BR> Registers the given operator description.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#registerOperators(java.lang.String, java.io.InputStream, java.lang.ClassLoader, boolean)">registerOperators</A></B>(java.lang.String name, java.io.InputStream operatorsXML, java.lang.ClassLoader classLoader, boolean addWekaOperators)</CODE><BR> Registers all operators from a given XML input stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/OperatorService.html#reloadIcons()">reloadIcons</A></B>()</CODE><BR> Reload all icons, e.g. after a look and feel change.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="MAIN_OPERATORS_NAME"><!-- --></A><H3>MAIN_OPERATORS_NAME</H3><PRE>public static final java.lang.String <B>MAIN_OPERATORS_NAME</B></PRE><DL><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -