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

📄 carrier.html

📁 一个用来控制poineer2型机器人的智能体软件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="saphiraManager_"><!-- --></A><H3>
saphiraManager_</H3>
<PRE>
protected <A HREF="../../OaaSaphira/CarrierUnit/SaphiraManager.html">SaphiraManager</A> <B>saphiraManager_</B></PRE>
<DL>
<DD>The interface to the Saphira environment.<p>Communicates with Saphira starting Colbert scripts, starting tasks etc.</DL>
<HR>

<A NAME="oaaManager_"><!-- --></A><H3>
oaaManager_</H3>
<PRE>
protected com.sri.oaa2.lib.LibOaa <B>oaaManager_</B></PRE>
<DL>
<DD>The interface to the OAA facilitator. <p> Implements the communication feature in the agent.</DL>
<HR>

<A NAME="isFree_"><!-- --></A><H3>
isFree_</H3>
<PRE>
protected boolean <B>isFree_</B></PRE>
<DL>
<DD>Defines if the carrier is free and ready for performing tasks.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="Carrier(java.lang.String[])"><!-- --></A><H3>
Carrier</H3>
<PRE>
public <B>Carrier</B>(java.lang.String[]&nbsp;args)</PRE>
<DL>
<DD>Class constructor. Starts the OAA event loop and the Saphira environment. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>args</CODE> - The command line arguments. Specifies the address and the port number where to find the OAA facilitator.</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="isFree()"><!-- --></A><H3>
isFree</H3>
<PRE>
public boolean <B>isFree</B>()</PRE>
<DL>
<DD>Determines if the carrier is free and ready for performing tasks.<p><DD><DL>
<DT><B>Returns:</B><DD>true if the carrier is free and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="setFree(boolean)"><!-- --></A><H3>
setFree</H3>
<PRE>
protected void <B>setFree</B>(boolean&nbsp;val)</PRE>
<DL>
<DD>Sets carrier status true/false (free/busy).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The carrier status to set.</DL>
</DD>
</DL>
<HR>

<A NAME="oaaEventCallback(com.sri.oaa2.icl.IclTerm, com.sri.oaa2.icl.IclList, com.sri.oaa2.icl.IclList)"><!-- --></A><H3>
oaaEventCallback</H3>
<PRE>
public boolean <B>oaaEventCallback</B>(com.sri.oaa2.icl.IclTerm&nbsp;goal,                                com.sri.oaa2.icl.IclList&nbsp;params,                                com.sri.oaa2.icl.IclList&nbsp;answers)</PRE>
<DL>
<DD>The OAA event callback. Is called by the OAA library and shouldn't be called directly from user code. Entry point for event handling.<p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>goal</CODE> - Event goal, for example "bringto(cup, transferplace)".<DD><CODE>params</CODE> - Event parameters for example "[block(true)]".<DD><CODE>answers</CODE> - A list with answers for example "answer1(true), answer2(false)".<DT><B>Returns:</B><DD>true if an answer was found and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="doBringTo(java.lang.String, java.lang.String)"><!-- --></A><H3>
doBringTo</H3>
<PRE>
protected void <B>doBringTo</B>(java.lang.String&nbsp;obj,                         java.lang.String&nbsp;target)</PRE>
<DL>
<DD>Implements the bringto activity to move the object specified by obj to the location specified by target. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - The object, for example "cup".<DD><CODE>target</CODE> - The target, for example "transferplace".</DL>
</DD>
</DL>
<HR>

<A NAME="proceedBringTo(com.sri.oaa2.icl.IclTerm, com.sri.oaa2.icl.IclList, com.sri.oaa2.icl.IclList)"><!-- --></A><H3>
proceedBringTo</H3>
<PRE>
public boolean <B>proceedBringTo</B>(com.sri.oaa2.icl.IclTerm&nbsp;goal,                              com.sri.oaa2.icl.IclList&nbsp;params,                              com.sri.oaa2.icl.IclList&nbsp;answers)</PRE>
<DL>
<DD>Manages the bringto operation. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>goal</CODE> - Event goal, for example "bringto(cup, transferplace)".<DD><CODE>params</CODE> - Event parameters, for example "[block(true)]".<DD><CODE>answers</CODE> - The address of this agent, for example "addr(tcp('141.22.10.3'), 3378)".<DT><B>Returns:</B><DD>true if an answer was found and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="doGoTo(java.lang.String)"><!-- --></A><H3>
doGoTo</H3>
<PRE>
protected void <B>doGoTo</B>(java.lang.String&nbsp;target)</PRE>
<DL>
<DD>Implements the goto activity. The carrier goes to the location specified by target. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>target</CODE> - Currently only a placeholder.</DL>
</DD>
</DL>
<HR>

