# 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::CFuzzyVar Class Reference

#include <fuzzyvar.h>

Inheritance diagram for NLAIFUZZY::CFuzzyVar:

NLAILOGIC::IBaseVar NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CFuzzyVar (const NLAIAGENT::IVarName &, double, double, NLAIAGENT::IObjetOp *)
 CFuzzyVar (const NLAIAGENT::IVarName &, double, double, double value=0)
 CFuzzyVar (const CFuzzyVar &)
 ~CFuzzyVar ()
void addSet (IFuzzySet *, char *)
IFuzzySetgetSet (char *)
std::list< CFuzzyFact * > * fuzzify (double val)
virtual double unfuzify ()
void addFact (CFuzzyFact *)
void addFact (char *, double)
bool isIn (IFuzzySet *)
float membership (IFuzzySet *)
CSimpleFuzzyCondgetCond (char *)
virtual void setValue (NLAIAGENT::IObjetOp *obj)
virtual void setValue (float)
virtual NLAIAGENT::IObjetOpgetValue () const
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 void getDebugString (std::string &) 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 const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...

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

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

virtual bool operator== (NLAILOGIC::IBaseVar *var)
bool unify (NLAILOGIC::IBaseVar *, bool assign=false)
bool unify (NLAIAGENT::IObjetOp *, bool assign=false)
virtual NLAIAGENT::IObjetOpoperator== (NLAIAGENT::IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

virtual NLAIAGENT::tQueue isMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const
virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

virtual NLAIAGENT::IObjectIA::CProcessResult runMethodeMember (sint32, sint32, NLAIAGENT::IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

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


Static Public Attributes

const NLAIC::CIdentType IdFuzzyVar

Private Attributes

double _Value
double _Min
double _Max
char * _Name
std::vector< IFuzzySet * > _sets
std::vector< NLAIAGENT::CStringVarName * > _qual
std::vector< CFuzzyFact * > _facts

Constructor & Destructor Documentation

NLAIFUZZY::CFuzzyVar::CFuzzyVar const NLAIAGENT::IVarName  ,
double   ,
double   ,
NLAIAGENT::IObjetOp  
 

Definition at line 38 of file fuzzyvar.cpp.

References _Max, _Min, _Value, min, and value.

Referenced by clone, isEqual, and newInstance.

NLAIFUZZY::CFuzzyVar::CFuzzyVar const NLAIAGENT::IVarName  ,
double   ,
double   ,
double    value = 0
 

Definition at line 49 of file fuzzyvar.cpp.

References _Max, _Min, _Value, min, and value.

NLAIFUZZY::CFuzzyVar::CFuzzyVar const CFuzzyVar &   
 

Definition at line 56 of file fuzzyvar.cpp.

References _Max, _Min, and _Value.

NLAIFUZZY::CFuzzyVar::~CFuzzyVar  
 

Definition at line 63 of file fuzzyvar.cpp.

References _facts, _qual, and _sets.


Member Function Documentation

void NLAIFUZZY::CFuzzyVar::addFact char *   ,
double   
 

Definition at line 152 of file fuzzyvar.cpp.

References _facts, getSet, and membership.

void NLAIFUZZY::CFuzzyVar::addFact CFuzzyFact  
 

Definition at line 135 of file fuzzyvar.cpp.

References _facts.

void NLAIFUZZY::CFuzzyVar::addSet IFuzzySet  ,
char *   
 

Definition at line 88 of file fuzzyvar.cpp.

References _qual, and _sets.

Referenced by init, and runMethodeMember.

const NLAIC::IBasicType * NLAIFUZZY::CFuzzyVar::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 174 of file fuzzyvar.cpp.

References CFuzzyVar, and clone.

Referenced by clone.

std::list< CFuzzyFact * > * NLAIFUZZY::CFuzzyVar::fuzzify double    val
 

Definition at line 96 of file fuzzyvar.cpp.

References _sets, and membership.

CSimpleFuzzyCond * NLAIFUZZY::CFuzzyVar::getCond char *   
 

Definition at line 290 of file fuzzyvar.cpp.

References getSet.

void NLAIFUZZY::CFuzzyVar::getDebugString std::string &    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.

Implements NLAIC::IBasicType.

Definition at line 221 of file fuzzyvar.cpp.

References _sets, _Value, NLAILOGIC::IBaseVar::getName, and NLAIC::stringGetBuild.

Referenced by runMethodeMember.

sint32 NLAIFUZZY::CFuzzyVar::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAILOGIC::IBaseVar.

Definition at line 301 of file fuzzyvar.cpp.

IFuzzySet * NLAIFUZZY::CFuzzyVar::getSet char *   
 

Definition at line 140 of file fuzzyvar.cpp.

References _sets.

Referenced by addFact, and getCond.

const NLAIC::CIdentType & NLAIFUZZY::CFuzzyVar::getType   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).

Implements NLAIC::IBasicType.

Definition at line 250 of file fuzzyvar.cpp.

References IdFuzzyVar.

NLAIAGENT::IObjetOp * NLAIFUZZY::CFuzzyVar::getValue   const [virtual]
 

Implements NLAILOGIC::IBaseVar.

Definition at line 169 of file fuzzyvar.cpp.

References _Value.

void NLAIFUZZY::CFuzzyVar::init NLAIAGENT::IObjectIA   [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 358 of file fuzzyvar.cpp.

References _Name, addSet, NLAIAGENT::IBaseGroupType::getFront, NLAIAGENT::IObjectIA::IObjectIA, params, NLAIAGENT::IBaseGroupType::popFront, and NLAIAGENT::IBaseGroupType::size.

bool NLAIFUZZY::CFuzzyVar::isEqual const NLAIAGENT::IBasicObjectIA   a const
 

Definition at line 240 of file fuzzyvar.cpp.

References _Value, and CFuzzyVar.

bool NLAIFUZZY::CFuzzyVar::isEqual const CFuzzyVar &    a const
 

Definition at line 235 of file fuzzyvar.cpp.

References _Value.

bool NLAIFUZZY::CFuzzyVar::isIn IFuzzySet  
 

Definition at line 280 of file fuzzyvar.cpp.

References _Value.

tQueue NLAIFUZZY::CFuzzyVar::isMember const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  ,
const NLAIAGENT::IObjectIA  
const [virtual]
 

Reimplemented from NLAILOGIC::IBaseVar.

Definition at line 381 of file fuzzyvar.cpp.

References _ADDSUBSET_, _UNFUZIFY_, NLAIAGENT::IObjectIA::IObjectIA, param, and NLAIAGENT::tQueue.

bool NLAIFUZZY::CFuzzyVar::isTrue   const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 245 of file fuzzyvar.cpp.

void NLAIFUZZY::CFuzzyVar::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 201 of file fuzzyvar.cpp.

References _Max, _Min, _sets, _Value, NLAIC::CIdentTypeAlloc::allocClass, id, and NLMISC::IStream::serial.

float NLAIFUZZY::CFuzzyVar::membership IFuzzySet  
 

Definition at line 285 of file fuzzyvar.cpp.

References _Value.

Referenced by addFact, and fuzzify.

const NLAIC::IBasicType * NLAIFUZZY::CFuzzyVar::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 180 of file fuzzyvar.cpp.

References CFuzzyVar, and x.

NLAIAGENT::IObjetOp * NLAIFUZZY::CFuzzyVar::operator== NLAIAGENT::IObjetOp   a const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 270 of file fuzzyvar.cpp.

bool NLAIFUZZY::CFuzzyVar::operator== NLAILOGIC::IBaseVar   var [virtual]
 

Definition at line 255 of file fuzzyvar.cpp.

const NLAIAGENT::IObjectIA::CProcessResult & NLAIFUZZY::CFuzzyVar::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 275 of file fuzzyvar.cpp.

IObjectIA::CProcessResult NLAIFUZZY::CFuzzyVar::runMethodeMember sint32   ,
sint32   ,
NLAIAGENT::IObjectIA  
[virtual]
 

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 352 of file fuzzyvar.cpp.

References id, params, and runMethodeMember.

IObjectIA::CProcessResult NLAIFUZZY::CFuzzyVar::runMethodeMember sint32   ,
NLAIAGENT::IObjectIA  
[virtual]
 

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 NLAILOGIC::IBaseVar.

Definition at line 307 of file fuzzyvar.cpp.

References _Value, addSet, getDebugString, NLAIC::IBasicType::getDebugString, NLAILOGIC::IBaseVar::getName, id, params, r, unfuzify, and x.

Referenced by runMethodeMember.

void NLAIFUZZY::CFuzzyVar::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 187 of file fuzzyvar.cpp.

References _Max, _Min, _sets, _Value, and NLMISC::IStream::serial.

void NLAIFUZZY::CFuzzyVar::setValue float    [virtual]
 

Definition at line 164 of file fuzzyvar.cpp.

References _Value, and value.

void NLAIFUZZY::CFuzzyVar::setValue NLAIAGENT::IObjetOp   obj [virtual]
 

Implements NLAILOGIC::IBaseVar.

Definition at line 159 of file fuzzyvar.cpp.

References _Value.

double NLAIFUZZY::CFuzzyVar::unfuzify   [virtual]
 

Definition at line 109 of file fuzzyvar.cpp.

References _sets, and _Value.

Referenced by runMethodeMember.

bool NLAIFUZZY::CFuzzyVar::unify NLAIAGENT::IObjetOp  ,
bool    assign = false
[virtual]
 

Implements NLAILOGIC::IBaseVar.

Definition at line 265 of file fuzzyvar.cpp.

bool NLAIFUZZY::CFuzzyVar::unify NLAILOGIC::IBaseVar  ,
bool    assign = false
[virtual]
 

Implements NLAILOGIC::IBaseVar.

Definition at line 260 of file fuzzyvar.cpp.


Member Data Documentation

std::vector<CFuzzyFact *> NLAIFUZZY::CFuzzyVar::_facts [private]
 

Definition at line 46 of file fuzzyvar.h.

Referenced by addFact, and ~CFuzzyVar.

double NLAIFUZZY::CFuzzyVar::_Max [private]
 

Definition at line 42 of file fuzzyvar.h.

Referenced by CFuzzyVar, load, and save.

double NLAIFUZZY::CFuzzyVar::_Min [private]
 

Definition at line 41 of file fuzzyvar.h.

Referenced by CFuzzyVar, load, and save.

char* NLAIFUZZY::CFuzzyVar::_Name [private]
 

Reimplemented from NLAILOGIC::IBaseVar.

Definition at line 43 of file fuzzyvar.h.

Referenced by init.

std::vector<NLAIAGENT::CStringVarName *> NLAIFUZZY::CFuzzyVar::_qual [private]
 

Definition at line 45 of file fuzzyvar.h.

Referenced by addSet, and ~CFuzzyVar.

std::vector<IFuzzySet *> NLAIFUZZY::CFuzzyVar::_sets [private]
 

Definition at line 44 of file fuzzyvar.h.

Referenced by addSet, fuzzify, getDebugString, getSet, load, save, unfuzify, and ~CFuzzyVar.

double NLAIFUZZY::CFuzzyVar::_Value [private]
 

Definition at line 40 of file fuzzyvar.h.

Referenced by CFuzzyVar, getDebugString, getValue, isEqual, isIn, load, membership, runMethodeMember, save, setValue, and unfuzify.

const NLAIC::CIdentType CFuzzyVar::IdFuzzyVar [static]
 

Initial value:

Definition at line 486 of file static_def_init.cpp.

Referenced by getType.


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