#include <agent_nombre.h>
Inheritance diagram for NLAIAGENT::IDigital< tNombre >:
Public Types | |
enum | TMethodNumDef { TConst, TLastM } |
This enum define ident for hard coded method that we have to import its under the script. More... | |
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 void | getDebugString (std::string &) const=0 |
virtual const std::string | getInfo () |
virtual std::string | getMethodeMemberDebugString (sint32, sint32) const |
virtual IObjetOp * | getNeg () const |
virtual double | getNumber () 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 CIdentType & | getType () const=0 |
tNombre | getValue () const |
IDigital (NLMISC::IStream &is) | |
IDigital () | |
IDigital (const IDigital &value) | |
IDigital (tNombre value) | |
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 bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual void | load (NLMISC::IStream &is) |
virtual IObjetOp & | neg ()=0 |
throw (NLAIE::CExceptionNotImplemented) | |
virtual const IBasicType * | newInstance () const=0 |
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! () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator!= (IObjetOp &a) 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) |
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) | |
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/= (const IObjetOp &a) |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator< (IObjetOp &a) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator<= (IObjetOp &a) const |
throw (NLAIE::CExceptionNotImplemented) | |
bool | operator== (const IBasicObjectIA &classType) const |
virtual IObjetOp * | operator== (IObjetOp &a) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator> (IObjetOp &a) const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual IObjetOp * | operator>= (IObjetOp &a) 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 & | run ()=0 |
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 bool | setStaticMember (sint32, IObjectIA *) |
bool | setStaticMember (const IVarName &compName, IObjectIA *change) |
void | setValue (tNombre value) |
virtual | ~IDigital () |
Static Public Attributes | |
TProcessStatement | ProcessBuzzy = processBuzzy |
TProcessStatement | ProcessEnd = processEnd |
TProcessStatement | ProcessError = processError |
TProcessStatement | ProcessIdle = processIdle |
TProcessStatement | ProcessLocked = processLocked |
CProcessResult | ProcessNotComplit = IObjectIA::CProcessResult(processNotComplete) |
CProcessResult | ProcessRun = IObjectIA::CProcessResult() |
CMethodCall | StaticMethod [] |
This variable its used to store method import characteristic. | |
Protected Member Functions | |
void | addValue (tNombre value) |
virtual void | chekBorn () |
void | divValue (tNombre value) |
void | mulValue (tNombre value) |
void | subValue (tNombre value) |
Protected Attributes | |
tNombre | _Value |
|
This enum define ident for hard coded method that we have to import its under the script.
Definition at line 47 of file agent_nombre.h.
|
|
Definition at line 46 of file agent_operator.h.
|
|
Definition at line 334 of file agent_nombre.h.
00334 :INombre<tNombre>(value) 00335 { 00336 } |
|
Definition at line 338 of file agent_nombre.h.
00338 :INombre<tNombre>(value) 00339 { 00340 } |
|
Definition at line 342 of file agent_nombre.h.
00343 { 00344 } |
|
Definition at line 346 of file agent_nombre.h.
00346 :INombre<tNombre>(is) 00347 { 00348 } |
|
Definition at line 350 of file agent_nombre.h.
00351 { 00352 } |
|
Definition at line 304 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::operator+=().
|
|
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 } |
|
Reimplemented in NLAIAGENT::IBornNombre< tNombre >, NLAIAGENT::IBornNombre< double >, and NLAIAGENT::IBornNombre< float >. Definition at line 302 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::addValue(), NLAIAGENT::INombre< sint32 >::divValue(), NLAIAGENT::INombre< sint32 >::mulValue(), NLAIAGENT::INombre< sint32 >::operator=(), and NLAIAGENT::INombre< sint32 >::subValue().
00302 {} |
|
|
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 }
|
|
Definition at line 322 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::operator/=().
|
|
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 } |
|
|
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 } |
|
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::IObjetOp. Definition at line 37 of file agent_nombre.cpp. References sint32, and NLAIAGENT::INombreDefine::TLastM.
00038 { 00039 return IObjetOp::getMethodIndexSize() + TLastM; 00040 } |
|
Definition at line 165 of file agent_operator.h. References NLAIC::IBasicType::clone(), and NLAIAGENT::IObjetOp::neg(). Referenced by NLAISCRIPT::CNegOpCode::runOpCode().
|
|
In general number can be read as a bouble. Be careful, this generalisation don't work with 64Bits numbrer, in this case make a test of object before, or make th good cast if the type is known Implements NLAIAGENT::INombreDefine. Definition at line 354 of file agent_nombre.h.
00355 { 00356 return (double)_Value; 00357 } |
|
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 } |
|
|
Definition at line 174 of file agent_nombre.h.
00175 { 00176 return _Value; 00177 } |
|
|
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. Definition at line 62 of file agent_nombre.cpp. References sint32.
00063 {
00064 return -1;
00065 }
|
|
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 164 of file agent_nombre.h.
|
|
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::IObjectIA. Definition at line 42 of file agent_nombre.cpp. References NLAIAGENT::INombreDefine::TLastM, and NLAIAGENT::TQueue.
00043 { 00044 TQueue a; 00045 NLAISCRIPT::CParam methodParam; 00046 00047 if(className == NULL) 00048 { 00049 for(int i = 0; i < TLastM; i++) 00050 { 00051 if(*methodName == INombreDefine::StaticMethod[i].MethodName) 00052 { 00053 CObjectType *c = new CObjectType(new NLAIC::CIdentType(NLAIC::CIdentType::VoidType)); 00054 a.push(CIdMethod(INombreDefine::StaticMethod[i].Index + IObjetOp::getMethodIndexSize(),0.0,NULL,c)); 00055 break; 00056 } 00057 } 00058 } 00059 return a; 00060 } |
|
throw (NLAIE::CExceptionNotImplemented)
Implements NLAIAGENT::IObjetOp. Definition at line 169 of file agent_nombre.h.
00170 { 00171 return _Value != (tNombre)0; 00172 } |
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Reimplemented in NLAIAGENT::IBornNombre< tNombre >, NLAIAGENT::IBornNombre< double >, and NLAIAGENT::IBornNombre< float >. Definition at line 157 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::INombre().
00158 { 00159 // TODO 00160 is.serial( _Value ); 00161 00162 } |
|
Definition at line 316 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::operator *=().
|
|
|
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 202 of file agent_operator.h.
00203 { 00204 return *this * *a; 00205 00206 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 236 of file agent_nombre.h.
|
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 182 of file agent_operator.h.
00183 { 00184 return *this *= *a; 00185 00186 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 208 of file agent_nombre.h.
00209 { 00210 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00211 mulValue(v); 00212 return *this; 00213 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 279 of file agent_nombre.h.
00280 { 00281 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value == (tNombre)0); 00282 return x; 00283 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 285 of file agent_nombre.h.
00286 { 00287 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00288 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value != v); 00289 return x; 00290 } |
|
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 from NLAIAGENT::IObjetOp. Definition at line 222 of file agent_nombre.h.
|
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IBaseGroupType. Definition at line 173 of file agent_operator.h.
00174 { 00175 return *this += *a; 00176 } |
|
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. Definition at line 192 of file agent_nombre.h.
00193 { 00194 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00195 addValue(v); 00196 return *this; 00197 } |
|
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 from NLAIAGENT::IObjetOp. Definition at line 229 of file agent_nombre.h.
|
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented in NLAIAGENT::IBaseGroupType. Definition at line 177 of file agent_operator.h.
00178 { 00179 return *this -= *a; 00180 00181 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 199 of file agent_nombre.h.
00200 { 00201 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00202 subValue(v); 00203 return *this; 00204 } |
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 207 of file agent_operator.h.
00208 { 00209 return *this / *a; 00210 00211 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 243 of file agent_nombre.h.
|
|
throw (NLAIE::CExceptionNotImplemented)
Definition at line 187 of file agent_operator.h.
00188 { 00189 return *this /= *a; 00190 00191 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 215 of file agent_nombre.h.
00216 { 00217 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00218 divValue(v); 00219 return *this; 00220 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 251 of file agent_nombre.h.
00252 { 00253 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00254 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value < v); 00255 return x; 00256 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 265 of file agent_nombre.h.
00266 { 00267 tNombre v = (tNombre)((const INombre &)a).getNumber(); 00268 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value <= v); 00269 return x; 00270 } |
|
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 from NLAIAGENT::IObjetOp. Definition at line 292 of file agent_nombre.h.
00293 { 00294 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00295 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value == v); 00296 return x; 00297 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 258 of file agent_nombre.h.
00259 { 00260 tNombre v = (tNombre)((const INombreDefine &)a).getNumber(); 00261 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value > v); 00262 return x; 00263 } |
|
throw (NLAIE::CExceptionNotImplemented)
Reimplemented from NLAIAGENT::IObjetOp. Definition at line 272 of file agent_nombre.h.
00273 { 00274 tNombre v = (tNombre)((const INombre &)a).getNumber(); 00275 NLAILOGIC::CBoolType *x = new NLAILOGIC::CBoolType(_Value >= v); 00276 return x; 00277 } |
|
|
|
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::IObjectIA. Definition at line 133 of file agent_nombre.h.
00134 { 00135 IBaseGroupType *param = (IBaseGroupType *)p; 00136 00137 switch(index - IObjetOp::getMethodIndexSize()) 00138 { 00139 case INombreDefine::TConst: 00140 { 00141 _Value = (tNombre )((INombreDefine *)param->get())->getNumber(); 00142 return IObjectIA::CProcessResult(); 00143 } 00144 } 00145 00146 return IObjectIA::CProcessResult(); 00147 } |
|
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::IObjectIA. Definition at line 129 of file agent_nombre.h.
00130 {
00131 return IObjectIA::CProcessResult();
00132 }
|
|
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::IBornNombre< tNombre >, NLAIAGENT::IBornNombre< double >, and NLAIAGENT::IBornNombre< float >. Definition at line 150 of file agent_nombre.h.
|
|
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().
|
|
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 } |
|
Definition at line 179 of file agent_nombre.h.
|
|
Definition at line 310 of file agent_nombre.h. Referenced by NLAIAGENT::INombre< sint32 >::operator-=().
|
|
Definition at line 106 of file agent_nombre.h. |
|
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. |
|
Initial value: { INombreDefine::CMethodCall(_CONSTRUCTOR_,TConst) }
Definition at line 32 of file agent_nombre.cpp. |