# 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  

NLAIFUZZY::CFuzzyRule Class Reference

This class used for fuzzy inferences. More...

#include <fuzzyrule.h>

Inheritance diagram for NLAIFUZZY::CFuzzyRule

Inheritance graph
[legend]
Collaboration diagram for NLAIFUZZY::CFuzzyRule:

Collaboration graph
[legend]
List of all members.

Public Methods

 CFuzzyRule (char *comment = NULL)
 CFuzzyRule (const CFuzzyRule &)
 CFuzzyRule (const NLAILOGIC::CondAnd &)
 CFuzzyRule (std::list<NLAILOGIC::IBaseBoolType *> &conds, char *comment, float threshold = 0)
 ~CFuzzyRule ()
void addConc (CFuzzyVar *, IFuzzySet *)
void addCond (CFuzzyVar *, char *)
void addConc (CFuzzyVar *, char *)
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 void getDebugString (char *) 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...

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

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 const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...

bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

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

virtual void init (NLAIAGENT::IObjectIA *)
 Init method alows to init the attribut of an object. More...


Static Public Attributes

const NLAIC::CIdentType IdFuzzyRule

Private Attributes

std::vector<CFuzzyVar *> _Vars
std::vector<IFuzzySet *> _Sets
char* _Comment
float _Threshold

Detailed Description

This class used for fuzzy inferences.

Definition at line 38 of file fuzzyrule.h.


Constructor & Destructor Documentation

NLAIFUZZY::CFuzzyRule::CFuzzyRule ( char * comment = NULL )
 

Definition at line 34 of file fuzzyrule.cpp.

NLAIFUZZY::CFuzzyRule::CFuzzyRule ( const CFuzzyRule & cp )
 

Definition at line 58 of file fuzzyrule.cpp.

NLAIFUZZY::CFuzzyRule::CFuzzyRule ( const NLAILOGIC::CondAnd & cp )
 

Definition at line 71 of file fuzzyrule.cpp.

NLAIFUZZY::CFuzzyRule::CFuzzyRule ( std::list< NLAILOGIC::IBaseBoolType *>& conds,
char * comment,
float threshold = 0 )
 

Definition at line 45 of file fuzzyrule.cpp.

NLAIFUZZY::CFuzzyRule::~CFuzzyRule ( )
 

Definition at line 75 of file fuzzyrule.cpp.


Member Function Documentation

void NLAIFUZZY::CFuzzyRule::addConc ( CFuzzyVar * var,
char * set_name )
 

Definition at line 102 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::addConc ( CFuzzyVar * var,
IFuzzySet * set )
 

Definition at line 96 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::addCond ( CFuzzyVar * var,
char * set_name )
 

Definition at line 82 of file fuzzyrule.cpp.

const NLAIC::IBasicType * NLAIFUZZY::CFuzzyRule::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.

Definition at line 172 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::getDebugString ( char * txt ) 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.

Definition at line 113 of file fuzzyrule.cpp.

const NLAIC::CIdentType & NLAIFUZZY::CFuzzyRule::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.

Definition at line 208 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::init ( NLAIAGENT::IObjectIA * p ) [virtual]
 

Init method alows to init the attribut of an object.

the maparmetre is in more time a list of IObjectIA.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 219 of file fuzzyrule.cpp.

bool NLAIFUZZY::CFuzzyRule::isEqual ( const NLAIAGENT::IBasicObjectIA & a ) const
 

Definition at line 197 of file fuzzyrule.cpp.

bool NLAIFUZZY::CFuzzyRule::isTrue ( ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 203 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 150 of file fuzzyrule.cpp.

const NLAIC::IBasicType * NLAIFUZZY::CFuzzyRule::newInstance ( void ) const [virtual]
 

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

Reimplemented from NLAIC::IBasicType.

Definition at line 178 of file fuzzyrule.cpp.

NLAIAGENT::IObjetOp * NLAIFUZZY::CFuzzyRule::operator== ( NLAIAGENT::IObjetOp & a ) const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 213 of file fuzzyrule.cpp.

const NLAIAGENT::IObjectIA::CProcessResult & NLAIFUZZY::CFuzzyRule::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAILOGIC::IBaseBoolType.

Definition at line 184 of file fuzzyrule.cpp.

void NLAIFUZZY::CFuzzyRule::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 139 of file fuzzyrule.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAIFUZZY::CFuzzyRule::IdFuzzyRule [static]
 

Definition at line 59 of file fuzzyrule.h.

char * NLAIFUZZY::CFuzzyRule::_Comment [private]
 

Definition at line 42 of file fuzzyrule.h.

std::vector< IFuzzySet *> NLAIFUZZY::CFuzzyRule::_Sets [private]
 

Definition at line 41 of file fuzzyrule.h.

float NLAIFUZZY::CFuzzyRule::_Threshold [private]
 

Definition at line 43 of file fuzzyrule.h.

std::vector< CFuzzyVar *> NLAIFUZZY::CFuzzyRule::_Vars [private]
 

Definition at line 40 of file fuzzyrule.h.


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