📄 tasklist.html
字号:
<DL><DD>In case this task list is not-atomic, this array represents it. Otherwise, this variable will be <code>null</code>.<P><DL></DL></DL><HR><A NAME="task"><!-- --></A><H3>task</H3><PRE>private <A HREF="../JSHOP2/TaskAtom.html" title="class in JSHOP2">TaskAtom</A> <B>task</B></PRE><DL><DD>In case this task list is atomic, this variable represents it. Otherwise, this variable will be <code>null</code>.<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="TaskList()"><!-- --></A><H3>TaskList</H3><PRE>private <B>TaskList</B>()</PRE><DL><DD>To initialize this task list as an empty one (i.e., an ordered non-atomic task list of length 0). Note that this is a private function in order to minimize its use. In case an empty task list is needed, <code>TaskList.empty</code> should be used to save memory.<P></DL><HR><A NAME="TaskList(JSHOP2.TaskAtom)"><!-- --></A><H3>TaskList</H3><PRE>public <B>TaskList</B>(<A HREF="../JSHOP2/TaskAtom.html" title="class in JSHOP2">TaskAtom</A> taskIn)</PRE><DL><DD>To initialize this task list as an atomic one.<P><DL><DT><B>Parameters:</B><DD><CODE>taskIn</CODE> - the task atom this task list will represent.</DL></DL><HR><A NAME="TaskList(int, boolean)"><!-- --></A><H3>TaskList</H3><PRE>public <B>TaskList</B>(int size, boolean orderedIn)</PRE><DL><DD>To initialize this task list as a non-atomic one.<P><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the number of task lists in the task list this object represents.<DD><CODE>orderedIn</CODE> - whether or not this task list is ordered.</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/TaskList.html" title="class in JSHOP2">TaskList</A> <B>bind</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[] binding)</PRE><DL><DD>To bind a task list to a given binding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>binding</CODE> - the given binding<DT><B>Returns:</B><DD>the resulting task list.</DL></DD></DL><HR><A NAME="createTaskList(java.util.Vector, boolean)"><!-- --></A><H3>createTaskList</H3><PRE>public static <A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A> <B>createTaskList</B>(java.util.Vector<<A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A>> subtasksIn, boolean orderedIn)</PRE><DL><DD>To create a non-atomic task list. This is defined as a static function rather than a constructor because it returns <code>TaskList.empty</code> if the required task list is of length 0 rather than creating a new empty task list. Other than that, this function acts like a constructor.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>subtasksIn</CODE> - a <code>Vector</code> of subtasks the output task list will represent.<DD><CODE>orderedIn</CODE> - whether or not the output task list should be ordered.<DT><B>Returns:</B><DD>the resulting task list.</DL></DD></DL><HR><A NAME="getFirst()"><!-- --></A><H3>getFirst</H3><PRE>public java.util.LinkedList<<A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A>> <B>getFirst</B>()</PRE><DL><DD>To return a <code>LinkedList</code> of the task atoms we have the option to achieve right now. This list might have more than one member because of the existence of unordered task lists.<P><DD><DL><DT><B>Returns:</B><DD>a <code>LinkedList</code> of the task atoms we have the option to achieve right now.</DL></DD></DL><HR><A NAME="getFirstHelper(java.util.LinkedList)"><!-- --></A><H3>getFirstHelper</H3><PRE>private boolean <B>getFirstHelper</B>(java.util.LinkedList<<A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A>> res)</PRE><DL><DD>The helper function to calculate a <code>LinkedList</code> of the task atoms we have the option to achieve right now.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>res</CODE> - this <code>LinkedList</code> stores the task atoms we have incrementally calculated so far.<DT><B>Returns:</B><DD><code>true</code> if there can be no more task atoms we have the option to achieve next because we have encountered an immediate task atom, <code>false</code> otherwise. This return value is a sign for this function to stop calling itself recursively for more options in case an immediate task atom has been encountered.</DL></DD></DL><HR><A NAME="getInitCode(java.lang.String)"><!-- --></A><H3>getInitCode</H3><PRE>public java.lang.String <B>getInitCode</B>(java.lang.String what)</PRE><DL><DD>This function produces Java code used to create this task list either as an atomic task list or recursively, as a list of other task lists.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>what</CODE> - the <code>String</code> name of the task list created by this piece of code.<DT><B>Returns:</B><DD>the Java code as a <code>String</code>.</DL></DD></DL><HR><A NAME="getTask()"><!-- --></A><H3>getTask</H3><PRE>public <A HREF="../JSHOP2/TaskAtom.html" title="class in JSHOP2">TaskAtom</A> <B>getTask</B>()</PRE><DL><DD>To return the task atom associated with this task list.<P><DD><DL><DT><B>Returns:</B><DD>the task atom associated with this task list in case this is an atomic task list, <code>null</code> otherwise.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Whether or not this task list is, or has become as result of task decomposition, an empty one.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if this task list is equivalent to an empty task list, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="print()"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>()</PRE><DL><DD>This function is used to print this task list.<P><DD><DL></DL></DD></DL><HR><A NAME="replace(JSHOP2.TaskList)"><!-- --></A><H3>replace</H3><PRE>public void <B>replace</B>(<A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A> tasksIn)</PRE><DL><DD>This function replaces (i.e., decomposes) a given task atom with a task list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>tasksIn</CODE> - the decomposition to replace the task atom.</DL></DD></DL><HR><A NAME="setVarCount(int)"><!-- --></A><H3>setVarCount</H3><PRE>public void <B>setVarCount</B>(int varCountIn)</PRE><DL><DD>This function sets the number of variables for this task list. This number is used to return bindings of the appropriate size.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>varCountIn</CODE> - the number of variables for this task list.</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 task list.<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 returns a printable <code>String</code> representation of this task list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>String</code> representation.</DL></DD></DL><HR><A NAME="undo()"><!-- --></A><H3>undo</H3><PRE>public void <B>undo</B>()</PRE><DL><DD>This function undoes the decomposition of a task atom to a task list in case of a backtrack over the decision to decompose the task.<P><DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A> <B>clone</B>()</PRE><DL><DD>This clone function was added so that TaskLists can be copied and passed to JSHOP2GUI. <Added 5/12/06><P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isOrdered()"><!-- --></A><H3>isOrdered</H3><PRE>public boolean <B>isOrdered</B>()</PRE><DL><DD>Returns whether or not this is an ordered task list <Added 5/14/06><P><DD><DL></DL></DD></DL><HR><A NAME="getSubtasks()"><!-- --></A><H3>getSubtasks</H3><PRE>public <A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A>[] <B>getSubtasks</B>()</PRE><DL><DD>Returns the task list's subtasks<P><DD><DL><DT><B>Returns:</B><DD>A TaskList[] that represents the subtasks of this task list <Added 5/14/06></DL></DD></DL><HR><A NAME="getChildren(java.util.ArrayList)"><!-- --></A><H3>getChildren</H3><PRE>public void <B>getChildren</B>(java.util.ArrayList<java.lang.String> childrenList)</PRE><DL><DD>Returns an ArrayList of strings that represent the children of this compound task. Used in conjunction with with JSHOP2GUI. <Added 5/26/06><P><DD><DL></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/TaskAtom.html" title="class in JSHOP2"><B>PREV CLASS</B></A> <A HREF="../JSHOP2/Term.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/TaskList.html" target="_top"><B>FRAMES</B></A> <A HREF="TaskList.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 + -