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

📄 activitycontrol.html

📁 文件来自swarm.org
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A HREF="../../swarm/defobj/DefinedObject.html#describeID(java.lang.Object)">describeID</A>, <A HREF="../../swarm/defobj/DefinedObject.html#getDisplayName()">getDisplayName</A>, <A HREF="../../swarm/defobj/DefinedObject.html#getTypeName()">getTypeName</A>, <A HREF="../../swarm/defobj/DefinedObject.html#getZone()">getZone</A>, <A HREF="../../swarm/defobj/DefinedObject.html#perform(swarm.Selector)">perform</A>, <A HREF="../../swarm/defobj/DefinedObject.html#perform$with(swarm.Selector, java.lang.Object)">perform$with</A>, <A HREF="../../swarm/defobj/DefinedObject.html#perform$with$with(swarm.Selector, java.lang.Object, java.lang.Object)">perform$with$with</A>, <A HREF="../../swarm/defobj/DefinedObject.html#perform$with$with$with(swarm.Selector, java.lang.Object, java.lang.Object, java.lang.Object)">perform$with$with$with</A>, <A HREF="../../swarm/defobj/DefinedObject.html#respondsTo(swarm.Selector)">respondsTo</A>, <A HREF="../../swarm/defobj/DefinedObject.html#setDisplayName(java.lang.String)">setDisplayName</A>, <A HREF="../../swarm/defobj/DefinedObject.html#xfprint()">xfprint</A>, <A HREF="../../swarm/defobj/DefinedObject.html#xfprintid()">xfprintid</A>, <A HREF="../../swarm/defobj/DefinedObject.html#xprint()">xprint</A>, <A HREF="../../swarm/defobj/DefinedObject.html#xprintid()">xprintid</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.defobj.GetName"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.defobj.<A HREF="../../swarm/defobj/GetName.html">GetName</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/defobj/GetName.html#getName()">getName</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="attachToActivity(swarm.activity.ScheduleActivity)"><!-- --></A><H3>attachToActivity</H3><PRE>public void <B>attachToActivity</B>(<A HREF="../../swarm/activity/ScheduleActivity.html">ScheduleActivity</A>&nbsp;anActivity)</PRE><DL><DD>The attachToActivity: method sets an instance variable inside the  ActivityControl object that points to the Activity to be controlled.  It then creates a Schedule upon which it places a message to itself to update its own variables.<DD><DL></DL></DD></DL><HR><A NAME="runActivity()"><!-- --></A><H3>runActivity</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>runActivity</B>()</PRE><DL><DD>The run method sends a run message to the activity if the conditions are appropriate.  This message causes the activity to continue executing the actions on its schedule until either no other actions are waiting, or  until the execution of actions is stopped by a subactivity or stopped by a stop message to the activity.  If the activity completes executing all  the actions on its schedule, the run method returns Completed.<DD><DL></DL></DD></DL><HR><A NAME="stopActivity()"><!-- --></A><H3>stopActivity</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>stopActivity</B>()</PRE><DL><DD>The stop method sends a stop message to the activity if the conditions  are appropriate. This message causes the control to move back up the  run-stack and resume at the place in the code where the run was first  executed. The next action on the super-activity will begin without   finishing the rest of the current activity's actions.<DD><DL></DL></DD></DL><HR><A NAME="nextAction()"><!-- --></A><H3>nextAction</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>nextAction</B>()</PRE><DL><DD>The next method sends a next message to the activity if the conditions  are appropriate. It runs an activity forward through as many actions as  necessary until it hits a breakFunction, at which point it walks back up  the tree of activities and returns Stopped. In most cases, this means that an entire action or action group on the activity under control  will be executed, including completion of all subactivities.<DD><DL></DL></DD></DL><HR><A NAME="stepAction()"><!-- --></A><H3>stepAction</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>stepAction</B>()</PRE><DL><DD>The step method sends a step message to the activity if the conditions are appropriate. It causes the execution of a single action.<DD><DL></DL></DD></DL><HR><A NAME="stepUntil(int)"><!-- --></A><H3>stepUntil</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>stepUntil</B>(int&nbsp;stopTime)</PRE><DL><DD>The stepUntil: method sends a stepUntil: message to the activity if  conditions are appropriate. This causes all actions on the activity's  schedule, including any actions on subactivities' schedules, to be  executed until the activity's relative time is equal to stopTime - 1.<DD><DL></DL></DD></DL><HR><A NAME="updateStateVar()"><!-- --></A><H3>updateStateVar</H3><PRE>public void <B>updateStateVar</B>()</PRE><DL><DD>The updateStateVar method updates the ActivityControl instance variables and tests for the continued existence of the activity that is being  controlled. This message is sent on each cycle of the schedule for the  activity being controlled.<DD><DL></DL></DD></DL><HR><A NAME="getStatus()"><!-- --></A><H3>getStatus</H3><PRE>public <A HREF="../../swarm/defobj/Symbol.html">Symbol</A> <B>getStatus</B>()</PRE><DL><DD>The getStatus method returns the status of the activity.<DD><DL></DL></DD></DL><HR><A NAME="terminate()"><!-- --></A><H3>terminate</H3><PRE>public void <B>terminate</B>()</PRE><DL><DD>Recursively removes all subactivities.<DD><DL></DL></DD></DL><HR><A NAME="getActivity()"><!-- --></A><H3>getActivity</H3><PRE>public <A HREF="../../swarm/activity/ScheduleActivity.html">ScheduleActivity</A> <B>getActivity</B>()</PRE><DL><DD>Return the controlled activity.<DD><DL></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="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="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 ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="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="../../swarm/objectbase/ActivityControlC.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="ActivityControl.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&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 + -