#include <performative.h>
Inheritance diagram for NLAIAGENT::CPError:
Definition at line 284 of file performative.h.
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 &) |
CPError () | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual void | getDebugString (std::string &text) const |
virtual const std::string | getInfo () |
virtual std::string | getMethodeMemberDebugString (sint32, sint32) const |
virtual const char * | getName () 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 |
sint32 | getValue () 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 bool | isTrue () const |
throw (NLAIE::CExceptionNotImplemented) | |
virtual void | load (NLMISC::IStream &is) |
virtual IObjetOp & | neg () |
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! () 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 () |
virtual CProcessResult | runMethodeMember (sint32 index, IObjectIA *p) |
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 bool | setStaticMember (sint32, IObjectIA *) |
bool | setStaticMember (const IVarName &compName, IObjectIA *change) |
void | setValue (sint32value) |
Base class member method. | |
virtual const NLAIC::IBasicType * | clone () const |
virtual const NLAIC::CIdentType & | getType () const |
virtual const NLAIC::IBasicType * | newInstance () const |
Static Public Attributes | |
const NLAIC::CIdentType | IdIntegerType |
const NLAIC::CIdentType | IdPError |
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 (sint32value) |
virtual void | chekBorn () |
void | divValue (sint32value) |
void | mulValue (sint32value) |
void | subValue (sint32value) |
Protected Attributes | |
sint32 | _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 289 of file performative.h. Referenced by clone().
00289 :IPerformative(IMessageBase::PError) 00290 { 00291 } |
|
Definition at line 304 of file agent_nombre.h. References NLAIAGENT::INombre< tNombre >::chekBorn(), and value.
|
|
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 } |
|
Definition at line 302 of file agent_nombre.h. Referenced by NLAIAGENT::IntegerType::neg().
00302 {} |
|
This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. Reimplemented from NLAIAGENT::IntegerType. Definition at line 300 of file performative.h. References CPError(). Referenced by newInstance().
00301 { 00302 NLAIC::IBasicInterface *m = new CPError(); 00303 return m; 00304 } |
|
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. References NLAIAGENT::INombre< tNombre >::chekBorn(), and value.
|
|
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 } |
|
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 372 of file agent_digital.h. References NLAIAGENT::INombre< sint32 >::getValue(), and NLAIC::stringGetBuild().
00373 { 00374 00375 text += NLAIC::stringGetBuild("%d",getValue()); 00376 } |
|
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 } |
|
Implements NLAIAGENT::IPerformative. Definition at line 312 of file performative.h.
00313 { 00314 return "Error"; 00315 } |
|
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. Referenced by NLAIAGENT::IObjectIA::runMethodeMember().
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 } |
|
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). Reimplemented from NLAIAGENT::IntegerType. Definition at line 295 of file performative.h. References IdPError.
00296 { 00297 return IdPError; 00298 } |
|
Definition at line 174 of file agent_nombre.h. Referenced by NLAIAGENT::IntegerType::getDebugString(), and NLAIAGENT::CVolatilMemmory::runMessage().
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. Definition at line 157 of file agent_nombre.h. References NLMISC::IStream::serial().
00158 { 00159 // TODO 00160 is.serial( _Value ); 00161 00162 } |
|
Definition at line 316 of file agent_nombre.h. References NLAIAGENT::INombre< tNombre >::chekBorn(), and value.
|
|
throw (NLAIE::CExceptionNotImplemented)
Implements NLAIAGENT::INombre< sint32 >. Definition at line 350 of file agent_digital.h. References NLAIAGENT::INombre< sint32 >::chekBorn().
|
|
This function allow a new instance, that mean that the class is a class factory. Reimplemented from NLAIAGENT::IntegerType. Definition at line 306 of file performative.h. References clone().
00307 { 00308 return clone(); 00309 } |
|
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. References NLAIC::IBasicType::clone().
|
|
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. References NLAIAGENT::INombre< tNombre >::mulValue(), and v.
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. References x.
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. References NLAIC::IBasicType::clone().
|
|
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. References NLAIAGENT::INombre< tNombre >::addValue(), and v.
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. References NLAIC::IBasicType::clone().
|
|
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. References NLAIAGENT::INombre< tNombre >::subValue(), and v.
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. References NLAIC::IBasicType::clone().
|
|
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. References NLAIAGENT::INombre< tNombre >::divValue(), and v.
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 } |
|
|
Some where Run method define the process of the agen. Implements NLAIAGENT::IObjectIA. Definition at line 76 of file digital.cpp.
00077 {
00078 return IObjectIA::ProcessRun;
00079 }
|
|
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. References index, param, and sint32.
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. References sint32.
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. Definition at line 150 of file agent_nombre.h. References NLMISC::IStream::serial(), and v.
|
|
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. References value.
|
|
Definition at line 310 of file agent_nombre.h. References NLAIAGENT::INombre< tNombre >::chekBorn(), and value.
|
|
Definition at line 106 of file agent_nombre.h. |
|
Referenced by NLAIAGENT::IntegerType::getType(). |
|
Initial value: NLAIC::CIdentType( "Error", NLAIC::CSelfClassFactory((const NLAIC::IBasicInterface &)CPError()), NLAIC::CTypeOfObject::tPerformative, NLAIC::CTypeOfOperator(NLAIC::CTypeOfOperator::opNone) ) Definition at line 554 of file static_def_init.cpp. 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. |
|
Initial value: { INombreDefine::CMethodCall(_CONSTRUCTOR_,TConst) }
Definition at line 32 of file agent_nombre.cpp. |