📄 operator.html
字号:
<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="add"><!-- --></A><H3>add</H3><PRE>private <A HREF="../JSHOP2/DelAddElement.html" title="class in JSHOP2">DelAddElement</A>[] <B>add</B></PRE><DL><DD>Represents the add list in case it is a real list and not a variable.<P><DL></DL></DL><HR><A NAME="addVarIdx"><!-- --></A><H3>addVarIdx</H3><PRE>private int <B>addVarIdx</B></PRE><DL><DD>Represents the add list in case it is a variable (The integer value represents variable's index), otherwise it is -1.<P><DL></DL></DL><HR><A NAME="cost"><!-- --></A><H3>cost</H3><PRE>private <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> <B>cost</B></PRE><DL><DD>Cost of this operator.<P><DL></DL></DL><HR><A NAME="del"><!-- --></A><H3>del</H3><PRE>private <A HREF="../JSHOP2/DelAddElement.html" title="class in JSHOP2">DelAddElement</A>[] <B>del</B></PRE><DL><DD>Represents the delete list in case it is a real list and not a variable.<P><DL></DL></DL><HR><A NAME="delVarIdx"><!-- --></A><H3>delVarIdx</H3><PRE>private int <B>delVarIdx</B></PRE><DL><DD>Represents the delete list in case it is a variable (The integer value represents variable's index), otherwise it is -1.<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="Operator(JSHOP2.Predicate, int, int, JSHOP2.Term)"><!-- --></A><H3>Operator</H3><PRE>public <B>Operator</B>(<A HREF="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</A> head, int delVarIdxIn, int addVarIdxIn, <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> costIn)</PRE><DL><DD>To initialize the operator.<P><DL><DT><B>Parameters:</B><DD><CODE>head</CODE> - head of the operator.<DD><CODE>delVarIdxIn</CODE> - the index of the delete list as a variable, -1 if the delete list is not a variable.<DD><CODE>addVarIdxIn</CODE> - the index of the add list as a variable, -1 if the add list is not a variable.<DD><CODE>costIn</CODE> - the cost of the operator.</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="apply(JSHOP2.Term[], JSHOP2.State, java.util.Vector[])"><!-- --></A><H3>apply</H3><PRE>public boolean <B>apply</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[] binding, <A HREF="../JSHOP2/State.html" title="class in JSHOP2">State</A> s, java.util.Vector[] delAdd)</PRE><DL><DD>This function is used to apply this operator to a given state.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>binding</CODE> - the current binding.<DD><CODE>s</CODE> - current state of the world.<DD><CODE>delAdd</CODE> - a 4-member array of type <code>Vector</code> used to keep track of the atoms and protections deleted from and added to the current state of the world as the result of applying this operator. This data can be used later in case of a backtrack to undo these changes.<DT><B>Returns:</B><DD><code>true</code> if the operator was applicable, <code>false</code> otherwise. An operator is not applicable when at least one of the atoms it tries to delete is protected.</DL></DD></DL><HR><A NAME="getCost(JSHOP2.Term[])"><!-- --></A><H3>getCost</H3><PRE>public double <B>getCost</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[] binding)</PRE><DL><DD>To get the cost of this operator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>binding</CODE> - the binding to be applied to the cost term.<DT><B>Returns:</B><DD>the cost of applying this operator.</DL></DD></DL><HR><A NAME="setAdd(JSHOP2.DelAddElement[])"><!-- --></A><H3>setAdd</H3><PRE>public void <B>setAdd</B>(<A HREF="../JSHOP2/DelAddElement.html" title="class in JSHOP2">DelAddElement</A>[] addIn)</PRE><DL><DD>To set the add list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>addIn</CODE> - the add list.</DL></DD></DL><HR><A NAME="setDel(JSHOP2.DelAddElement[])"><!-- --></A><H3>setDel</H3><PRE>public void <B>setDel</B>(<A HREF="../JSHOP2/DelAddElement.html" title="class in JSHOP2">DelAddElement</A>[] delIn)</PRE><DL><DD>To set the delete list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>delIn</CODE> - the delete list.</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> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </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="../JSHOP2/NumberedPredicate.html" title="class in JSHOP2"><B>PREV CLASS</B></A> <A HREF="../JSHOP2/Plan.html" title="class in JSHOP2"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html?JSHOP2/Operator.html" target="_top"><B>FRAMES</B></A> <A HREF="Operator.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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -