|
|
|
|
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:
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 *) |
IFuzzySet * | getSet (char *) |
std::list< CFuzzyFact * > * | fuzzify (double val) |
virtual double | unfuzify () |
void | addFact (CFuzzyFact *) |
void | addFact (char *, double) |
bool | isIn (IFuzzySet *) |
float | membership (IFuzzySet *) |
CSimpleFuzzyCond * | getCond (char *) |
virtual void | setValue (NLAIAGENT::IObjetOp *obj) |
virtual void | setValue (float) |
virtual NLAIAGENT::IObjetOp * | getValue () const |
virtual 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...
|
virtual const NLAIC::IBasicType * | newInstance () 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::CProcessResult & | run () |
| 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::CIdentType & | getType () 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::IObjetOp * | operator== (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 |
, |
|
|
double |
value = 0 |
|
) |
|
|
NLAIFUZZY::CFuzzyVar::CFuzzyVar |
( |
const CFuzzyVar & |
|
) |
|
|
NLAIFUZZY::CFuzzyVar::~CFuzzyVar |
( |
|
) |
|
|
Member Function Documentation
void NLAIFUZZY::CFuzzyVar::addFact |
( |
char * |
, |
|
|
double |
|
|
) |
|
|
void NLAIFUZZY::CFuzzyVar::addFact |
( |
CFuzzyFact * |
|
) |
|
|
void NLAIFUZZY::CFuzzyVar::addSet |
( |
IFuzzySet * |
, |
|
|
char * |
|
|
) |
|
|
void NLAIFUZZY::CFuzzyVar::getDebugString |
( |
std::string & |
|
) |
const [virtual] |
|
sint32 NLAIFUZZY::CFuzzyVar::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
IFuzzySet * NLAIFUZZY::CFuzzyVar::getSet |
( |
char * |
|
) |
|
|
|
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. |
bool NLAIFUZZY::CFuzzyVar::isEqual |
( |
const CFuzzyVar & |
a |
) |
const |
|
bool NLAIFUZZY::CFuzzyVar::isIn |
( |
IFuzzySet * |
|
) |
|
|
bool NLAIFUZZY::CFuzzyVar::isTrue |
( |
|
) |
const [virtual] |
|
float NLAIFUZZY::CFuzzyVar::membership |
( |
IFuzzySet * |
|
) |
|
|
|
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. |
|
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::setValue |
( |
float |
|
) |
[virtual] |
|
double NLAIFUZZY::CFuzzyVar::unfuzify |
( |
|
) |
[virtual] |
|
Member Data Documentation
std::vector<CFuzzyFact *> NLAIFUZZY::CFuzzyVar::_facts [private]
|
|
double NLAIFUZZY::CFuzzyVar::_Max [private]
|
|
double NLAIFUZZY::CFuzzyVar::_Min [private]
|
|
char* NLAIFUZZY::CFuzzyVar::_Name [private]
|
|
std::vector<IFuzzySet *> NLAIFUZZY::CFuzzyVar::_sets [private]
|
|
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. |
The documentation for this class was generated from the following files:
|
|