NLAINIMAT::CConditionMap Class Reference

#include <classifier.h>


Detailed Description

A condition map. Used to describes all the conditions that must be associate to an action.
Author:
Gabriel ROBERT

Nevrax France

Date:
2003

Definition at line 132 of file classifier.h.

Public Member Functions

void addIfNotSensorCondition (TSensor sensorName, TSensorValue sensorValue)
 Used to add an if sensor != condition rule.

void addIfSensorCondition (TSensor sensorName, TSensorValue sensorValue)
 Used to add an if sensor == condition rule.

void addSensorCondition (TSensor sensorName, TSensorValue sensorValue, bool sensorIsTrue)
std::map< TSensor, CSensor
>::const_iterator 
begin () const
void clear ()
std::map< TSensor, CSensor
>::const_iterator 
end () const

Private Attributes

std::map< TSensor, CSensor_ConditionMap


Member Function Documentation

void NLAINIMAT::CConditionMap::addIfNotSensorCondition TSensor  sensorName,
TSensorValue  sensorValue
 

Used to add an if sensor != condition rule.

Definition at line 656 of file classifier.cpp.

References _ConditionMap, NLAINIMAT::CConditionMap::CSensor::NeedTarget, NLAINIMAT::Sensors_WITHTARGET, NLAINIMAT::CConditionMap::CSensor::SensorValue, NLAINIMAT::CConditionMap::CSensor::TruthValue, and NLAINIMAT::TSensorValue.

Referenced by NLAINIMAT::CMHiCSbase::loadClassifierFromFile().

00657 {
00658         CSensor albator;
00659         albator.SensorValue = sensorValue;
00660         albator.TruthValue = false;
00661         albator.NeedTarget = (sensorName > Sensors_WITHTARGET);
00662         
00663         _ConditionMap[sensorName] = albator;
00664 }

void NLAINIMAT::CConditionMap::addIfSensorCondition TSensor  sensorName,
TSensorValue  sensorValue
 

Used to add an if sensor == condition rule.

Definition at line 646 of file classifier.cpp.

References _ConditionMap, NLAINIMAT::CConditionMap::CSensor::NeedTarget, NLAINIMAT::Sensors_WITHTARGET, NLAINIMAT::CConditionMap::CSensor::SensorValue, NLAINIMAT::CConditionMap::CSensor::TruthValue, and NLAINIMAT::TSensorValue.

Referenced by NLAINIMAT::CMHiCSbase::loadClassifierFromFile().

00647 {
00648         CSensor albator;
00649         albator.SensorValue = sensorValue;
00650         albator.TruthValue = true;
00651         albator.NeedTarget = (sensorName > Sensors_WITHTARGET);
00652 
00653         _ConditionMap[sensorName] = albator;
00654 }

void NLAINIMAT::CConditionMap::addSensorCondition TSensor  sensorName,
TSensorValue  sensorValue,
bool  sensorIsTrue
 

Definition at line 666 of file classifier.cpp.

References _ConditionMap, NLAINIMAT::CConditionMap::CSensor::NeedTarget, NLAINIMAT::Sensors_WITHTARGET, NLAINIMAT::CConditionMap::CSensor::SensorValue, NLAINIMAT::CConditionMap::CSensor::TruthValue, and NLAINIMAT::TSensorValue.

Referenced by NLAINIMAT::CClassifierSystem::addClassifierSystem().

00667 {
00668         CSensor albator;
00669         albator.SensorValue = sensorValue;
00670         albator.TruthValue = sensorIsTrue;
00671         albator.NeedTarget = (sensorName > Sensors_WITHTARGET);
00672         
00673         _ConditionMap[sensorName] = albator;
00674 }

std::map<TSensor, CSensor >::const_iterator NLAINIMAT::CConditionMap::begin void   )  const [inline]
 

Definition at line 150 of file classifier.h.

References _ConditionMap.

Referenced by NLAINIMAT::CClassifierSystem::addClassifier().

00150 {return _ConditionMap.begin();}

void NLAINIMAT::CConditionMap::clear void   )  [inline]
 

Definition at line 152 of file classifier.h.

References _ConditionMap.

Referenced by NLAINIMAT::CMHiCSbase::loadClassifierFromFile().

00152 {_ConditionMap.clear();}

std::map<TSensor, CSensor >::const_iterator NLAINIMAT::CConditionMap::end void   )  const [inline]
 

Definition at line 151 of file classifier.h.

References _ConditionMap.

Referenced by NLAINIMAT::CClassifierSystem::addClassifier().

00151 {return _ConditionMap.end();}


Field Documentation

std::map<TSensor, CSensor > NLAINIMAT::CConditionMap::_ConditionMap [private]
 

Definition at line 155 of file classifier.h.

Referenced by addIfNotSensorCondition(), addIfSensorCondition(), addSensorCondition(), begin(), clear(), and end().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 11:09:55 2004 for NeL by doxygen 1.3.6