# 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>

Collaboration diagram for NLAINIMAT::CClassifierSystem:

Collaboration graph
[legend]
List of all members.

Public Methods

 ~CClassifierSystem ()
 Destructor. More...

void addClassifier (std::map<std::string, char> conditionsMap, sint16 priority, const char* behavior)
 Add a new classifier in the classifier system. More...

std::string selectBehavior (std::map<std::string, char> sensorMap)
 Select a behavior according to the values in the sensorMap. More...


Private Attributes

std::map<std::string, char> _sensors
std::list<CClassifier*> _classifiers

Detailed Description

A simple and minimal version of a Classifier System.

Author(s):
Gabriel ROBERT , Nevrax France
Date:
2001

Definition at line 42 of file classifier.h.


Constructor & Destructor Documentation

NLAINIMAT::CClassifierSystem::~CClassifierSystem ( )
 

Destructor.

Definition at line 36 of file classifier.cpp.


Member Function Documentation

void NLAINIMAT::CClassifierSystem::addClassifier ( std::map< std::string,char > 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 46 of file classifier.cpp.

std::string NLAINIMAT::CClassifierSystem::selectBehavior ( std::map< std::string,char > 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 71 of file classifier.cpp.


Member Data Documentation

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

Definition at line 71 of file classifier.h.

std::map< std::string,char > NLAINIMAT::CClassifierSystem::_sensors [private]
 

Definition at line 70 of file classifier.h.


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