⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 termvariable.html

📁 SHOP2 一个人工智能里面关于任务分解和任务规划的系统。JSHOP2是其java版本。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="index"><!-- --></A><H3>index</H3><PRE>private int <B>index</B></PRE><DL><DD>Variable symbols are mapped to integers at compile time, and these  integers are used thereafter to represent the variable symbols.<P><DL></DL></DL><HR><A NAME="variables"><!-- --></A><H3>variables</H3><PRE>private static <A HREF="../JSHOP2/TermVariable.html" title="class in JSHOP2">TermVariable</A>[] <B>variables</B></PRE><DL><DD>To represent the variable symbols that we know occur in the domain  description, so that there will be no duplicate copies of those symbols.  In other words, all variable symbols that represent the same thing in  different places point to the corresponding element in this array at run  time.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TermVariable(int)"><!-- --></A><H3>TermVariable</H3><PRE>public <B>TermVariable</B>(int&nbsp;indexIn)</PRE><DL><DD>To initialize this variable symbol.<P><DL><DT><B>Parameters:</B><DD><CODE>indexIn</CODE> - the integer associated with this variable symbol.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="bind(JSHOP2.Term[])"><!-- --></A><H3>bind</H3><PRE>public <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> <B>bind</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[]&nbsp;binding)</PRE><DL><DD>Since this term is a variable symbol, binding it basically means finding  out whether or not this variable is already mapped to something in the  input, and if so, returning the value this variable is mapped to.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#bind(JSHOP2.Term[])">bind</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>binding</CODE> - an array of terms, indexed by the integers associated with          variable symbols.<DT><B>Returns:</B><DD>the result of binding.</DL></DD></DL><HR><A NAME="equals(JSHOP2.Term)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>&nbsp;t)</PRE><DL><DD>This function returns <code>false</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#equals(JSHOP2.Term)">equals</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the term being compared to this term.<DT><B>Returns:</B><DD><code>true</code> if the two terms are equal, <code>false</code>          otherwise.</DL></DD></DL><HR><A NAME="findUnifier(JSHOP2.Term, JSHOP2.Term[])"><!-- --></A><H3>findUnifier</H3><PRE>public boolean <B>findUnifier</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>&nbsp;t,                           <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[]&nbsp;binding)</PRE><DL><DD>Find a unifier between this variable symbol and another given term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#findUnifier(JSHOP2.Term, JSHOP2.Term[])">findUnifier</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the term with which we are finding a unifier.<DD><CODE>binding</CODE> - the unifier to be returned.<DT><B>Returns:</B><DD><code>false</code> if the two terms can not be unified,          <code>true</code> otherwise.</DL></DD></DL><HR><A NAME="getIndex()"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>()</PRE><DL><DD>To get the index for this variable symbol.<P><DD><DL><DT><B>Returns:</B><DD>the integer associated with this variable symobl.</DL></DD></DL><HR><A NAME="getVariable(int)"><!-- --></A><H3>getVariable</H3><PRE>public static <A HREF="../JSHOP2/TermVariable.html" title="class in JSHOP2">TermVariable</A> <B>getVariable</B>(int&nbsp;index)</PRE><DL><DD>To return the correponding existing variable symbol.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the variable symbol to be returned.<DT><B>Returns:</B><DD>the corresponding existing variable symbol.</DL></DD></DL><HR><A NAME="initialize(int)"><!-- --></A><H3>initialize</H3><PRE>public static void <B>initialize</B>(int&nbsp;size)</PRE><DL><DD>To initialize an array of variable symbols that we know occur in the  domain description, so that there will be no duplicate copies of those  symbols. In other words, all variable symbols that represent the same  thing in different places point to the corresponding element in this  array at run time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the number of existing variable symbols.</DL></DD></DL><HR><A NAME="isGround()"><!-- --></A><H3>isGround</H3><PRE>public boolean <B>isGround</B>()</PRE><DL><DD>This function always returns <code>false</code> because a variable symbol  is never ground by definition.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#isGround()">isGround</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if this term is ground, <code>false</code>          otherwise.</DL></DD></DL><HR><A NAME="toCode()"><!-- --></A><H3>toCode</H3><PRE>public java.lang.String <B>toCode</B>()</PRE><DL><DD>This function produces Java code to create this variable symbol as a  term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/CompileTimeObject.html#toCode()">toCode</A></CODE> in class <CODE><A HREF="../JSHOP2/CompileTimeObject.html" title="class in JSHOP2">CompileTimeObject</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the produced code as a <code>String</code>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>This function is used to print this variable symbol.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#toString()">toString</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the printable <code>String</code> that shows the value of this          term.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../JSHOP2/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../JSHOP2/TermNumber.html" title="class in JSHOP2"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../index.html?JSHOP2/TermVariable.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TermVariable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -