aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/agent_8h-source.html
blob: 9efc7cb0c36b9279091ad5f66c82f61c2ffdcf24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<!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="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=140 BGCOLOR=#dddddd><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
 </TR>
</TABLE> 

<!-- banner Nevrax -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 WIDTH=100%>
 <TR><TD  BGCOLOR="#000000" BACKGROUND="/inc/img/black_banner.jpg"><A HREF=""><IMG  SRC="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
	<TD WIDTH=140   BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG  SRC="/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="/news/" TITLE="Rubrique news"><img width=13 height=15  hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a  class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11  hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a  class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16  hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a  class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17  hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a  class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16  hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a  class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img  width=18 height=12   hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a  class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
		</TABLE>
		</TD></TR></TABLE></TD></TR></TABLE>
		<!------ End Box  ------>

	</TD>
	<TD WIDTH=15><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
	<TD ALIGN=left valign=top><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

<!-- title -->
<TABLE  background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG  SRC="/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
</td></tr></table>
&nbsp;

<!-- 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="/inc/img/reddots.gif"></TD>
	<TD><B>Documentation</B></TD>
	<TD ALIGN=RIGHT>&nbsp;</td>
</tr></table>
<!-- Generated by Doxygen 1.2.14 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
<hr><h1>agent.h</h1><a href="agent_8h.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_AGENTS_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_AGENTS_H</font>
00028 <font class="preprocessor"></font>
00029 <font class="preprocessor">#include "<a class="code" href="agentexport_8h.html">nel/ai/agent/agentexport.h</a>"</font>
00030 <font class="preprocessor">#include "<a class="code" href="baseai_8h.html">nel/ai/agent/baseai.h</a>"</font>
00031 <font class="preprocessor">#include "<a class="code" href="mailbox_8h.html">nel/ai/agent/mailbox.h</a>"</font>
00032 
00033 <font class="keyword">namespace </font>NLAIAGENT
00034 {       
00035         <font class="keyword">typedef</font> CLocalMailBox <a class="code" href="namespaceNLAIAGENT.html#a0">tMailBoxLettre</a>;
00036 
<a name="l00045"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html">00045</a>         <font class="keyword">class </font>IBasicAgent : <font class="keyword">public</font> IConnectIA
00046         {
00047         <font class="keyword">private</font>:
<a name="l00048"></a><a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html">00048</a>                 <font class="keyword">struct </font>CMethodCall
00049                 {
<a name="l00050"></a><a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#a0">00050</a>                         <a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#a0">CMethodCall</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *name, <font class="keywordtype">int</font> i): <a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m0">MethodName</a> (name)
00051                         {                               
00052                                 <a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m1">Index</a> = i;
00053                         }
<a name="l00054"></a><a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m0">00054</a>                         CStringVarName <a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m0">MethodName</a>;
<a name="l00055"></a><a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m1">00055</a>                         sint32 <a class="code" href="structNLAIAGENT_1_1IBasicAgent_1_1CMethodCall.html#m1">Index</a>;
00056                 };
00057                 <font class="keyword">static</font> CMethodCall <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#r0">_Method</a>[];
00058 
00059         <font class="keyword">protected</font>:
<a name="l00061"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#n0">00061</a>                 CProcessResult  <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#n0">_RunState</a>;
<a name="l00063"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#n1">00063</a>                 IMailBox        *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#n1">_Mail</a>;
00064 
00065         <font class="keyword">protected</font>:
00070                 <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> &amp;a);
00071 
00075                 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a15">run</a>(<font class="keyword">const</font> IMessageBase &amp;m);          
00076 
00077 
00078                 
00079 
<a name="l00083"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b2">00083</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b2">runExec</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00084                 {
00085                         std::string debugString;
00086                         std::string text;
00087                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00088                         text = <font class="stringliteral">"IMessageBase *runExec("</font>;
00089                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00090                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00091                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00092                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00093                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00094                         text += <font class="stringliteral">"' '"</font>;
00095                         text += debugString;
00096                         text += <font class="stringliteral">"'"</font>;
00097                         
00098                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00099                         <font class="keywordflow">return</font> NULL;
00100                 }
00101 
<a name="l00105"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b3">00105</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b3">runEven</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00106                 {
00107                         std::string debugString;
00108                         std::string text;
00109                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00110                         text = <font class="stringliteral">"IMessageBase *runEven("</font>;
00111                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00112                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00113                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00114                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00115                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00116                         text += <font class="stringliteral">"' '"</font>;
00117                         text += debugString;
00118                         text += <font class="stringliteral">"'"</font>;
00119 
00120                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00121                         <font class="keywordflow">return</font> NULL;
00122                 }
00123 
<a name="l00127"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b4">00127</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b4">runAchieve</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00128                 {
00129                         std::string debugString;
00130                         std::string text;
00131                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00132                         text = <font class="stringliteral">"IMessageBase *runAchieve("</font>;
00133                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00134                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00135                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00136                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00137                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00138                         text += <font class="stringliteral">"' '"</font>;
00139                         text += debugString;
00140                         text += <font class="stringliteral">"'"</font>;
00141                         
00142                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00143                         <font class="keywordflow">return</font> NULL;
00144                 }
00145 
00149                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b5">runAsk</a>(<font class="keyword">const</font> IMessageBase &amp;m);            
00150 
00154                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b6">runTell</a>(<font class="keyword">const</font> IMessageBase &amp;m);           
00155 
<a name="l00159"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b7">00159</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b7">runBreak</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00160                 {
00161                         std::string debugString;
00162                         std::string text;
00163                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00164                         text = <font class="stringliteral">"IMessageBase *runBreak("</font>;
00165                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00166                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00167                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00168                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00169                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00170                         text += <font class="stringliteral">"' '"</font>;
00171                         text += debugString;
00172                         text += <font class="stringliteral">"'"</font>;
00173                         
00174                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00175                         <font class="keywordflow">return</font> NULL;
00176                 }
00177 
00179                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b8">onKill</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> *A);
00180 
<a name="l00184"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b9">00184</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b9">runKill</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00185                 {
00186                         std::string debugString;
00187                         std::string text;
00188                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00189                         text = <font class="stringliteral">"IMessageBase *runKill("</font>;
00190                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00191                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00192                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00193                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00194                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00195                         text += <font class="stringliteral">"' '"</font>;
00196                         text += debugString;
00197                         text += <font class="stringliteral">"'"</font>;
00198                         
00199                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00200                         <font class="keywordflow">return</font> NULL;
00201                 }
00202 
<a name="l00206"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b10">00206</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b10">runError</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00207                 {
00208                         std::string debugString;
00209                         std::string text;
00210                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00211                         text = <font class="stringliteral">"IMessageBase *runError("</font>;
00212                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00213                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00214                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00215                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00216                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00217                         text += <font class="stringliteral">"' '"</font>;
00218                         text += debugString;
00219                         text += <font class="stringliteral">"'"</font>;
00220                         
00221                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00222                         <font class="keywordflow">return</font> NULL;
00223                 }
00224 
<a name="l00228"></a><a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b11">00228</a>                 <font class="keyword">virtual</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b11">runService</a>(<font class="keyword">const</font> IMessageBase &amp;m)
00229                 {
00230                         std::string debugString;
00231                         std::string text;
00232                         <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(debugString);
00233                         text = <font class="stringliteral">"IMessageBase *runService("</font>;
00234                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)m.getType();
00235                         text += <font class="stringliteral">" note implementaited for the '"</font>;
00236                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00237                         text += <font class="stringliteral">"' interface for the instence '"</font>;
00238                         text += (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>();
00239                         text += <font class="stringliteral">"' '"</font>;
00240                         text += debugString;
00241                         text += <font class="stringliteral">"'"</font>;
00242                         
00243                         <font class="keywordflow">throw</font> <a class="code" href="classNLAIE_1_1CExceptionNotImplemented.html">NLAIE::CExceptionNotImplemented</a>(text.c_str());
00244                         <font class="keywordflow">return</font> NULL;
00245                 }
00246 
00247                 
00248 
00249         <font class="keyword">public</font>:
00251                 <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a>(<font class="keyword">const</font> IWordNumRef *parent);
00253                 <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a>(<font class="keyword">const</font> IWordNumRef *parent,IMailBox  *m);
00254                 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a2">~IBasicAgent</a>();
00255 
00257                 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &amp;<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a3">getState</a>() <font class="keyword">const</font>;
00259                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a4">setState</a>(<a class="code" href="namespaceNLAIAGENT.html#a50">TProcessStatement</a> <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *result);
00260 
00262                 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a5">sendMessage</a>(IMessageBase *msg);
00263 
00265                 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a5">sendMessage</a>(IMessageBase *msg, <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> &amp;receiver);
00266 
00268                 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a7">runActivity</a>() = 0;            
00269 
00271                 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a8">haveActivity</a>() <font class="keyword">const</font> = 0;
00272 
00274                 IMailBox *<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a9">getMail</a>() <font class="keyword">const</font>;
00275 
00277 
00278                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z113_0">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;os);
00279                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z113_1">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is);
00281 
00283 
00284                 <font class="keyword">virtual</font> sint32 <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z114_0">getMethodIndexSize</a>() <font class="keyword">const</font>;              
00285                 <font class="keyword">virtual</font> <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z114_1">isMember</a>(<font class="keyword">const</font> IVarName *,<font class="keyword">const</font> IVarName *,<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> &amp;) <font class="keyword">const</font>;
00286                 <font class="keyword">virtual</font> CProcessResult <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z114_2">runMethodeMember</a>(sint32, sint32, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *);
00287                 <font class="keyword">virtual</font> CProcessResult <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#z114_2">runMethodeMember</a>(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *);
00289 
00294                 <font class="keyword">virtual</font> <a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a>::iterator <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a10">addChild</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *p) = 0;
00298                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a11">removeChild</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *p) = 0;
00299 
00303                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a11">removeChild</a>(<a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a>::iterator &amp;iter) = 0;
00304 
00308                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a13">runChildren</a>() = 0;         
00309 
00313                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a14">processMessages</a>() = 0;     
00314 
00315 
00316         <font class="keyword">public</font>:
00320                 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &amp;<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#a15">run</a>() = 0;
00321                 
00322         };      
00323 
<a name="l00332"></a><a class="code" href="classNLAIAGENT_1_1IAgentComposite.html">00332</a>         <font class="keyword">class </font>IAgentComposite:<font class="keyword">public</font> IBasicAgent
00333         {               
00334                 <font class="keyword">private</font>:
<a name="l00335"></a><a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#u0">00335</a>                         <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a> <a class="code" href="classstd_1_1list.html">tBasicList</a>;
00336 
00337                         <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#c0">deleteListe</a>();
00338         
00339                 <font class="keyword">protected</font>:              
<a name="l00340"></a><a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#n0">00340</a>                         tBasicList      <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#n0">_AgentList</a>;
00341                         <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#b0">IAgentComposite</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#b0">IAgentComposite</a> &amp;a);
<a name="l00342"></a><a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#n1">00342</a>                         sint <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#n1">_SizeChild</a>;
00343 
00344                 <font class="keyword">public</font>:
00346                         <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#b0">IAgentComposite</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *parent);
00348                         <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#b0">IAgentComposite</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *parent,IMailBox *m);
00349 
00351 
00352                         <font class="keyword">virtual</font> <a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a>::iterator <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z115_0">addChild</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *p);    <font class="comment">// Ajoute un fils � l'agent.</font>
00353                         <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z115_1">cpyChild</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> &amp;p);
00354                         <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z115_2">removeChild</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> &amp;p);         
00355                         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z115_2">removeChild</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *p);
00356                         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z115_2">removeChild</a>(<a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a>::iterator &amp;iter);
<a name="l00358"></a><a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#a2">00358</a>                         <font class="keyword">virtual</font> sint <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#a2">getChildCoun</a>()<font class="keyword"> const</font>
00359 <font class="keyword">                        </font>{
00360                                 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#n1">_SizeChild</a>;
00361                         }
00362 
00363                         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#a3">onKill</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> *A);
00364 
00366 
00367                         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z116_0">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;os);
00368                         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#z116_1">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is);         
00370 
00371                         <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IAgentComposite.html#a4">~IAgentComposite</a>();
00372         };
00373 
<a name="l00380"></a><a class="code" href="classNLAIAGENT_1_1IAgent.html">00380</a>         <font class="keyword">class </font>IAgent:<font class="keyword">public</font> IAgentComposite
00381         {       
00382         <font class="keyword">public</font>: 
00383                 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> *<a class="code" href="classNLAIAGENT_1_1IAgent.html#p0">IdAgent</a>;
00384 
00385         <font class="keyword">private</font>:
<a name="l00386"></a><a class="code" href="classNLAIAGENT_1_1IAgent.html#o0">00386</a>                 <a class="code" href="classstd_1_1list.html">std::list&lt;IBasicAgent *&gt;</a>::iterator <a class="code" href="classNLAIAGENT_1_1IAgent.html#o0">_Iter_Child</a>;
00387                 
00388         <font class="keyword">protected</font>:              
00389                 <a class="code" href="classNLAIAGENT_1_1IAgent.html#b0">IAgent</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#b0">IAgent</a> &amp;a);
00390                 
00392 
00393                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z117_0">runChildren</a>();             
00394                 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z117_1">runChildrenStepByStep</a>();
00395 
00396         
00397         <font class="keyword">public</font>:         
00399                 <a class="code" href="classNLAIAGENT_1_1IAgent.html#b0">IAgent</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *parent);
00401                 <a class="code" href="classNLAIAGENT_1_1IAgent.html#b0">IAgent</a>(<a class="code" href="classNLAIAGENT_1_1IBasicAgent.html#b0">IBasicAgent</a> *parent,IMailBox *m);
00402                 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#a2">~IAgent</a>();              
00403                                 
00405 
00406                 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_0">clone</a>() <font class="keyword">const</font>;
00407                 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_1">newInstance</a>() <font class="keyword">const</font>;
00408                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_2">getDebugString</a>(std::string &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>) <font class="keyword">const</font>;
00409                 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &amp;<a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_3">getType</a>() <font class="keyword">const</font>;
00410                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_4">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;os);
00411                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z118_5">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is);         
00413 
00415                 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#a3">isEqual</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicObjectIA.html#a0">IBasicObjectIA</a> &amp;a) <font class="keyword">const</font>;
00416 
00418                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#a4">Kill</a>();
00419 
00421                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#a5">onKill</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> *A);
00422 
<a name="l00423"></a><a class="code" href="classNLAIAGENT_1_1IAgent.html#a6">00423</a>                 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#a6">haveActivity</a>()<font class="keyword"> const</font>
00424 <font class="keyword">                </font>{
00425                         <font class="keywordflow">return</font> <font class="keyword">false</font>;
00426                 }
00427 
<a name="l00429"></a><a class="code" href="classNLAIAGENT_1_1IAgent.html#a7">00429</a>                 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1IAgent.html#a7">runActivity</a>()
00430                 {
00431                         <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#p0">ProcessRun</a>;
00432                 }               
00434 
00435                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IAgent.html#z119_0">processMessages</a>();
00436                 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &amp;<a class="code" href="classNLAIAGENT_1_1IAgent.html#z119_1">run</a>();            
00437                 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &amp;<a class="code" href="classNLAIAGENT_1_1IAgent.html#z119_2">runStep</a>();
00439         };
00440 }
00441 <font class="preprocessor">#endif</font>
</pre></div>

<!-- footer -->
<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
</TD>
<TD WIDTH=15><IMG  SRC=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>