<A NAME="proceedGoTo(com.sri.oaa2.icl.IclTerm, com.sri.oaa2.icl.IclList, com.sri.oaa2.icl.IclList)"><!-- --></A><H3>
proceedGoTo</H3>
<PRE>
protected boolean <B>proceedGoTo</B>(com.sri.oaa2.icl.IclTerm&nbsp;goal,                              com.sri.oaa2.icl.IclList&nbsp;params,                              com.sri.oaa2.icl.IclList&nbsp;answers)</PRE>
<DL>
<DD>Manages the goto operation. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>goal</CODE> - Event goal, for example "goto(transferplace)".<DD><CODE>params</CODE> - Event parameters, for example "[block(true)]".<DD><CODE>answers</CODE> - The address of this agent, for example "addr(tcp('141.22.10.3', 3378), 200)".<DT><B>Returns:</B><DD>true if an answer was found and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="proceedCheckFree(com.sri.oaa2.icl.IclTerm, com.sri.oaa2.icl.IclList, com.sri.oaa2.icl.IclList)"><!-- --></A><H3>
proceedCheckFree</H3>
<PRE>
protected boolean <B>proceedCheckFree</B>(com.sri.oaa2.icl.IclTerm&nbsp;goal,                                   com.sri.oaa2.icl.IclList&nbsp;params,                                   com.sri.oaa2.icl.IclList&nbsp;answers)</PRE>
<DL>
<DD>Manages the checkfree operation. Checks if the carrier can move the specified object to the specified location. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>goal</CODE> - Event goal, for example "checkfree(cup,transferplace)".<DD><CODE>params</CODE> - Event parameters, for example "[block(true)]".<DD><CODE>answers</CODE> - The address of this agent, for example "addr(tcp('141.22.10.3', 3378), 200)".<DT><B>Returns:</B><DD>true if an answer was found and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="doProceedTaskFinished(java.lang.String)"><!-- --></A><H3>
doProceedTaskFinished</H3>
<PRE>
protected int <B>doProceedTaskFinished</B>(java.lang.String&nbsp;task)</PRE>
<DL>
<DD>Implements the taskfinished activity. Checks if the task specified by task is finished in Saphira. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>task</CODE> - A Saphira task name.</DL>
</DD>
</DL>
<HR>

<A NAME="proceedTaskFinished(com.sri.oaa2.icl.IclTerm, com.sri.oaa2.icl.IclList, com.sri.oaa2.icl.IclList)"><!-- --></A><H3>
proceedTaskFinished</H3>
<PRE>
protected boolean <B>proceedTaskFinished</B>(com.sri.oaa2.icl.IclTerm&nbsp;goal,                                      com.sri.oaa2.icl.IclList&nbsp;params,                                      com.sri.oaa2.icl.IclList&nbsp;answers)</PRE>
<DL>
<DD>Manages the taskfinished operation. Checks if the specified task is finished. <p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>goal</CODE> - Event goal, for example "taskfinished(dobringtoac)".<DD><CODE>params</CODE> - Event parameters, for example "[block(true)]".<DD><CODE>answers</CODE> - The address of this agent, for example "addr(tcp('141.22.10.3', 3378), 200)".<DT><B>Returns:</B><DD>true if an answer was found and false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="testSaphira()"><!-- --></A><H3>
testSaphira</H3>
<PRE>
public void <B>testSaphira</B>()</PRE>
<DL>
<DD>Tests the Saphira interface.</DL>
<HR>

<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
<DL>
<DD>Runs the Carrier agent.<p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>args</CODE> - Command line arguments.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="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;PREV CLASS&nbsp;
&nbsp;<A HREF="../../OaaSaphira/CarrierUnit/FrmSample.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Carrier.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&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>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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