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

📄 jshop2gui.html

📁 SHOP2 一个人工智能里面关于任务分解和任务规划的系统。JSHOP2是其java版本。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="selectedNodeName"><!-- --></A><H3>selectedNodeName</H3><PRE>protected java.lang.String <B>selectedNodeName</B></PRE><DL><DL></DL></DL><HR><A NAME="screenSize"><!-- --></A><H3>screenSize</H3><PRE>protected java.awt.Dimension <B>screenSize</B></PRE><DL><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="JSHOP2GUI()"><!-- --></A><H3>JSHOP2GUI</H3><PRE>public <B>JSHOP2GUI</B>()</PRE><DL><DD>The default constructor.  Call this constructor only after the plan step list has been initialized by <code>setPlanStepList</code> and the the  number of plans has been set by <code>setNumPlans</code>.  When called successfully, this constructor will launch the GUI.<P></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="setPlanStepList(java.util.ArrayList)"><!-- --></A><H3>setPlanStepList</H3><PRE>public static void <B>setPlanStepList</B>(java.util.ArrayList&lt;<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&gt;&nbsp;inputList)</PRE><DL><DD>This function is used to pass in the list of plan steps that represent the  actions taken by JSHOP2 to find plans for the current problem.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inputList</CODE> - - an ArrayList of PlanStepInfo objects that are used to reconstruct the plan finding process</DL></DD></DL><HR><A NAME="setNumPlans(int)"><!-- --></A><H3>setNumPlans</H3><PRE>public static void <B>setNumPlans</B>(int&nbsp;numPlansIn)</PRE><DL><DD>This function is used to set the total number of plans found for the current problem by JSHOP2<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numPlansIn</CODE> - - an integer representing the total number of plans found</DL></DD></DL><HR><A NAME="initFieldsAndCreateInterface()"><!-- --></A><H3>initFieldsAndCreateInterface</H3><PRE>private void <B>initFieldsAndCreateInterface</B>()</PRE><DL><DD>Initializes all fields and constructs the graphical interface<P><DD><DL></DL></DD></DL><HR><A NAME="runOneStep()"><!-- --></A><H3>runOneStep</H3><PRE>private boolean <B>runOneStep</B>()</PRE><DL><DD>Executes a single step in the plan step list<P><DD><DL></DL></DD></DL><HR><A NAME="processPlanFound()"><!-- --></A><H3>processPlanFound</H3><PRE>private void <B>processPlanFound</B>()</PRE><DL><DD>Helper function to runOneStep(). This function executes the steps required to display the plan on-screen<P><DD><DL></DL></DD></DL><HR><A NAME="processTrying(JSHOP2.PlanStepInfo, java.util.ArrayList)"><!-- --></A><H3>processTrying</H3><PRE>private javax.swing.tree.DefaultMutableTreeNode <B>processTrying</B>(<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step,                                                              java.util.ArrayList&lt;<A HREF="../JSHOP2/JSHOP2GUI.Node.html" title="class in JSHOP2">JSHOP2GUI.Node</A>&gt;&nbsp;toAdd)</PRE><DL><DD>Helper function to runOneStep(). This function determines the current state of the world for every node and inserts the goal task into the tree.<P><DD><DL></DL></DD></DL><HR><A NAME="processReduced(JSHOP2.PlanStepInfo, java.util.ArrayList)"><!-- --></A><H3>processReduced</H3><PRE>private javax.swing.tree.DefaultMutableTreeNode <B>processReduced</B>(<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step,                                                               java.util.ArrayList&lt;<A HREF="../JSHOP2/JSHOP2GUI.Node.html" title="class in JSHOP2">JSHOP2GUI.Node</A>&gt;&nbsp;toAdd)</PRE><DL><DD>Helper function to runOneStep(). This function adds children to existing nodes and marks them if they are ordered.<P><DD><DL></DL></DD></DL><HR><A NAME="processStateChanged(JSHOP2.PlanStepInfo)"><!-- --></A><H3>processStateChanged</H3><PRE>private javax.swing.tree.DefaultMutableTreeNode <B>processStateChanged</B>(<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="processSetGoalTasks(JSHOP2.PlanStepInfo, java.util.ArrayList)"><!-- --></A><H3>processSetGoalTasks</H3><PRE>private javax.swing.tree.DefaultMutableTreeNode <B>processSetGoalTasks</B>(<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step,                                                                    java.util.ArrayList&lt;<A HREF="../JSHOP2/JSHOP2GUI.Node.html" title="class in JSHOP2">JSHOP2GUI.Node</A>&gt;&nbsp;toAdd)</PRE><DL><DD>Sets the goal tasks for the problem.  The goal tasks are stored in the 'children' field of the 'step' parameter.  Each element of 'children' represents a TaskList that encapsulates a goal task.  Calling getTask() on each TaskList gives access to the TaskAtom that represents the goal task.  If getTask() returns null, then that means the goal task is encapsulated one or more levels down and getSubtasks() must be called.  This is done recursively by 'setGoalTasksHelper'.<P><DD><DL></DL></DD></DL><HR><A NAME="setGoalTasksHelper(JSHOP2.TaskList[], JSHOP2.PlanStepInfo, java.util.ArrayList)"><!-- --></A><H3>setGoalTasksHelper</H3><PRE>private void <B>setGoalTasksHelper</B>(<A HREF="../JSHOP2/TaskList.html" title="class in JSHOP2">TaskList</A>[]&nbsp;children,                                <A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step,                                java.util.ArrayList&lt;<A HREF="../JSHOP2/JSHOP2GUI.Node.html" title="class in JSHOP2">JSHOP2GUI.Node</A>&gt;&nbsp;toAdd)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="processBacktracking(JSHOP2.PlanStepInfo)"><!-- --></A><H3>processBacktracking</H3><PRE>private void <B>processBacktracking</B>(<A HREF="../JSHOP2/PlanStepInfo.html" title="class in JSHOP2">PlanStepInfo</A>&nbsp;step)</PRE><DL><DD>Helper function to runOneStep(). This function takes care of backtracking procedures.<P><DD><DL></DL></DD></DL><HR><A NAME="backtrack(javax.swing.tree.DefaultMutableTreeNode)"><!-- --></A><H3>backtrack</H3><PRE>private void <B>backtrack</B>(javax.swing.tree.DefaultMutableTreeNode&nbsp;treeNode)</PRE><DL><DD>This function handles the procedures that take place when backtracking. First, it modifies the leafNodes list and then deletes any children under treeNode.<P><DD><DL></DL></DD></DL><HR><A NAME="renumberLeaves()"><!-- --></A><H3>renumberLeaves</H3><PRE>private void <B>renumberLeaves</B>()</PRE><DL><DD>This function renumbers all current leaf nodes in the order they were visited relative to one another.<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>&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/JSHOP2.html" title="class in JSHOP2"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../JSHOP2/JSHOP2GUI.LeafTrackerDialog.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/JSHOP2GUI.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="JSHOP2GUI.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;<A HREF="#nested_class_summary">NESTED</A>&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 + -