#include <list_manager.h>
Inheritance diagram for NLAIAGENT::IListManager:
Definition at line 117 of file list_manager.h.
[NOHEADER] | |
virtual IObjetOp * | operator * (const IObjetOp &) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator+ (const IObjetOp &) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator- (const IObjetOp &) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator/ (const IObjetOp &) |
throw (NLAIE::CExceptionNotImplemented) | |
Public Types | |
enum | TOpId { op_add, op_sub, op_mul, op_div, op_eq, op_inf, op_sup, op_inf_eq, op_sup_eq, op_not, op_diff, op_neg, op_last } |
Public Member Functions | |
virtual TQueue | canProcessMessage (const IVarName &) |
virtual const IBasicType * | clone () const=0 |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual const std::string | getInfo () |
virtual std::string | getMethodeMemberDebugString (sint32, sint32) const |
virtual IObjetOp * | getNeg () const |
virtual const IObjectIA * | getObject (const CObjectIdent &) const=0 |
const sint32 & | getRef () const |
get the refence count. | |
const IObjectIA * | getStaticMember (const IVarName &compName) const |
virtual const IObjectIA * | getStaticMember (sint32) const |
virtual sint32 | getStaticMemberIndex (const IVarName &) const |
virtual sint32 | getStaticMemberSize () const |
virtual const CIdentType & | getType () const=0 |
IListManager (const IListManager &) | |
IListManager (IBaseGroupType *) | |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
virtual void | init (IObjectIA *) |
virtual bool | isEqual (const IBasicObjectIA &a) const |
virtual bool | isLocal () |
If the result is true the object is loclal else its a representation of an object on the server. By the method return true. | |
virtual const IBasicType * | newInstance () const=0 |
virtual IObjetOp * | operator * (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator *= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
operator const IBaseGroupType * () const | |
Get the list of message contents. | |
virtual IObjetOp * | operator!= (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator+ (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator- (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator/ (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator/= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator< (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator<= (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
bool | operator== (const IBasicObjectIA &classType) const |
virtual IObjetOp * | operator== (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator> (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator>= (IObjetOp &) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual const CProcessResult & | runStep () |
virtual CProcessResult | sendMessage (const IVarName &, IObjectIA *) |
virtual CProcessResult | sendMessage (IObjectIA *) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
virtual bool | setStaticMember (sint32, IObjectIA *) |
bool | setStaticMember (const IVarName &compName, IObjectIA *change) |
virtual void | trie ()=0 |
virtual | ~IListManager () |
Static Public Attributes | |
CMethodCall | _Method [] |
TProcessStatement | ProcessBuzzy = processBuzzy |
TProcessStatement | ProcessEnd = processEnd |
TProcessStatement | ProcessError = processError |
TProcessStatement | ProcessIdle = processIdle |
TProcessStatement | ProcessLocked = processLocked |
CProcessResult | ProcessNotComplit = IObjectIA::CProcessResult(processNotComplete) |
CProcessResult | ProcessRun = IObjectIA::CProcessResult() |
Protected Attributes | |
IBaseGroupType * | _List |
|
Definition at line 46 of file agent_operator.h.
|
|
Definition at line 209 of file list_manager.cpp.
00209 :IListBasicManager(l) 00210 { 00211 00212 } |
|
Definition at line 214 of file list_manager.cpp.
00214 :IListBasicManager(l._List) 00215 { 00216 l._List->incRef(); 00217 } |
|
Definition at line 219 of file list_manager.cpp.
00220 { 00221 } |
|
The method canProcessMessage(const IVarName &msgName) allow us to know if agent can preocess given by msgName. TQueue contain the liste of method (same as a run(msg)) that coud process the msg. Reimplemented in NLAIAGENT::CLocalAgentMail. Definition at line 350 of file baseai.cpp. References NLAIAGENT::TQueue. Referenced by NLAIAGENT::CLocalAgentMail::canProcessMessage().
00351 { 00352 return TQueue(); 00353 } |
|
Clear the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 173 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::clear().
00174 { 00175 _List->clear(); 00176 } |
|
|
Push an IObjectIA back using the clone method.
Implements NLAIAGENT::IBaseGroupType. Definition at line 123 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::cpy().
00124 { 00125 _List->cpy(o); 00126 } |
|
Decrement the reference of an object.
Definition at line 93 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00094 {
00095 return --_Ref;
00096 }
|
|
Erase all element contain in the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 169 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::erase().
00170 { 00171 _List->erase(l); 00172 } |
|
Erase the first element find equal at the const IObjectIA& on argument.
Implements NLAIAGENT::IBaseGroupType. Definition at line 164 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::erase().
00165 { 00166 _List->erase(obj); 00167 } |
|
Erase the element how have the same pointer memory as the argument const IObjectIA *.
Implements NLAIAGENT::IBaseGroupType. Definition at line 160 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::erase().
00161 { 00162 _List->erase(o); 00163 } |
|
Erase all element find equal at the const IObjectIA & on argument.
Implements NLAIAGENT::IBaseGroupType. Definition at line 156 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::eraseAll().
00157 { 00158 _List->eraseAll(obj); 00159 } |
|
Definition at line 152 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::erase().
00153 { 00154 _List->erase(obj); 00155 } |
|
Find an element on the list the operator == is use.
Implements NLAIAGENT::IBaseGroupType. Definition at line 148 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::find().
00149 { 00150 return _List->find(obj); 00151 } |
|
return the back IObjectIA.
Implements NLAIAGENT::IBaseGroupType. Definition at line 131 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::get(). Referenced by NLAIAGENT::CSetValueMsg::getDebugString(), NLAIAGENT::COnChangeMsg::getDebugString(), NLAIAGENT::CNotifyParentScript::getDebugString(), NLAIAGENT::CFailureMsg::getDebugString(), NLAIAGENT::CSuccessMsg::getDebugString(), NLAIAGENT::CProxyAgentMail::sendMessage(), and NLAIAGENT::CLocalAgentMail::sendMessage().
00132 { 00133 return _List->get(); 00134 } |
|
Implements NLMISC::IClassable. Reimplemented in NLAIC::CIdentType. Definition at line 116 of file abstract_interface.h. Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().
00117 { 00118 return std::string("<unnamed>"); 00119 } |
|
Clear the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 73 of file list_manager.h. References NLAIAGENT::IBaseGroupType::getConstIterator(). Referenced by NLAIAGENT::CMainAgentScript::runExec(), and NLAIAGENT::CAgentOperation::runTell().
00074 { 00075 return _List->getConstIterator(); 00076 } |
|
This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. Implements NLAIC::IBasicType. Reimplemented in NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGetValueMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::CNotifyParentScript, NLAIAGENT::COnChangeMsg, and NLAIAGENT::CSetValueMsg. Definition at line 70 of file list_manager.cpp. References NLAIC::IBasicType::getDebugString(), NLAIC::stringGetBuild(), and t.
00071 { 00072 std::string b; 00073 _List->getDebugString(b); 00074 t += NLAIC::stringGetBuild("IListBasicManager<%4x>: _List:'%s'",this,b.c_str()); 00075 } |
|
return the front IObjectIA.
Implements NLAIAGENT::IBaseGroupType. Definition at line 139 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::getFront(). Referenced by NLAIAGENT::COnChangeMsg::getDebugString(), NLAIAGENT::CNotifyParentScript::getDebugString(), NLAIAGENT::CGetValueMsg::getDebugString(), NLAIAGENT::CProxyAgentMail::sendMessage(), and NLAIAGENT::CLocalAgentMail::sendMessage().
00140 { 00141 return _List->getFront(); 00142 } |
|
Definition at line 292 of file abstract_interface.h. References NLAIC::IBasicType::getDebugString(), and s.
00293 { 00294 std::string s; 00295 getDebugString(s); 00296 return s; 00297 } |
|
Get an iterator to parse the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 68 of file list_manager.h. References NLAIAGENT::IBaseGroupType::getIterator().
00069 { 00070 return _List->getIterator(); 00071 } |
|
The methode getMethodeMemberDebugString(sint32 heritance, sint32 index) return a string that define the name and the argument of the method Reimplemented in NLAIAGENT::CAgentScript. Definition at line 311 of file baseai.cpp. References sint32. Referenced by NLAISCRIPT::CCallHeapMethodi::getDebugResult(), NLAISCRIPT::CCallStackMethodi::getDebugResult(), NLAISCRIPT::CCallMethodi::getDebugResult(), NLAISCRIPT::CLibHeapMemberMethod::getDebugResult(), NLAISCRIPT::CLibStackNewMemberMethod::getDebugResult(), NLAISCRIPT::CLibStackMemberMethod::getDebugResult(), NLAISCRIPT::CLibCallMethodi::getDebugResult(), NLAISCRIPT::CLibCallInheritedMethod::getDebugResult(), NLAISCRIPT::CLibCallMethod::getDebugResult(), NLAISCRIPT::CLibMemberMethodi::getDebugResult(), NLAISCRIPT::CLibMemberInheritedMethod::getDebugResult(), and NLAISCRIPT::CLibMemberMethod::getDebugResult().
00312 { 00313 switch(id) 00314 { 00315 case 0: 00316 { 00317 return std::string("IObjectIA::sendMessage(IMessage)"); 00318 } 00319 break; 00320 case 1: 00321 break; 00322 case 2: 00323 return std::string("IObjectIA::run()"); 00324 break; 00325 00326 case 3: 00327 { 00328 return std::string("IObjectIA::getStaticMember(Integer)"); 00329 } 00330 } 00331 return std::string("Mathod_?????(Param_?????)"); 00332 } |
|
getMethodIndexSize define the nomber of method define in the class. Reimplemented from NLAIAGENT::IBaseGroupType. Reimplemented in NLAIAGENT::CMessageScript, and NLAIAGENT::IMessageBase. Definition at line 184 of file list_manager.cpp. References sint32.
00185 {
00186 return IBaseGroupType::getMethodIndexSize() + 0;
00187 }
|
|
Definition at line 165 of file agent_operator.h. References NLAIC::IBasicType::clone(), and NLAIAGENT::IObjetOp::neg(). Referenced by NLAISCRIPT::CNegOpCode::runOpCode().
|
|
Implemented in NLAIAGENT::CVectorGroupManager. |
|
get the refence count.
Definition at line 99 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00100 {
00101 return _Ref;
00102 }
|
|
to get the pointer of a given components referened by an string. Definition at line 261 of file baseai.h. References NLAIAGENT::IObjectIA::getStaticMember(), and NLAIAGENT::IObjectIA::getStaticMemberIndex().
00262 { 00263 return getStaticMember(getStaticMemberIndex(compName)); 00264 } |
|
|
to get the index of a given components name. Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, and NLAIAGENT::CMessageScript. Definition at line 188 of file baseai.cpp. References sint32. Referenced by NLAISCRIPT::CCompilateur::affectation(), NLAIAGENT::CComponentHandle::getComponent(), NLAIAGENT::IObjectIA::getStaticMember(), NLAIAGENT::CLocalAgentMail::getStaticMemberIndex(), NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAISCRIPT::CCompilateur::isValidateVarName(), NLAISCRIPT::CCodeBrancheRunDebug::printVariable(), NLAISCRIPT::CCompilateur::processingVar(), NLAISCRIPT::CConstraintStackComp::run(), and NLAIAGENT::IObjectIA::setStaticMember().
00189 {
00190 return -1;
00191 }
|
|
Static member is the component that the agent is create and die with. getStaticMemberSize to get the size of the static member components Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CMessageScript, NLAISCRIPT::IClassInterpret, and NLAISCRIPT::CAgentClass. Definition at line 180 of file baseai.cpp. References NLAIC::IBasicType::getType(), sint32, and NLAIC::stringGetBuild(). Referenced by NLAIAGENT::CLocalAgentMail::getStaticMemberSize().
00181 { 00182 std::string text; 00183 text = NLAIC::stringGetBuild("sint32 IObjectIA::getStaticMemberSize() note implementaited for the '%s' interface",(const char *)getType()); 00184 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00185 return 0; 00186 } |
|
|
|
Init method alows to init the attribut of an object. the maparmetre is in more time a list of IObjectIA. Reimplemented in NLAIFUZZY::CSimpleFuzzyCond, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::CFuzzyRuleSet, NLAIFUZZY::CFuzzyInterval, NLAIFUZZY::CRightFuzzySet, NLAIFUZZY::CTriangleFuzzySet, NLAIFUZZY::CTrapezeFuzzySet, NLAIFUZZY::CLeftFuzzySet, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CFirstOrderAssert, NLAILOGIC::CRule, and NLAILOGIC::CFactPattern. Definition at line 116 of file baseai.cpp. Referenced by NLAIFUZZY::IFuzzySet::runMethodeMember(), and NLAISCRIPT::CLdbNewOpCode::runOpCode().
00117 { 00118 00119 } |
|
|
|
|
|
isClassInheritedFrom(className) allow us to known if this class have a base class with the name className. If true the method return the range of the base class, this range is an arbitrary reference id define by the programmer or bay the scrypt. the false return is define by -1. Reimplemented from NLAIAGENT::IObjectIA. Reimplemented in NLAIAGENT::CMessageScript. Definition at line 256 of file group_type.cpp. References sint32.
00257 {
00258 return -1;
00259 }
|
|
The bool operator == (const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. Reimplemented from NLAIAGENT::IListBasicManager. Definition at line 223 of file list_manager.cpp.
00224 { 00225 const IListManager &l = (const IListManager &)a; 00226 return l._List == _List; 00227 } |
|
If the result is true the object is loclal else its a representation of an object on the server. By the method return true.
Definition at line 356 of file baseai.cpp.
00357 { 00358 return true; 00359 } |
|
The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. remember we use the overloadind method. NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined. methodName: is the name of the class. param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm. Reimplemented from NLAIAGENT::IBaseGroupType. Reimplemented in NLAIAGENT::CMessageScript, and NLAIAGENT::IMessageBase. Definition at line 189 of file list_manager.cpp. References NLAIAGENT::TQueue.
00190 {
00191 return IBaseGroupType::isMember(className,methodName,p);
00192 }
|
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IBaseGroupType. Definition at line 105 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::isTrue().
00106 { 00107 return _List->isTrue(); 00108 } |
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Reimplemented in NLAIAGENT::CMessageScript, and NLAIAGENT::IMessageBase. Definition at line 61 of file list_manager.cpp. References NLAIC::IPointerGestion::release(), and NLMISC::IStream::serial().
00062 { 00063 NLAIC::CIdentTypeAlloc id; 00064 is.serial( id ); 00065 if(_List != NULL) _List->release(); 00066 _List = (IBaseGroupType *)id.allocClass(); 00067 is .serial( *_List ); 00068 } |
|
|
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 202 of file agent_operator.h.
00203 { 00204 return *this * *a; 00205 00206 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 147 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00148 { 00149 std::string text; 00150 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator * (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00151 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00152 return (IObjetOp *)this; 00153 } |
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 182 of file agent_operator.h.
00183 { 00184 return *this *= *a; 00185 00186 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CAgentOperation, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 110 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00111 { 00112 std::string text; 00113 text = NLAIC::stringGetBuild("opertor <IObjectIA &operator *= (const IObjectIA &a)> note implemented for the '%s' interface",(const char *)getType()); 00114 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00115 return *this; 00116 } |
|
Get the list of message contents.
Definition at line 107 of file list_manager.h.
00108 { 00109 return _List; 00110 } |
|
throw (NLAIE::CExceptionNotImplemented)
Implements NLAIAGENT::IBaseGroupType. Definition at line 109 of file list_manager.cpp.
00110 {
00111 return !(*_List);
00112 }
|
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CVarSet, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 252 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00253 { 00254 std::string text; 00255 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator != (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00256 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00257 return (IObjetOp *)this; 00258 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::CGroupType, and NLAIAGENT::CVectorGroupType. Definition at line 193 of file agent_operator.h.
00194 { 00195 return *this + *a; 00196 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre< tNombre >, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 131 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00132 { 00133 std::string text; 00134 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator + (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00135 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00136 return (IObjetOp *)this; 00137 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 80 of file group_type.cpp. References NLAIAGENT::IBaseGroupType::push().
00081 { 00082 push(a); 00083 return *this; 00084 } |
|
add the operater by anather. We do'nt make a pure virtual for this methods because we didn't wont to make development too many long, we prefer to put an exception to warn developer when this method is'nt define in the derivation class. Reimplemented from NLAIAGENT::IBaseGroupType. Definition at line 84 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::cpy().
00085 { 00086 _List->cpy(a); 00087 return *this; 00088 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::CGroupType, and NLAIAGENT::CVectorGroupType. Definition at line 197 of file agent_operator.h.
00198 { 00199 return *this - *a; 00200 00201 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre< tNombre >, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 139 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00140 { 00141 std::string text; 00142 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator - (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00143 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00144 return (IObjetOp *)this; 00145 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 86 of file group_type.cpp. References NLAIAGENT::IBaseGroupType::erase().
00087 { 00088 erase(a); 00089 return *this; 00090 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IBaseGroupType. Definition at line 90 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::erase().
00091 { 00092 _List->erase(a); 00093 return *this; 00094 } |
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 207 of file agent_operator.h.
00208 { 00209 return *this / *a; 00210 00211 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 155 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00156 { 00157 std::string text; 00158 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator / (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00159 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00160 return (IObjetOp *)this; 00161 } |
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 187 of file agent_operator.h.
00188 { 00189 return *this /= *a; 00190 00191 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CAgentOperation, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 119 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00120 { 00121 std::string text; 00122 text = NLAIC::stringGetBuild("opertor <IObjectIA &operator /= (const IObjectIA &a)> note implemented for the '%s' interface",(const char *)getType()); 00123 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00124 return *this; 00125 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 213 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00214 { 00215 std::string text; 00216 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator < (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00217 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00218 return (IObjetOp *)this; 00219 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 229 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00230 { 00231 std::string text; 00232 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator <= (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00233 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00234 return (IObjetOp *)this; 00235 } |
|
Lot of algo use this function to determine the equality between 2 class, in particular the extraction from stl list. the == operator call the bool isEqual(const IBasicObjectIA &a) const member method to determine the equality between tow class. Definition at line 134 of file baseai.cpp. References NLAIC::IBasicType::getType(), and NLAIAGENT::IBasicObjectIA::isEqual().
|
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::FuzzyType, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CVar, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 260 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00261 { 00262 std::string text; 00263 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator == (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00264 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00265 return (IObjetOp *)this; 00266 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 221 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00222 { 00223 std::string text; 00224 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator > (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00225 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00226 return (IObjetOp *)this; 00227 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::INombre< tNombre >, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, NLAIAGENT::INombre< double >, NLAIAGENT::INombre< uint16 >, NLAIAGENT::INombre< float >, NLAIAGENT::INombre< sint8 >, NLAIAGENT::INombre< uint64 >, NLAIAGENT::INombre< sint16 >, NLAIAGENT::INombre< uint8 >, NLAIAGENT::INombre< uint32 >, and NLAIAGENT::INombre< sint32 >. Definition at line 237 of file agent_operator.h. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00238 { 00239 std::string text; 00240 text = NLAIC::stringGetBuild("opertor <virtual IObjetOp *operator >= (const IObjetOp &a) const> note implemented for the '%s' interface",(const char *)getType()); 00241 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00242 return (IObjetOp *)this; 00243 } |
|
Clear the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 97 of file list_manager.cpp. References index, s, sint, sint32, and NLAIAGENT::IBaseGroupType::size().
|
|
Pop the back IObjectIA and return it.
Implements NLAIAGENT::IBaseGroupType. Definition at line 127 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::pop(). Referenced by NLAIAGENT::IObjectIA::runMethodeMember().
00128 { 00129 return _List->pop(); 00130 } |
|
Pop the front IObjectIA and return it.
Implements NLAIAGENT::IBaseGroupType. Definition at line 135 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::popFront().
00136 { 00137 return _List->popFront(); 00138 } |
|
Push an IObjectIA back.
Implements NLAIAGENT::IBaseGroupType. Definition at line 113 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::push(). Referenced by NLAIAGENT::CAgentScript::runAskDebugString(), NLAIAGENT::CVolatilMemmory::sendUpdateMessage(), and NLAIAGENT::CAgentOperation::update().
00114 { 00115 _List->push(o); 00116 } |
|
Push an IObjectIA front.
Implements NLAIAGENT::IBaseGroupType. Definition at line 118 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::pushFront().
00119 { 00120 _List->pushFront(o); 00121 } |
|
|
Some where Run method define the process of the agen. Implements NLAIAGENT::IObjectIA. Reimplemented in NLAIAGENT::CMessageScript. Definition at line 98 of file list_manager.h.
00098 {return IObjectIA::ProcessRun;}
|
|
The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method. Reimplemented from NLAIAGENT::IBaseGroupType. Reimplemented in NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGetValueMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::CSetValueMsg. Definition at line 199 of file list_manager.cpp. References sint32.
00200 {
00201 return IBaseGroupType::runMethodeMember(m,p);
00202 }
|
|
The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method. Reimplemented from NLAIAGENT::IBaseGroupType. Reimplemented in NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGetValueMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::CSetValueMsg. Definition at line 194 of file list_manager.cpp. References sint32.
00195 {
00196 return IBaseGroupType::runMethodeMember(h,m,p);
00197 }
|
|
Some where Run method define the process of the agen. Reimplemented in NLAIAGENT::IAgent, and NLAIAGENT::CAgentScript. Definition at line 163 of file baseai.cpp. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild(). Referenced by NLAIAGENT::IAgent::runChildrenStepByStep().
00164 { 00165 std::string text; 00166 text = NLAIC::stringGetBuild("const CProcessResult &IObjectIA::runStep() note implementaited for the '%s' interface",(const char *)getType()); 00167 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00168 return IObjectIA::ProcessNotComplit; 00169 } |
|
Save the class in a stream. Implements NLAIC::IBasicInterface. Reimplemented in NLAIAGENT::CMessageScript, and NLAIAGENT::IMessageBase. Definition at line 55 of file list_manager.cpp. References NLAIC::IBasicType::getType(), and NLMISC::IStream::serial().
00056 { 00057 os.serial( (NLAIC::CIdentType &) _List->getType() ); 00058 os.serial( *_List ); 00059 } |
|
This method allow to send a message to an compoment given by an string IVarName. Reimplemented in NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, and NLAIAGENT::IMessageBase. Definition at line 334 of file baseai.cpp. References NLAIAGENT::IVarName::getString(), NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild().
00335 { 00336 std::string text; 00337 text = NLAIC::stringGetBuild("method 'sendMessage(%s,const IObjectIA &)' '%s' interface",name.getString(), (const char *)getType()); 00338 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00339 return CProcessResult(); 00340 } |
|
The method sendMessage(const IObjectIA &msg) allow us to achive a message defined in msg. Reimplemented from NLAIAGENT::IObjectIA. Definition at line 229 of file list_manager.cpp. References NLAIAGENT::IBaseGroupType::getIterator(), NLAIC::IPointerGestion::incRef(), NLAIAGENT::CConstIteratorContener::isInEnd(), NLAIC::IPointerGestion::release(), and NLAIAGENT::IObjectIA::sendMessage().
00230 { 00231 CIteratorContener itr = _List->getIterator(); 00232 00233 if(itr.isInEnd()) 00234 { 00235 msg->release(); 00236 } 00237 else 00238 { 00239 while(!itr.isInEnd()) 00240 { 00241 IObjectIA *obj = (IObjectIA *)(itr++); 00242 obj->sendMessage(msg); 00243 if(!itr.isInEnd()) msg->incRef(); 00244 } 00245 } 00246 return IObjectIA::CProcessResult(); 00247 } |
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
|
to cahnge a given components given by a string. Reimplemented in NLAIAGENT::CLocalAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CMessageScript, and NLAISCRIPT::CAgentClass. Definition at line 198 of file baseai.cpp. References NLAIC::IBasicType::getType(), sint32, and NLAIC::stringGetBuild().
00199 { 00200 std::string text; 00201 text = NLAIC::stringGetBuild("Function void IObjectIA::setStaticMember(sint32,IObjectIA *) note implementaited for the '%s' interface",(const char *)getType()); 00202 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00203 return false; 00204 } |
|
to cahnge a given components given by an index. Definition at line 268 of file baseai.h. References NLAIAGENT::IObjectIA::getStaticMemberIndex(). Referenced by NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CAffMemberiOpCode::runOpCode(), and NLAIAGENT::CLocalAgentMail::setStaticMember().
00269 { 00270 return setStaticMember(getStaticMemberIndex(compName),change); 00271 } |
|
get the size of the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 143 of file list_manager.cpp. References sint32, and NLAIAGENT::IBaseGroupType::size(). Referenced by NLAIAGENT::CMessageScript::getDebugString(), NLAIAGENT::CMessageScript::getStaticMember(), NLAIAGENT::CAgentScript::runInitComponent(), NLAIAGENT::CAgentScript::runTellSetValue(), and NLAIAGENT::CMessageScript::setStaticMember().
00144 { 00145 return _List->size(); 00146 } |
|
Implemented in NLAIAGENT::CVectorGroupManager. |
|
Definition at line 42 of file list_manager.h. Referenced by NLAIAGENT::IListBasicManager::isEqual(), NLAIAGENT::IMessageBase::operator=(), and NLAIAGENT::IListBasicManager::operator=(). |
|
Initial value: { IBaseGroupType::CMethodCall(_CONSTRUCTOR_,_Const), IBaseGroupType::CMethodCall("Push",_Push), IBaseGroupType::CMethodCall("PushFront",_PushFront), IBaseGroupType::CMethodCall("Pop",_Pop), IBaseGroupType::CMethodCall("PopFront",_PopFront), IBaseGroupType::CMethodCall("Back",_Back), IBaseGroupType::CMethodCall("Front",_Front), IBaseGroupType::CMethodCall("Get",_Get), IBaseGroupType::CMethodCall("Set",_Set), IBaseGroupType::CMethodCall("Size",_Size) } Reimplemented in NLAIAGENT::IMessageBase. Definition at line 46 of file group_type.cpp. |
|
Define the an buzzy state for an agent all time in this state. Definition at line 147 of file baseai.cpp. |
|
Define the an end state for an agent all time in this state. Definition at line 148 of file baseai.cpp. |
|
Define the an error state for an agent all time in this state. Definition at line 149 of file baseai.cpp. |
|
Define the an idle state for an agent all time in this state. Definition at line 145 of file baseai.cpp. |
|
Define the an locked state for an agent all time in this state. Definition at line 146 of file baseai.cpp. |
|
Definition at line 144 of file baseai.cpp. |
|
Definition at line 143 of file baseai.cpp. |