diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/agent_digital_h-source.html | 432 |
1 files changed, 432 insertions, 0 deletions
diff --git a/docs/doxygen/nel/agent_digital_h-source.html b/docs/doxygen/nel/agent_digital_h-source.html new file mode 100644 index 00000000..de9e4337 --- /dev/null +++ b/docs/doxygen/nel/agent_digital_h-source.html @@ -0,0 +1,432 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.2 on Thu Feb 15 22:00:31 2001 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>agent_digital.h</h1><a href="agent_digital_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd. +</font>00008 <font class="comment"> * +</font>00009 <font class="comment"> * This file is part of NEVRAX NEL. +</font>00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify +</font>00011 <font class="comment"> * it under the terms of the GNU General Public License as published by +</font>00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option) +</font>00013 <font class="comment"> * any later version. +</font>00014 <font class="comment"> +</font>00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but +</font>00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of +</font>00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +</font>00018 <font class="comment"> * General Public License for more details. +</font>00019 <font class="comment"> +</font>00020 <font class="comment"> * You should have received a copy of the GNU General Public License +</font>00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the +</font>00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +</font>00023 <font class="comment"> * MA 02111-1307, USA. +</font>00024 <font class="comment"> */</font> +00025 +00026 <font class="preprocessor">#ifndef NL_AGENT_DIGITAL_H +</font>00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_AGENT_DIGITAL_H +</font>00028 <font class="preprocessor"></font> +00029 <font class="preprocessor">#include "<a class="code" href="agent_h.html">nel/ai/agent/agent.h</a>"</font> +00030 <font class="preprocessor">#include "<a class="code" href="agent_object_h.html">nel/ai/agent/agent_object.h</a>"</font> +00031 <font class="preprocessor">#include "<a class="code" href="agent_nombre_h.html">nel/ai/agent/agent_nombre.h</a>"</font> +00032 +00033 <font class="keyword">namespace</font> NLAIAGENT +00034 { +<a name="l00044"></a><a class="code" href="class_NLAIAGENT__DigitalType.html">00044</a> <font class="keyword">class </font>DigitalType : <font class="keyword">public</font> INombre<float> +00045 { +00046 +00047 <font class="keyword">public</font>: +00048 <font class="keyword">static</font> DigitalType NullOperator; +00049 +<a name="l00050"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#p1">00050</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdDigitalType; +00051 +00052 <font class="keyword">public</font>: +<a name="l00054"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a0">00054</a> DigitalType(<font class="keywordtype">float</font> value):INombre<float>(value) +00055 { +00056 } +00057 +<a name="l00059"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a1">00059</a> DigitalType():INombre<float>() +00060 { +00061 } +00062 +<a name="l00063"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a2">00063</a> DigitalType(<font class="keyword">const</font> DigitalType &a):INombre<float>(a) +00064 { +00065 } +00066 +<a name="l00068"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a3">00068</a> DigitalType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):INombre<float>(is) +00069 { +00070 } +00071 +00073 +<a name="l00074"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a4">00074</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00075 <font class="keyword"> </font>{ +00076 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> DigitalType(*<font class="keyword">this</font>); +00077 <font class="keywordflow">return</font> m; +00078 } +00079 +<a name="l00080"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a5">00080</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00081 <font class="keyword"> </font>{ +00082 <font class="keywordflow">return</font> clone(); +00083 } +00084 +00085 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00086 +00087 +<a name="l00088"></a><a class="code" href="class_NLAIAGENT__DigitalType.html#a7">00088</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00089 <font class="keyword"> </font>{ +00090 sprintf(text,<font class="stringliteral">"<float> %f"</font>,getValue()); +00091 } +00092 +00093 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00095 }; +00096 +<a name="l00105"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html">00105</a> <font class="keyword">class </font>BorneDigitalType: <font class="keyword">public</font> IBornNombre<float> +00106 { +00107 +00108 <font class="keyword">public</font>: +<a name="l00109"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#p0">00109</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdBorneDigitalType; +00110 +00111 <font class="keyword">public</font>: +00112 +<a name="l00116"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a0">00116</a> BorneDigitalType(<font class="keywordtype">float</font> sup,<font class="keywordtype">float</font> inf,<font class="keywordtype">float</font> value): IBornNombre<float>(value,sup,inf) +00117 { +00118 } +<a name="l00122"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a1">00122</a> BorneDigitalType(<font class="keywordtype">float</font> sup,<font class="keywordtype">float</font> inf):IBornNombre<float>(sup,inf) +00123 { +00124 } +00125 +<a name="l00126"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a2">00126</a> BorneDigitalType(<font class="keyword">const</font> BorneDigitalType &a): IBornNombre<float>(a) +00127 { +00128 } +00129 +<a name="l00131"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a3">00131</a> BorneDigitalType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):IBornNombre<float>(is) +00132 { +00133 } +00134 +00136 +<a name="l00137"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a4">00137</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00138 <font class="keyword"> </font>{ +00139 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> BorneDigitalType(*<font class="keyword">this</font>); +00140 <font class="keywordflow">return</font> m; +00141 } +00142 +<a name="l00143"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a5">00143</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00144 <font class="keyword"> </font>{ +00145 <font class="keywordflow">return</font> clone(); +00146 } +00147 +00148 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00149 +00150 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00151 +<a name="l00152"></a><a class="code" href="class_NLAIAGENT__BorneDigitalType.html#a8">00152</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00153 <font class="keyword"> </font>{ +00154 sprintf(text,<font class="stringliteral">"_Value<%f> [_inf<%f> _sup<%f>]"</font>,getValue(),getInf(),getSup()); +00155 } +00157 +00158 <font class="keyword">protected</font>: +00159 }; +00160 +<a name="l00171"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html">00171</a> <font class="keyword">class </font>DDigitalType : <font class="keyword">public</font> INombre<double> +00172 { +00173 +00174 <font class="keyword">public</font>: +<a name="l00175"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#p0">00175</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdDDigitalType; +00176 +00177 <font class="keyword">public</font>: +<a name="l00179"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a0">00179</a> DDigitalType(<font class="keywordtype">double</font> value):INombre<double>(value) +00180 { +00181 } +00182 +<a name="l00184"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a1">00184</a> DDigitalType():INombre<double>() +00185 { +00186 } +00187 +<a name="l00188"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a2">00188</a> DDigitalType(<font class="keyword">const</font> DDigitalType &a):INombre<double>(a) +00189 { +00190 } +00191 +<a name="l00193"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a3">00193</a> DDigitalType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):INombre<double>(is) +00194 { +00195 } +00196 +00198 +<a name="l00199"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a4">00199</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00200 <font class="keyword"> </font>{ +00201 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> DDigitalType(*<font class="keyword">this</font>); +00202 <font class="keywordflow">return</font> m; +00203 } +00204 +<a name="l00205"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a5">00205</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00206 <font class="keyword"> </font>{ +00207 <font class="keywordflow">return</font> clone(); +00208 } +00209 +00210 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00211 +00212 +<a name="l00213"></a><a class="code" href="class_NLAIAGENT__DDigitalType.html#a7">00213</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00214 <font class="keyword"> </font>{ +00215 sprintf(text,<font class="stringliteral">"%.5e"</font>,getValue()); +00216 } +00217 +00218 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00220 }; +00221 +<a name="l00231"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html">00231</a> <font class="keyword">class </font>BorneDDigitalType: <font class="keyword">public</font> IBornNombre<double> +00232 { +00233 +00234 <font class="keyword">public</font>: +<a name="l00235"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#p0">00235</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdBorneDDigitalType; +00236 +00237 <font class="keyword">public</font>: +00238 +<a name="l00242"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a0">00242</a> BorneDDigitalType(<font class="keywordtype">double</font> sup,<font class="keywordtype">double</font> inf,<font class="keywordtype">double</font> value): IBornNombre<double>(value,sup,inf) +00243 { +00244 } +<a name="l00248"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a1">00248</a> BorneDDigitalType(<font class="keywordtype">double</font> sup,<font class="keywordtype">double</font> inf):IBornNombre<double>(sup,inf) +00249 { +00250 } +00251 +<a name="l00252"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a2">00252</a> BorneDDigitalType(<font class="keyword">const</font> BorneDDigitalType &a): IBornNombre<double>(a) +00253 { +00254 } +00255 +<a name="l00257"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a3">00257</a> BorneDDigitalType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):IBornNombre<double>(is) +00258 { +00259 } +00260 +00262 +<a name="l00263"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a4">00263</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00264 <font class="keyword"> </font>{ +00265 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> BorneDDigitalType(*<font class="keyword">this</font>); +00266 <font class="keywordflow">return</font> m; +00267 } +00268 +<a name="l00269"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a5">00269</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00270 <font class="keyword"> </font>{ +00271 <font class="keywordflow">return</font> clone(); +00272 } +00273 +00274 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00275 +00276 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00277 +<a name="l00278"></a><a class="code" href="class_NLAIAGENT__BorneDDigitalType.html#a8">00278</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00279 <font class="keyword"> </font>{ +00280 sprintf(text,<font class="stringliteral">"_Value<%e> [_inf<%e> _sup<%e>]"</font>,getValue(),getInf(),getSup()); +00281 } +00283 +00284 <font class="keyword">protected</font>: +00285 }; +00286 +00287 +<a name="l00297"></a><a class="code" href="class_NLAIAGENT__IntegerType.html">00297</a> <font class="keyword">class </font>IntegerType: <font class="keyword">public</font> INombre<sint32> +00298 { +00299 <font class="keyword">public</font>: +00300 +<a name="l00301"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#p0">00301</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdIntegerType; +00302 +00303 <font class="keyword">public</font>: +<a name="l00304"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a0">00304</a> IntegerType(sint32 value):INombre<sint32>(value) +00305 { +00306 } +00307 +<a name="l00308"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a1">00308</a> IntegerType():INombre<sint32>() +00309 { +00310 } +00311 +<a name="l00312"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a2">00312</a> IntegerType(<font class="keyword">const</font> IntegerType &a):INombre<sint32>(a) +00313 { +00314 } +00315 +<a name="l00316"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a3">00316</a> IntegerType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):INombre<sint32>(is) +00317 { +00318 } +00319 +00320 +<a name="l00321"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a4">00321</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00322 <font class="keyword"> </font>{ +00323 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> IntegerType(*<font class="keyword">this</font>); +00324 <font class="keywordflow">return</font> m; +00325 } +00326 +<a name="l00327"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a5">00327</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00328 <font class="keyword"> </font>{ +00329 <font class="keywordflow">return</font> clone(); +00330 } +00331 +00332 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00333 +00334 +<a name="l00335"></a><a class="code" href="class_NLAIAGENT__IntegerType.html#a7">00335</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00336 <font class="keyword"> </font>{ +00337 sprintf(text,<font class="stringliteral">"%d"</font>,getValue()); +00338 } +00339 +00340 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00341 }; +00342 +<a name="l00352"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html">00352</a> <font class="keyword">class </font>ShortIntegerType: <font class="keyword">public</font> INombre<sint16> +00353 { +00354 <font class="keyword">public</font>: +00355 +<a name="l00356"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#p0">00356</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdShortIntegerType; +00357 +00358 <font class="keyword">public</font>: +<a name="l00359"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a0">00359</a> ShortIntegerType(sint16 value):INombre<sint16>(value) +00360 { +00361 } +00362 +<a name="l00363"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a1">00363</a> ShortIntegerType():INombre<sint16>() +00364 { +00365 } +00366 +<a name="l00367"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a2">00367</a> ShortIntegerType(<font class="keyword">const</font> ShortIntegerType &a):INombre<sint16>(a) +00368 { +00369 } +00370 +<a name="l00371"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a3">00371</a> ShortIntegerType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):INombre<sint16>(is) +00372 { +00373 } +00374 +00375 +<a name="l00376"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a4">00376</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00377 <font class="keyword"> </font>{ +00378 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> ShortIntegerType(*<font class="keyword">this</font>); +00379 <font class="keywordflow">return</font> m; +00380 } +00381 +<a name="l00382"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a5">00382</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00383 <font class="keyword"> </font>{ +00384 <font class="keywordflow">return</font> clone(); +00385 } +00386 +00387 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00388 +00389 +<a name="l00390"></a><a class="code" href="class_NLAIAGENT__ShortIntegerType.html#a7">00390</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00391 <font class="keyword"> </font>{ +00392 sprintf(text,<font class="stringliteral">"%d"</font>,getValue()); +00393 } +00394 +00395 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00396 }; +00397 +<a name="l00407"></a><a class="code" href="class_NLAIAGENT__CharType.html">00407</a> <font class="keyword">class </font>CharType: <font class="keyword">public</font> INombre<sint8> +00408 { +00409 <font class="keyword">public</font>: +00410 +<a name="l00411"></a><a class="code" href="class_NLAIAGENT__CharType.html#p0">00411</a> <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> IdCharType; +00412 +00413 <font class="keyword">public</font>: +<a name="l00414"></a><a class="code" href="class_NLAIAGENT__CharType.html#a0">00414</a> CharType(sint8 value):INombre<sint8>(value) +00415 { +00416 } +00417 +<a name="l00418"></a><a class="code" href="class_NLAIAGENT__CharType.html#a1">00418</a> CharType():INombre<sint8>() +00419 { +00420 } +00421 +<a name="l00422"></a><a class="code" href="class_NLAIAGENT__CharType.html#a2">00422</a> CharType(<font class="keyword">const</font> CharType &a):INombre<sint8>(a) +00423 { +00424 } +00425 +<a name="l00426"></a><a class="code" href="class_NLAIAGENT__CharType.html#a3">00426</a> CharType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &is):INombre<sint8>(is) +00427 { +00428 } +00429 +<a name="l00430"></a><a class="code" href="class_NLAIAGENT__CharType.html#a4">00430</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *clone()<font class="keyword"> const +</font>00431 <font class="keyword"> </font>{ +00432 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m = <font class="keyword">new</font> CharType(*<font class="keyword">this</font>); +00433 <font class="keywordflow">return</font> m; +00434 } +00435 +<a name="l00436"></a><a class="code" href="class_NLAIAGENT__CharType.html#a5">00436</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *newInstance()<font class="keyword"> const +</font>00437 <font class="keyword"> </font>{ +00438 <font class="keywordflow">return</font> clone(); +00439 } +00440 +00441 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &getType() <font class="keyword">const</font>; +00442 +00443 +<a name="l00444"></a><a class="code" href="class_NLAIAGENT__CharType.html#a7">00444</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const +</font>00445 <font class="keyword"> </font>{ +00446 sprintf(text,<font class="stringliteral">"%c"</font>,getValue()); +00447 } +00448 +00449 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &run(); +00450 }; +00451 } +00452 +00453 +00454 <font class="preprocessor">#endif +</font></div></pre> + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |