#include <classifier.h>
Nevrax France
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 |
|
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 } |
|
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 } |
|
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 } |
|
Definition at line 150 of file classifier.h. References _ConditionMap. Referenced by NLAINIMAT::CClassifierSystem::addClassifier().
00150 {return _ConditionMap.begin();} |
|
Definition at line 152 of file classifier.h. References _ConditionMap. Referenced by NLAINIMAT::CMHiCSbase::loadClassifierFromFile().
00152 {_ConditionMap.clear();} |
|
Definition at line 151 of file classifier.h. References _ConditionMap. Referenced by NLAINIMAT::CClassifierSystem::addClassifier().
00151 {return _ConditionMap.end();} |
|
Definition at line 155 of file classifier.h. Referenced by addIfNotSensorCondition(), addIfSensorCondition(), addSensorCondition(), begin(), clear(), and end(). |