From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html | 1006 +++++++++++++++++++++ 1 file changed, 1006 insertions(+) create mode 100644 docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html (limited to 'docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html') diff --git a/docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html b/docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html new file mode 100644 index 00000000..02c15f16 --- /dev/null +++ b/docs/doxygen/nel/class_NLAIAGENT__IConnectIA.html @@ -0,0 +1,1006 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLAIAGENT::IConnectIA Class Reference

In general agents create a lot of connection with ather agent and for exemple when he die, he have to close all this connections. +More... +

+#include <baseai.h> +

+Inheritance diagram for NLAIAGENT::IConnectIA

Inheritance graph
+ + + + + + + + + + + + + + + + + + + + +
[legend]
Collaboration diagram for NLAIAGENT::IConnectIA:

Collaboration graph
+ + + + + + + + + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 IConnectIA ()
 IConnectIA (const IWordNumRef *parent)
 IConnectIA (NLMISC::IStream &is)
IConnectIA* getParent () const
 to get the agent parents. More...

virtual void onKill (IConnectIA *) = 0
 When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects.

virtual IObjectIA::CProcessResult sendMessage (IObjectIA *m)
 sendMessage allow agent to send a message to an ather agent.The message is a IMessageBase. More...

virtual IObjectIA::CProcessResult sendMessage (IMessageBase *msg) = 0
void connect (IConnectIA *b)
 When agent want to make connection he have to call this method to connect to an agent.When it call the B object is added in the connection list. More...

void removeConnection (IConnectIA *Agent)
 To release a connection. More...

virtual void Kill ()
 this method define wat agent have to whene he die. More...

virtual ~IConnectIA ()
State of agent.
virtual const CProcessResult& getState () const = 0
virtual void setState (TProcessStatement s, IObjectIA *result) = 0
IBasicInterface method.
virtual void save (NLMISC::IStream &os) = 0
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is) = 0
 Load the class from a stream. More...


Protected Methods

 IConnectIA (const IConnectIA &A)
void connectLoadStream (NLMISC::IStream &is)
list manipulation method.
void addInConnectionList (const IConnectIA *a)
void removeInConnectionList (IConnectIA *a)
void addInConnectedList (const IConnectIA *a)
void removeInConnectedList (const IConnectIA *a)

Private Types

typedef std::list<const IConnectIA *> tListiBasic
typedef std::list<const IConnectIA
+*>::iterator 
tListiBasicItr
typedef std::list<const IConnectIA
+*>::const_iterator 
tListiBasicCstItr

Private Attributes

tListiBasic _Connection
tListiBasic _Connected
+

Detailed Description

+In general agents create a lot of connection with ather agent and for exemple when he die, he have to close all this connections. +

+IConnectIA allow programmer to manage connection. the IConnectIA class work with tow list the connection list and the connected list. Connection list: is the list of agent connected to this object. Connectioned list: is the list of objects where this agent is connected to. +

+

+Author(s):
+ Chafik sameh , Portier Pierre , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 390 of file baseai.h.


Member Typedef Documentation

+

