|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAISCRIPT::CLibTest Class ReferenceClass CLibTest.
More...
#include <test_method.h>
Inheritance diagram for NLAISCRIPT::CLibTest:
List of all members.
Public Types |
enum | TMethodNumDef {
TIsNULL,
TRand1,
TRand2,
TDiscretRand,
TConst,
TLastM
} |
| This enum define ident for hard coded method that we have to import its under the script. More...
|
enum | TTypeCheck { CheckAll,
CheckCount,
DoNotCheck
} |
Public Methods |
| CLibTest () |
|
virtual sint32 | isClassInheritedFrom (const NLAIAGENT::IVarName &) const |
virtual sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of method define in the class. More...
|
double | rand (double, double) const |
sint | dRand (sint, sint) const |
virtual NLAIAGENT::tQueue | isMember (const NLAIAGENT::IVarName *className, const NLAIAGENT::IVarName *mathodName, const NLAIAGENT::IObjectIA &) const |
virtual NLAIAGENT::IObjectIA::CProcessResult | runMethodeMember (sint32 heritance, sint32 index, NLAIAGENT::IObjectIA *) |
| The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...
|
virtual NLAIAGENT::IObjectIA::CProcessResult | runMethodeMember (sint32 index, NLAIAGENT::IObjectIA *) |
| The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...
|
const NLAIAGENT::IObjectIA::CProcessResult & | run () |
| Some where Run method define the process of the agen. More...
|
bool | isEqual (const NLAIAGENT::IBasicObjectIA &a) const |
|
const NLAIC::IBasicType * | clone () const |
| This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...
|
const NLAIC::IBasicType * | newInstance () const |
| This function allow a new instance, that mean that the class is a class factory. More...
|
const NLAIC::CIdentType & | getType () const |
| getType return a unique string how represente the class, it can be the name of the class. More...
|
virtual void | getDebugString (std::string &t) const |
| 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. More...
|
void | save (NLMISC::IStream &os) |
| Save the class in a stream. More...
|
void | load (NLMISC::IStream &is) |
| Load the class from a stream. More...
|
Static Public Methods |
void | initClass () |
void | releaseClass () |
Static Public Attributes |
CMethodCall ** | StaticMethod = NULL |
| This variable its used to store method import characteristic. More...
|
const NLAIC::CIdentType | IdLibTest |
Detailed Description
Class CLibTest.
This class allows to define several method to testing validate state of agent.
-
Author:
-
Chafik sameh , Nevrax France
-
Date:
-
2000
Definition at line 39 of file test_method.h.
Member Enumeration Documentation
enum NLAISCRIPT::CLibTest::TMethodNumDef
|
|
|
This enum define ident for hard coded method that we have to import its under the script.
-
Enumeration values:
-
TIsNULL |
|
TRand1 |
Test if an expression is NULL;. |
TRand2 |
|
TDiscretRand |
|
TConst |
|
TLastM |
The count of export method. |
Definition at line 43 of file test_method.h. |
enum NLAISCRIPT::CLibTest::TTypeCheck
|
|
|
-
Enumeration values:
-
CheckAll |
|
CheckCount |
|
DoNotCheck |
|
Definition at line 59 of file test_method.h. |
Constructor & Destructor Documentation
NLAISCRIPT::CLibTest::CLibTest |
( |
|
) |
|
|
Member Function Documentation
virtual void NLAISCRIPT::CLibTest::getDebugString |
( |
std::string & |
t |
) |
const [inline, virtual] |
|
|
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 140 of file test_method.h.
References t. |
virtual sint32 NLAISCRIPT::CLibTest::getMethodIndexSize |
( |
|
) |
const [inline, virtual] |
|
|
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 135 of file test_method.h. |
void NLAISCRIPT::CLibTest::initClass |
( |
|
) |
[static] |
|
const NLAIC::IBasicType* NLAISCRIPT::CLibTest::newInstance |
( |
|
) |
const [inline, virtual] |
|
double NLAISCRIPT::CLibTest::rand |
( |
double |
, |
|
|
double |
|
|
) |
const |
|
void NLAISCRIPT::CLibTest::releaseClass |
( |
|
) |
[static] |
|
|
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 230 of file test_method.cpp.
References dRand, NLAIAGENT::IDigital< double >::getNumber, NLAIC::IBasicType::getType, NLAIC::IPointerGestion::incRef, index, param, r, rand, NLAIAGENT::IObjectIA::CProcessResult::Result, and NLAIC::CTypeOfObject::tNombre. |
Member Data Documentation
|
This variable its used to store method import characteristic.
Definition at line 43 of file test_method.cpp. |
The documentation for this class was generated from the following files:
|
|