#include <agent_object.h>
Inheritance diagram for NLAIAGENT::CVectorGroupType:
Chafik sameh
Nevrax France
Definition at line 719 of file agent_object.h.
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 } |
typedef std::vector< const IObjectIA * > | TVectorType |
Public Member Functions | |
virtual TQueue | canProcessMessage (const IVarName &) |
void | clear () |
Clear the list. | |
virtual const NLAIC::IBasicType * | clone () const |
void | cpy (const IObjectIA &o) |
Push an IObjectIA back using the clone method. | |
CVectorGroupType (const CVectorGroupType &g) | |
CVectorGroupType () | |
CVectorGroupType (sint32) | |
Construct a vector with n uninitialize momory unite. Programmer must initialize the vector list after. | |
IObjetOp * | CVectorGroupType::operator! () const |
sint32 | decRef () |
Decrement the reference of an object. | |
void | erase (std::list< const IObjectIA * > &l) |
Erase all element contain in the list. | |
void | erase (const IObjectIA &obj) |
Erase the first element find equal at the const IObjectIA& on argument. | |
void | erase (const IObjectIA *o) |
Erase the element how have the same pointer memory as the argument const IObjectIA *. | |
void | eraseAll (const IObjectIA &obj) |
Erase all element find equal at the const IObjectIA & on argument. | |
const IObjectIA * | find (const IObjectIA &obj) const |
Find an element on the list the operator == is use. | |
TVectorType | findList (const IObjectIA &obj) const |
const IObjectIA * | get () const |
return the back IObjectIA. | |
TVectorType::iterator | getBegin () |
TVectorType::const_iterator | getBegin () const |
virtual CConstIteratorContener | getConstIterator () const |
Clear the list. | |
virtual void | getDebugString (std::string &text) const |
TVectorType::iterator | getEnd () |
TVectorType::const_iterator | getEnd () const |
const IObjectIA * | getFront () const |
return the front IObjectIA. | |
virtual const std::string | getInfo () |
virtual CIteratorContener | getIterator () |
Get an iterator to parse the list. | |
virtual std::string | getMethodeMemberDebugString (sint32, sint32) const |
virtual sint32 | getMethodIndexSize () const |
virtual IObjetOp * | getNeg () const |
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 NLAIC::CIdentType & | getType () const |
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 TQueue | isMember (const IVarName *, const IVarName *, const IObjectIA &) const |
virtual void | load (NLMISC::IStream &is) |
virtual IObjetOp & | neg () |
throw (NLAIE::CExceptionNotImplemented) | |
virtual const NLAIC::IBasicType * | newInstance () const |
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 *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator+ (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator- (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator- (const 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) | |
virtual IObjectIA & | operator= (const IObjectIA &a) |
Clear the list. | |
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 const IObjectIA * | operator[] (sint32) const |
Clear the list. | |
const IObjectIA * | pop () |
Pop the back IObjectIA and return it. | |
const IObjectIA * | popFront () |
Pop the front IObjectIA and return it. | |
void | push (const IObjectIA *o) |
Push an IObjectIA back. | |
void | pushFront (const IObjectIA *o) |
Push an IObjectIA front. | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual const CProcessResult & | run () |
virtual CProcessResult | runMethodeMember (sint32 index, IObjectIA *) |
virtual CProcessResult | runMethodeMember (sint32, sint32, IObjectIA *) |
virtual const CProcessResult & | runStep () |
virtual void | save (NLMISC::IStream &os) |
virtual CProcessResult | sendMessage (const IVarName &, IObjectIA *) |
virtual CProcessResult | sendMessage (IObjectIA *) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
virtual void | set (int, IObjectIA *) |
Push an IObjectIA at the position indicate by the int. | |
void | setObject (sint32 i, IObjectIA *a) |
virtual bool | setStaticMember (sint32, IObjectIA *) |
bool | setStaticMember (const IVarName &compName, IObjectIA *change) |
sint32 | size () const |
get the size of the list. | |
virtual | ~CVectorGroupType () |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator! () const=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator+= (const IObjetOp &a) |
add the operater by anather. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator! () const=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator+= (const IObjetOp &a) |
add the operater by anather. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator! () const=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator+= (const IObjetOp &a) |
add the operater by anather. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator! () const=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator+= (const IObjetOp &a) |
add the operater by anather. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjetOp method definition. | |
virtual bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator! () const=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator+= (const IObjetOp &a) |
add the operater by anather. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Some IObjectIA method definition. | |
virtual sint32 | isClassInheritedFrom (const IVarName &) const |
Some IObjetOp method definition. | |
virtual IObjetOp & | operator+= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp & | operator-= (IObjetOp *a) |
throw (NLAIE::CExceptionNotImplemented) | |
Static Public Attributes | |
CMethodCall | _Method [] |
const NLAIC::CIdentType | IdVectorGroupType |
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 Member Functions | |
TVectorType & | getVector () |
Private Attributes | |
TVectorType | _Vector |
std::vector for store IObjectIA object. |
|
Definition at line 727 of file agent_object.h. Referenced by findList(), and getVector(). |
|
Definition at line 46 of file agent_operator.h.
|
|
Construct a vector with n uninitialize momory unite. Programmer must initialize the vector list after.
Definition at line 789 of file group_type.cpp. References sint32.
00789 : _Vector(i) 00790 { 00791 } |
|
Definition at line 793 of file group_type.cpp. Referenced by clone(), newInstance(), operator+(), and operator-().
00794 { 00795 } |
|
Definition at line 797 of file group_type.cpp. References _Vector.
|
|
Definition at line 1131 of file group_type.cpp. References clear().
01132 { 01133 clear(); 01134 } |
|
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 1076 of file group_type.cpp. References NLAIC::IPointerGestion::release(). Referenced by operator=(), and ~CVectorGroupType().
01077 { 01078 while(_Vector.size()) 01079 { 01080 NLAIC::IBasicInterface * o = (NLAIC::IBasicInterface *)_Vector.front(); 01081 o->release(); 01082 _Vector.erase( _Vector.begin() ); 01083 } 01084 } |
|
This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. Implements NLAIC::IBasicType. Definition at line 1018 of file group_type.cpp. References CVectorGroupType(). Referenced by NLAIAGENT::CMessageVector::CMessageVector(), and operator=().
01019 { 01020 NLAIC::IBasicInterface *m = new CVectorGroupType(*this); 01021 return m; 01022 } |
|
Push an IObjectIA back using the clone method.
Implements NLAIAGENT::IBaseGroupType. Definition at line 849 of file group_type.cpp. References NLAIC::IBasicType::clone().
00850 { 00851 _Vector.push_back((const IObjectIA *)o.clone()); 00852 } |
|
|
|
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 994 of file group_type.cpp. References erase().
|
|
Erase the first element find equal at the const IObjectIA& on argument.
Implements NLAIAGENT::IBaseGroupType. Definition at line 978 of file group_type.cpp. References NLAIC::IPointerGestion::release().
|
|
Erase the element how have the same pointer memory as the argument const IObjectIA *.
Implements NLAIAGENT::IBaseGroupType. Definition at line 962 of file group_type.cpp. References NLAIC::IPointerGestion::release(). Referenced by erase().
|
|
Erase all element find equal at the const IObjectIA & on argument.
Implements NLAIAGENT::IBaseGroupType. Definition at line 946 of file group_type.cpp. References NLAIC::IPointerGestion::release().
|
|
Find an element on the list the operator == is use.
Implements NLAIAGENT::IBaseGroupType. Definition at line 935 of file group_type.cpp.
|
|
Definition at line 883 of file group_type.cpp. References TVectorType.
|
|
return the back IObjectIA.
Implements NLAIAGENT::IBaseGroupType. Definition at line 861 of file group_type.cpp.
00862 { 00863 return _Vector.back(); 00864 } |
|
Definition at line 925 of file group_type.cpp.
00926 { 00927 return _Vector.begin(); 00928 } |
|
Definition at line 915 of file group_type.cpp.
00916 { 00917 return _Vector.begin(); 00918 } |
|
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 767 of file agent_object.h.
00768 { 00769 return CConstIteratorContener((IBasicIterator *)(new CConstVectorIterator(_Vector))); 00770 } |
|
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. Definition at line 807 of file group_type.cpp. References NLAIC::IBasicType::getDebugString(), and NLAIC::stringGetBuild().
00808 { 00809 00810 if(_Vector.size()) 00811 { 00812 text += "["; 00813 std::vector<const IObjectIA *>::const_iterator i = _Vector.begin(); 00814 while(i != _Vector.end()) 00815 { 00816 std::string temp; 00817 const IObjectIA *o = *i++; 00818 o->getDebugString(temp); 00819 text += temp; 00820 if(i != _Vector.end()) text += " "; 00821 } 00822 text += "]"; 00823 00824 } 00825 else 00826 { 00827 text += NLAIC::stringGetBuild("CVectorGroupType<%04x>: <empty>",this); 00828 } 00829 } |
|
Definition at line 930 of file group_type.cpp.
00931 { 00932 return _Vector.end(); 00933 } |
|
Definition at line 920 of file group_type.cpp.
00921 { 00922 return _Vector.end(); 00923 } |
|
return the front IObjectIA.
Implements NLAIAGENT::IBaseGroupType. Definition at line 873 of file group_type.cpp.
00874 { 00875 return _Vector.front(); 00876 } |
|
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 762 of file agent_object.h.
00763 { 00764 return CIteratorContener(new CVectorIterator(_Vector)); 00765 } |
|
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. Definition at line 1110 of file group_type.cpp. References sint32.
01111 {
01112 return IBaseGroupType::getMethodIndexSize() + 1;
01113 }
|
|
Definition at line 165 of file agent_operator.h. References NLAIC::IBasicType::clone(), and NLAIAGENT::IObjetOp::neg(). Referenced by NLAISCRIPT::CNegOpCode::runOpCode().
|
|
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 } |
|
getType return a unique string how represente the class, it can be the name of the class. This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry). Implements NLAIC::IBasicType. Definition at line 768 of file group_type.cpp. References IdVectorGroupType.
00769 { 00770 return IdVectorGroupType; 00771 } |
|
Definition at line 783 of file group_type.cpp. References TVectorType.
00784 { 00785 return _Vector; 00786 } |
|
|
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'. Implements NLAIAGENT::IBasicObjectIA. Definition at line 1003 of file group_type.cpp. References size().
01004 { 01005 const CVectorGroupType &b = (const CVectorGroupType &)a; 01006 if(size() != b.size()) return false; 01007 01008 TVectorType::const_iterator i = _Vector.begin(); 01009 TVectorType::const_iterator j = _Vector.begin(); 01010 01011 while(i != _Vector.end()) 01012 { 01013 if(!(*i++)->isEqual(*(*j++))) return false; 01014 } 01015 return true; 01016 } |
|
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. Definition at line 1086 of file group_type.cpp. References param, and NLAIAGENT::TQueue.
01087 { 01088 TQueue a; 01089 NLAISCRIPT::CParam methodParam; 01090 NLAISCRIPT::CParam ¶m = (NLAISCRIPT::CParam &)p; 01091 01092 if(param.size() != 1) return IBaseGroupType::isMember(className,methodName,p); 01093 01094 if(className == NULL) 01095 { 01096 if(*methodName == IBaseGroupType::_Method[0].MethodName) 01097 { 01098 CObjectType *c = new CObjectType(new NLAIC::CIdentType(NLAIC::CIdentType::VoidType)); 01099 a.push(CIdMethod(_Const + IBaseGroupType::getMethodIndexSize(),0.0,NULL,c)); 01100 } 01101 else 01102 { 01103 return IBaseGroupType::isMember(className,methodName,p); 01104 } 01105 01106 } 01107 return a; 01108 } |
|
throw (NLAIE::CExceptionNotImplemented)
Implements NLAIAGENT::IObjetOp. Reimplemented in NLAIAGENT::IListBasicManager. Definition at line 261 of file group_type.cpp. Referenced by NLAIAGENT::IListBasicManager::isTrue().
00262 {
00263 return IObjetOp::isTrue();
00264 }
|
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Definition at line 1055 of file group_type.cpp. References NLAIC::IBasicInterface::load(), NLAIC::IPointerGestion::release(), NLMISC::IStream::serial(), and sint32.
01056 { 01057 sint32 i; 01058 while(_Vector.size()) 01059 { 01060 NLAIC::IBasicInterface * o = (NLAIC::IBasicInterface *)_Vector.front(); 01061 o->release(); 01062 _Vector.erase( _Vector.begin() ); 01063 } 01064 is.serial( i ); 01065 NLAIC::CIdentTypeAlloc id; 01066 while(i--) 01067 { 01068 is.serial( id ); 01069 NLAIC::IBasicInterface *o = (NLAIC::IBasicInterface *)id.allocClass(); 01070 o->load(is); 01071 _Vector.push_back((const IObjectIA *)o); 01072 01073 } 01074 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 1043 of file group_type.cpp. References uint32.
01044 { 01045 TVectorType::iterator i = _Vector.begin(); 01046 while(i != _Vector.end()) 01047 { 01048 const NLAIC::CTypeOfOperator &op = (const NLAIC::CTypeOfOperator &)(*i)->getType(); 01049 if((uint32)(op & NLAIC::CTypeOfOperator::opNeg)) ((IObjetOp *)(*i))->neg(); 01050 i++; 01051 } 01052 return *this; 01053 } |
|
This function allow a new instance, that mean that the class is a class factory. Implements NLAIC::IBasicType. Definition at line 1024 of file group_type.cpp. References CVectorGroupType().
01025 { 01026 NLAIC::IBasicInterface *m = new CVectorGroupType(); 01027 return m; 01028 } |
|
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 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Implemented in NLAIAGENT::IListBasicManager. |
|
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 from NLAIAGENT::IObjetOp. Definition at line 683 of file group_type.cpp. References _Vector, CVectorGroupType(), and NLAIC::IPointerGestion::incRef().
00684 { 00685 CVectorGroupType *o = new CVectorGroupType(); 00686 TVectorType::const_iterator i = _Vector.begin(); 00687 while(i != _Vector.end()) 00688 { 00689 o->_Vector.push_back(*i); 00690 ((IObjetOp*)(*i))->incRef(); 00691 i ++; 00692 } 00693 00694 *o += a; 00695 a->incRef(); 00696 return o; 00697 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 714 of file group_type.cpp. References _Vector, and CVectorGroupType().
00715 { 00716 CVectorGroupType *o = new CVectorGroupType(); 00717 TVectorType::const_iterator i = _Vector.begin(); 00718 while(i != _Vector.end()) 00719 { 00720 o->_Vector.push_back(*i); 00721 ((IObjetOp*)(*i))->incRef(); 00722 i ++; 00723 } 00724 00725 *o += a; 00726 00727 return o; 00728 } |
|
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::IObjetOp. Reimplemented in NLAIAGENT::IListBasicManager. Definition at line 68 of file group_type.cpp. References NLAIAGENT::IBaseGroupType::cpy().
00069 { 00070 cpy(a); 00071 return *this; 00072 } |
|
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 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 698 of file group_type.cpp. References _Vector, CVectorGroupType(), and NLAIC::IPointerGestion::release().
00699 { 00700 CVectorGroupType *o = new CVectorGroupType(); 00701 TVectorType::const_iterator i = _Vector.begin(); 00702 while(i != _Vector.end()) 00703 { 00704 o->_Vector.push_back(*i); 00705 ((IObjetOp*)(*i))->incRef(); 00706 i ++; 00707 } 00708 00709 *o -= a; 00710 a->release(); 00711 return o; 00712 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 729 of file group_type.cpp. References _Vector, and CVectorGroupType().
00730 { 00731 CVectorGroupType *o = new CVectorGroupType(); 00732 TVectorType::const_iterator i = _Vector.begin(); 00733 while(i != _Vector.end()) 00734 { 00735 o->_Vector.push_back(*i); 00736 ((IObjetOp*)(*i))->incRef(); 00737 i ++; 00738 } 00739 00740 *o -= a; 00741 return o; 00742 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Reimplemented in NLAIAGENT::IListBasicManager. Definition at line 74 of file group_type.cpp. References NLAIAGENT::IBaseGroupType::erase().
00075 { 00076 erase(a); 00077 return *this; 00078 } |
|
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)
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 } |
|
Clear the list.
Implements NLAIAGENT::IBaseGroupType. Definition at line 751 of file group_type.cpp. References _Vector, clear(), NLAIC::IBasicType::clone(), clone(), NLAIC::IBasicType::getType(), and uint.
00752 { 00753 clear(); 00754 if((uint)(((const NLAIC::CTypeOfObject &)a.getType()) & NLAIC::CTypeOfObject::tList)) 00755 { 00756 const CVectorGroupType &g= (const CVectorGroupType &)a; 00757 TVectorType::const_iterator i = g._Vector.begin(); 00758 while(i != g._Vector.end()) 00759 { 00760 _Vector.push_back((const IObjectIA *)(*i++)->clone()); 00761 } 00762 } 00763 else 00764 _Vector.push_back((const IObjectIA *)a.clone()); 00765 return *this; 00766 } |
|
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 896 of file group_type.cpp.
|
|
Pop the back IObjectIA and return it.
Implements NLAIAGENT::IBaseGroupType. Definition at line 854 of file group_type.cpp.
|
|
Pop the front IObjectIA and return it.
Implements NLAIAGENT::IBaseGroupType. Definition at line 866 of file group_type.cpp.
|
|
Push an IObjectIA back.
Implements NLAIAGENT::IBaseGroupType. Definition at line 833 of file group_type.cpp. Referenced by NLAIAGENT::CActorScript::runMethodBase().
00834 { 00835 _Vector.push_back(o); 00836 } |
|
Push an IObjectIA front.
Implements NLAIAGENT::IBaseGroupType. Definition at line 838 of file group_type.cpp. References sint32. Referenced by NLAISCRIPT::CCompilateur::registerMethod().
|
|
|
Some where Run method define the process of the agen. Implements NLAIAGENT::IObjectIA. Definition at line 773 of file group_type.cpp.
|
|
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. Definition at line 1119 of file group_type.cpp. References NLAIAGENT::INombre< float >::getValue(), index, param, and sint32.
01120 { 01121 sint32 i= index - IBaseGroupType::getMethodIndexSize(); 01122 if(i == _Const) 01123 { 01124 IBaseGroupType *param = (IBaseGroupType *)p; 01125 const DigitalType *f = (const DigitalType *)param->get(); 01126 _Vector.reserve((int)f->getValue()); 01127 } 01128 return IBaseGroupType::runMethodeMember(index,p); 01129 } |
|
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. Definition at line 1115 of file group_type.cpp. References sint32.
01116 {
01117 return IObjectIA::CProcessResult();
01118 }
|
|
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. Definition at line 1030 of file group_type.cpp. References NLAIC::IBasicType::getType(), NLAIC::IBasicInterface::save(), NLMISC::IStream::serial(), sint32, and size.
01031 { 01032 sint32 size = _Vector.size(); 01033 os.serial( size ); 01034 std::vector<const IObjectIA *>::const_iterator i = _Vector.begin(); 01035 while(i != _Vector.end()) 01036 { 01037 IObjectIA *o= (IObjectIA *)*i++; 01038 os.serial( (NLAIC::CIdentType &) o->getType() ); 01039 o->save(os); 01040 } 01041 } |
|
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 in NLAIAGENT::CActorScript, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CAgentTimerHandle, NLAIAGENT::IConnectIA, NLAIAGENT::IListManager, NLAIAGENT::CMainAgentScript, and NLAIAGENT::IMessageBase. Definition at line 342 of file baseai.cpp. References NLAIC::IBasicType::getType(), and NLAIC::stringGetBuild(). Referenced by NLAIAGENT::IObjectIA::runMethodeMember(), NLAIAGENT::CAgentScript::sendBroadCast(), NLAIAGENT::IMessageBase::sendMessage(), NLAIAGENT::IListManager::sendMessage(), and NLAIAGENT::CAgentScript::sendMessage().
00343 { 00344 std::string text; 00345 text = NLAIC::stringGetBuild("method 'sendMessage(const IObjectIA &)' '%s' interface", (const char *)getType()); 00346 throw NLAIE::CExceptionNotImplemented(text.c_str()); 00347 return CProcessResult(); 00348 } |
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Push an IObjectIA at the position indicate by the int.
Implements NLAIAGENT::IBaseGroupType. Definition at line 908 of file group_type.cpp. References index. Referenced by NLAIAGENT::CAgentWatchTimer::attach(), NLAIAGENT::CAgentWatchTimer::detach(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
|
|
Definition at line 772 of file agent_object.h. References sint32. Referenced by NLAIAGENT::CMessageScript::setStaticMember().
00773 { 00774 _Vector[i] = a; 00775 } |
|
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 878 of file group_type.cpp. References sint32. Referenced by isEqual().
00879 { 00880 return _Vector.size(); 00881 } |
|
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. |
|
std::vector for store IObjectIA object.
Definition at line 730 of file agent_object.h. Referenced by CVectorGroupType(), operator+(), operator-(), and operator=(). |
|
Referenced by getType(). |
|
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. |