+ + + + +
+ + + + + +
+typedef std::list<const IConnectIA *> NLAIAGENT::IConnectIA::tListiBasic [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 393 of file baseai.h.

+

+ + + + +
+ + + + + +
+typedef std::list<const IConnectIA *>::const_iterator NLAIAGENT::IConnectIA::tListiBasicCstItr [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 395 of file baseai.h.

+

+ + + + +
+ + + + + +
+typedef std::list<const IConnectIA *>::iterator NLAIAGENT::IConnectIA::tListiBasicItr [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 394 of file baseai.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NLAIAGENT::IConnectIA::IConnectIA ( + +const IConnectIA & A ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 436 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+NLAIAGENT::IConnectIA::IConnectIA ( + +) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 440 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+NLAIAGENT::IConnectIA::IConnectIA ( + +const IWordNumRef * parent ) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 444 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+NLAIAGENT::IConnectIA::IConnectIA ( + +NLMISC::IStream & is ) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 448 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+NLAIAGENT::IConnectIA::~IConnectIA ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 509 of file baseai.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::Kill ( + +) [virtual] +
+
+ + + + + +
+   + + +

+this method define wat agent have to whene he die. +

+ +

+Reimplemented in NLAIAGENT::IAgent. +

+Definition at line 553 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::addInConnectedList ( + +const IConnectIA * a ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 533 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::addInConnectionList ( + +const IConnectIA * a ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 514 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::connect ( + +IConnectIA * b ) +
+
+ + + + + +
+   + + +

+When agent want to make connection he have to call this method to connect to an agent.When it call the B object is added in the connection list. +

+ +

+Definition at line 497 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::connectLoadStream ( + +NLMISC::IStream & is ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 463 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+IConnectIA * NLAIAGENT::IConnectIA::getParent ( + +) const +
+
+ + + + + +
+   + + +

+to get the agent parents. +

+ +

+Reimplemented from NLAIAGENT::IRefrence. +

+Definition at line 453 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+const CProcessResult & NLAIAGENT::IConnectIA::getState ( + +) const [pure virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::IBasicAgent, NLAIAGENT::IAgentInput, NLAIAGENT::CSimpleLocalMailBox, and NLAIAGENT::CLocalMailBox.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::load ( + +NLMISC::IStream & is ) [pure virtual] +
+
+ + + + + +
+   + + +

+Load the class from a stream. +

+ +

+Reimplemented from NLAIAGENT::IRefrence. +

+Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IBasicAgent, NLAIAGENT::IAgentComposite, NLAIAGENT::IAgent, NLAIAGENT::IAgentInput, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::IMailBox, NLAIAGENT::CSimpleLocalMailBox, NLAIAGENT::CLocalMailBox, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript. +

+Definition at line 458 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::onKill ( + +IConnectIA * a ) [pure virtual] +
+
+ + + + + +
+   + + +

+When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects. +

+ +

+Reimplemented in NLAIAGENT::IAgent, NLAIAGENT::IAgentInput, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentWatchTimer, NLAIAGENT::CSimpleLocalMailBox, and NLAIAGENT::CLocalMailBox.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::removeConnection ( + +IConnectIA * Agent ) +
+
+ + + + + +
+   + + +

+To release a connection. +

+ +

+Definition at line 503 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::removeInConnectedList ( + +const IConnectIA * a ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 538 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::removeInConnectionList ( + +IConnectIA * a ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 519 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+void NLAIAGENT::IConnectIA::save ( + +NLMISC::IStream & os ) [pure virtual] +
+
+ + + + + +
+   + + +

+Save the class in a stream. +

+ +

+Reimplemented from NLAIAGENT::IRefrence. +

+Reimplemented in NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IBasicAgent, NLAIAGENT::IAgentComposite, NLAIAGENT::IAgent, NLAIAGENT::IAgentInput, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CGDAgentScript, NLAIAGENT::IMailBox, NLAIAGENT::CSimpleLocalMailBox, NLAIAGENT::CLocalMailBox, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, and NLAIAGENT::COperatorScript. +

+Definition at line 36 of file baseai.cpp.

+

+ + + + +
+ + + + + + +
+virtual IObjectIA::CProcessResult NLAIAGENT::IConnectIA::sendMessage ( + +IMessageBase * msg ) [pure virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::IBasicAgent, NLAIAGENT::CSimpleLocalMailBox, and NLAIAGENT::CLocalMailBox.

+

+ + + + +
+ + + + + + +
+IObjectIA::CProcessResult NLAIAGENT::IConnectIA::sendMessage ( + +IObjectIA * m ) [inline, virtual] +
+
+ + + + + +
+   + + +

+sendMessage allow agent to send a message to an ather agent.The message is a IMessageBase. +

+ +

+Reimplemented from NLAIAGENT::IObjectIA. +

+Reimplemented in NLAIAGENT::CActorScript, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, and NLAIAGENT::CMainAgentScript. +

+Definition at line 423 of file baseai.h.

+

+ + + + +
+ + + + + + + + + + +
+void NLAIAGENT::IConnectIA::setState ( + +TProcessStatement state, +
+IObjectIA * result ) [pure virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAIAGENT::IBasicAgent, NLAIAGENT::IAgentInput, NLAIAGENT::CSimpleLocalMailBox, and NLAIAGENT::CLocalMailBox.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+tListiBasic NLAIAGENT::IConnectIA::_Connected [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 399 of file baseai.h.

+

+ + + + +
+ + + + + +
+tListiBasic NLAIAGENT::IConnectIA::_Connection [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 398 of file baseai.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1