classtime.html

来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,421 行 · 第 1/4 页

HTML
1,421
字号
    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Time::operator&gt; </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">Time&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>t</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns a boolean indicating whether the current time is larger than the time t, that is it is not smaller than or equal to 't'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em>&nbsp;</td><td>time with which current time should be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether current time is larger than 't' </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00380">380</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.    </td>  </tr></table><a name="a30" doxytag="Time::operator>="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Time::operator&gt;= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const int &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>i</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns a boolean indicating whether the current time is larger than or equal to the time denoted by the integer 'i'. Herefore first a time object (i,0) is created. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em>&nbsp;</td><td>time with which current time should be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether current time is larger than or equal to the given time </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00411">411</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.    </td>  </tr></table><a name="a29" doxytag="Time::operator>="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Time::operator&gt;= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">Time&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>t</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns a boolean indicating whether the current time is larger than or equal to than the time t, that is it is not smaller than 't'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>t</em>&nbsp;</td><td>time with which current time should be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether current time is larger or equal than 't' </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00399">399</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.    </td>  </tr></table><a name="a2" doxytag="Time::setTimeStopped"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Time::setTimeStopped </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iTime</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This methods sets the stopped time, which denotes the number of cycles time stood still. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iTime</em>&nbsp;</td><td>new stopped time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>boolean indicating whether update was successful </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00097">97</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00416">m_iStopped</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00266">operator+=</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00285">operator-=</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00247">operator=</a>().    </td>  </tr></table><a name="a9" doxytag="Time::show"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Time::show </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>os</em> = cout          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method prints the time to the specified output stream. Time is printed as the two tuple (t,s) where t denotes the actual time and s the number of stopped cycles. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em>&nbsp;</td><td>output stream to which output is written (default cout) </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00198">198</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00106">getTime</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00114">getTimeStopped</a>().    </td>  </tr></table><a name="a1" doxytag="Time::updateTime"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Time::updateTime </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iTime</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method updates the time to 'iTime'. When the actual time was already 'iTime' the current time is kept unchanged and the time stopped is raised with one. Otherwise the actual time is changed to 'iTime' and the stopped time is set to 0. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iTime</em>&nbsp;</td><td>new time </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>boolean indicating whether update was successful </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00081">81</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00416">m_iStopped</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00415">m_iTime</a>.<p>Referenced by <a class="el" href="SenseHandler_8C-source.html#l00285">SenseHandler::analyzeSeeGlobalMessage</a>(), <a class="el" href="SenseHandler_8C-source.html#l00345">SenseHandler::analyzeSenseMessage</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00266">operator+=</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00285">operator-=</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00247">operator=</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00659">WorldModel::updateAgentAndBallAfterSense</a>().    </td>  </tr></table><hr><h2>Friends And Related Function Documentation</h2><a name="l0" doxytag="Time::operator<<"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> ostream&amp; operator&lt;&lt; </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>os</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>Time&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>t</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [friend]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Overloaded version of the C++ output operator for a Time class. This operator makes it possible to use Time objects in output statements (e.g. cout &lt;&lt; t). The current cycle and the stopped time are printed in the format (t1,t2). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em>&nbsp;</td><td>output stream to which information should be written </td></tr><tr><td valign=top><em>v</em>&nbsp;</td><td>a Time object which must be printed </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>output stream containing (x,y) </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00423">423</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Time::m_iStopped"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int Time::m_iStopped<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Number of cycles stopped at m_iTime <p>Definition at line <a class="el" href="SoccerTypes_8h-source.html#l00416">416</a> of file <a class="el" href="SoccerTypes_8h-source.html">SoccerTypes.h</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00114">getTimeStopped</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00138">isStopped</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00097">setTimeStopped</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00069">Time</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00081">updateTime</a>().    </td>  </tr></table><a name="o0" doxytag="Time::m_iTime"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int Time::m_iTime<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Number of cycles, denoting the time <p>Definition at line <a class="el" href="SoccerTypes_8h-source.html#l00415">415</a> of file <a class="el" href="SoccerTypes_8h-source.html">SoccerTypes.h</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00106">getTime</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00069">Time</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00081">updateTime</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="SoccerTypes_8h-source.html">SoccerTypes.h</a><li><a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:58 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

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