# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAILOGIC::CVarSet Class Reference

#include <varset.h>

Inheritance diagram for NLAILOGIC::CVarSet

Inheritance graph
[legend]
Collaboration diagram for NLAILOGIC::CVarSet:

Collaboration graph
[legend]
List of all members.

Public Methods

 CVarSet ()
 CVarSet (const CVarSet &)
 CVarSet (std::vector<IBaseVar *> &)
 ~CVarSet ()
CValueSetasCValueSet ()
virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual void getDebugString (char *text) 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...

virtual float truthValue () const
 Returns a value in [0,1]. More...

virtual const CProcessResult& run ()
 Some where Run method define the process of the agen. More...

virtual bool isEqual (const CVarSet &a) const
bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
virtual std::vector<IBaseVar *>* getVars ()
void addVar (IBaseVar *)
void removeVar (IBaseVar *)
virtual CVarSet* unify (CVarSet *)
virtual CVarSet* unify (CValueSet *)
bool isUnified ()
std::list<NLAIAGENT::IObjetOp *>* getValues ()
sint32 size ()
virtual NLAIAGENT::IObjetOpoperator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual NLAIAGENT::IObjetOpoperator!= (NLAIAGENT::IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual sint32 undefined ()
virtual IBaseVaroperator[] (sint32)

Static Public Attributes

const NLAIC::CIdentType IdVarSet

Protected Attributes

std::vector<IBaseVar *> _Vars
sint32 NbInstanciated

Constructor & Destructor Documentation

NLAILOGIC::CVarSet::CVarSet ( )
 

Definition at line 29 of file varset.cpp.

NLAILOGIC::CVarSet::CVarSet ( const CVarSet & vs )
 

Definition at line 34 of file varset.cpp.

NLAILOGIC::CVarSet::CVarSet ( std::vector< IBaseVar *>& c )
 

Definition at line 42 of file varset.cpp.

NLAILOGIC::CVarSet::~CVarSet ( )
 

Definition at line 50 of file varset.cpp.


Member Function Documentation

void NLAILOGIC::CVarSet::addVar ( IBaseVar * var )
 

Definition at line 144 of file varset.cpp.

Referenced by NLAISCRIPT::COperatorClass::buildLogicTables(), and NLAISCRIPT::COperatorClass::initialiseFactBase().

CValueSet * NLAILOGIC::CVarSet::asCValueSet ( )
 

Definition at line 291 of file varset.cpp.

const NLAIC::IBasicType * NLAILOGIC::CVarSet::clone ( void ) const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CClause, NLAILOGIC::CRule, and NLAILOGIC::CFactPattern.

Definition at line 59 of file varset.cpp.

void NLAILOGIC::CVarSet::getDebugString ( char * t ) const [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.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CClause, NLAILOGIC::CRule, and NLAILOGIC::CFactPattern.

Definition at line 99 of file varset.cpp.

const NLAIC::CIdentType & NLAILOGIC::CVarSet::getType ( void ) const [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).

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CRule, and NLAILOGIC::CFactPattern.

Definition at line 236 of file varset.cpp.

std::list< IObjetOp *>* NLAILOGIC::CVarSet::getValues ( )
 

Definition at line 273 of file varset.cpp.

std::vector< IBaseVar *>* NLAILOGIC::CVarSet::getVars ( ) [virtual]
 

Definition at line 165 of file varset.cpp.

Referenced by NLAISCRIPT::COperatorClass::compileFactPattern().

bool NLAILOGIC::CVarSet::isEqual ( const NLAIAGENT::IBasicObjectIA & a ) const
 

Reimplemented in NLAILOGIC::CFactPattern.

bool NLAILOGIC::CVarSet::isEqual ( const CVarSet & a ) const [virtual]
 

Definition at line 126 of file varset.cpp.

bool NLAILOGIC::CVarSet::isTrue ( ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAILOGIC::CClause.

Definition at line 256 of file varset.cpp.

bool NLAILOGIC::CVarSet::isUnified ( )
 

Definition at line 268 of file varset.cpp.

void NLAILOGIC::CVarSet::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 84 of file varset.cpp.

const NLAIC::IBasicType * NLAILOGIC::CVarSet::newInstance ( void ) const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CClause, NLAILOGIC::CRule, and NLAILOGIC::CFactPattern.

Definition at line 66 of file varset.cpp.

IObjetOp * NLAILOGIC::CVarSet::operator! ( ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAILOGIC::CClause.

Definition at line 246 of file varset.cpp.

IObjetOp * NLAILOGIC::CVarSet::operator!= ( NLAIAGENT::IObjetOp & a ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAILOGIC::CClause.

Definition at line 251 of file varset.cpp.

IBaseVar * NLAILOGIC::CVarSet::operator[] ( sint32 i ) [virtual]
 

Definition at line 306 of file varset.cpp.

void NLAILOGIC::CVarSet::removeVar ( IBaseVar * var )
 

Definition at line 150 of file varset.cpp.

const IObjectIA::CProcessResult & NLAILOGIC::CVarSet::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAILOGIC::IBaseBoolType.

Definition at line 121 of file varset.cpp.

void NLAILOGIC::CVarSet::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 71 of file varset.cpp.

sint32 NLAILOGIC::CVarSet::size ( )
 

Definition at line 241 of file varset.cpp.

float NLAILOGIC::CVarSet::truthValue ( ) const [virtual]
 

Returns a value in [0,1].

Reimplemented from NLAILOGIC::IBaseBoolType.

Reimplemented in NLAILOGIC::CClause.

Definition at line 113 of file varset.cpp.

sint32 NLAILOGIC::CVarSet::undefined ( ) [virtual]
 

Definition at line 297 of file varset.cpp.

CVarSet * NLAILOGIC::CVarSet::unify ( CValueSet * fp ) [virtual]
 

Definition at line 206 of file varset.cpp.

CVarSet * NLAILOGIC::CVarSet::unify ( CVarSet * fp ) [virtual]
 

Reimplemented in NLAILOGIC::CClause.

Definition at line 178 of file varset.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAILOGIC::CVarSet::IdVarSet [static]
 

Definition at line 68 of file varset.h.

sint32 NLAILOGIC::CVarSet::NbInstanciated [protected]
 

Definition at line 40 of file varset.h.

std::vector< IBaseVar *> NLAILOGIC::CVarSet::_Vars [protected]
 

Definition at line 39 of file varset.h.


The documentation for this class was generated from the following files: