From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNLAINIMAT_1_1CClassifierSystem.html | 400 +++++++++++++++++++++ 1 file changed, 400 insertions(+) create mode 100644 docs/doxygen/nel/classNLAINIMAT_1_1CClassifierSystem.html (limited to 'docs/doxygen/nel/classNLAINIMAT_1_1CClassifierSystem.html') diff --git a/docs/doxygen/nel/classNLAINIMAT_1_1CClassifierSystem.html b/docs/doxygen/nel/classNLAINIMAT_1_1CClassifierSystem.html new file mode 100644 index 00000000..7afa6f7f --- /dev/null +++ b/docs/doxygen/nel/classNLAINIMAT_1_1CClassifierSystem.html @@ -0,0 +1,400 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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  
+

NLAINIMAT::CClassifierSystem Class Reference

A simple and minimal version of a Classifier System. +More... +

+#include <classifier.h> +

+List of all members. + + + + + + + + + + + + + + +

Public Methods

 CClassifierSystem ()
 Destructor. More...

virtual ~CClassifierSystem ()
void addClassifier (const TSensorMap &conditionsMap, sint16 priority, const char *behavior)
 Add a new classifier in the classifier system. More...

void addClassifierSystem (const CClassifierSystem &cs)
 Merge two CS. More...

std::string selectBehavior (const TSensorMap &sensorMap)
 Select a behavior according to the values in the sensorMap. More...

void getDebugString (std::string &t) const

Private Attributes

TSensorMap _sensors
std::list< CClassifier * > _classifiers
+


Detailed Description

+A simple and minimal version of a Classifier System. +

+

+Author:
+Gabriel ROBERT , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 44 of file classifier.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLAINIMAT::CClassifierSystem::CClassifierSystem  
+
+ + + + + +
+   + + +

+Destructor. +

+ +

+Definition at line 36 of file classifier.cpp.

+

+ + + + +
+ + + + + + + + + +
NLAINIMAT::CClassifierSystem::~CClassifierSystem   [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file classifier.cpp. +

+References _classifiers.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLAINIMAT::CClassifierSystem::addClassifier const TSensorMap  conditionsMap,
sint16   priority,
const char *   behavior
+
+ + + + + +
+   + + +

+Add a new classifier in the classifier system. +

+

+Parameters:
+ + + + +
conditionsMap  +is a map whose key is the sensor name and value the sensor value.
priority  +is the importance of this rule. The value should be between 0 an 100.
behavior  +is the action to execute if this classifier is selected.
+
+

+Definition at line 50 of file classifier.cpp. +

+References _classifiers, _sensors, and NLAINIMAT::TSensorMap. +

+Referenced by addClassifierSystem.

+

+ + + + +
+ + + + + + + + + + +
void NLAINIMAT::CClassifierSystem::addClassifierSystem const CClassifierSystem &   cs
+
+ + + + + +
+   + + +

+Merge two CS. +

+ +

+Definition at line 74 of file classifier.cpp. +

+References addClassifier, and NLAINIMAT::TSensorMap.

+

+ + + + +
+ + + + + + + + + + +
void NLAINIMAT::CClassifierSystem::getDebugString std::string &   t const
+
+ + + + + +
+   + + +

+ +

+Definition at line 158 of file classifier.cpp. +

+References _classifiers, t, and NLMISC::toString.

+

+ + + + +
+ + + + + + + + + + +
std::string NLAINIMAT::CClassifierSystem::selectBehavior const TSensorMap  sensorMap
+
+ + + + + +
+   + + +

+Select a behavior according to the values in the sensorMap. +

+

+Parameters:
+ + +
sensorMap  +is a map whose key is the sensor name and value the sensor value.
+
+Returns:
+is the behvior of the selected classifier.
+

+Definition at line 91 of file classifier.cpp. +

+References _classifiers, _sensors, r, and NLAINIMAT::TSensorMap.

+


Member Data Documentation

+

+ + + + +
+ + +
std::list<CClassifier*> NLAINIMAT::CClassifierSystem::_classifiers [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file classifier.h. +

+Referenced by addClassifier, getDebugString, selectBehavior, and ~CClassifierSystem.

+

+ + + + +
+ + +
TSensorMap NLAINIMAT::CClassifierSystem::_sensors [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file classifier.h. +

+Referenced by addClassifier, and selectBehavior.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1