|
|
|
|
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 ReferenceA simple and minimal version of a Classifier System.
More...
#include <classifier.h>
List of all members.
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 |
( |
|
) |
|
|
NLAINIMAT::CClassifierSystem::~CClassifierSystem |
( |
|
) |
[virtual] |
|
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 |
) |
|
|
void NLAINIMAT::CClassifierSystem::getDebugString |
( |
std::string & |
t |
) |
const |
|
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
TSensorMap NLAINIMAT::CClassifierSystem::_sensors [private]
|
|
The documentation for this class was generated from the following files:
|
|