NLAINIMAT::CClassifierSystem::CClassifierConditionCell Class Reference


Public Member Functions

 CClassifierConditionCell (TSensorMap::const_iterator itSensor, TSensorValue value, bool sensorIsTrue)
bool getSensorIsTrue () const
TSensor getSensorName () const
TSensorValue getValue () const
bool isActivable () const

Private Attributes

std::map< TSensor, TSensorValue
>::const_iterator 
_itSensor
bool _SensorIsTrue
TSensorValue _Value

Constructor & Destructor Documentation

NLAINIMAT::CClassifierSystem::CClassifierConditionCell::CClassifierConditionCell TSensorMap::const_iterator  itSensor,
TSensorValue  value,
bool  sensorIsTrue
 

Definition at line 601 of file classifier.cpp.

References _itSensor, _SensorIsTrue, NLAINIMAT::TSensorValue, and value.

00603 {
00604         _itSensor = itSensor;
00605         _Value = value;
00606         _SensorIsTrue = sensorIsTrue;
00607 }


Member Function Documentation

bool NLAINIMAT::CClassifierSystem::CClassifierConditionCell::getSensorIsTrue  )  const
 

Definition at line 637 of file classifier.cpp.

References _SensorIsTrue.

Referenced by NLAINIMAT::CClassifierSystem::addClassifierSystem(), and NLAINIMAT::CClassifierSystem::getDebugString().

00638 {
00639         return _SensorIsTrue;
00640 }

TSensor NLAINIMAT::CClassifierSystem::CClassifierConditionCell::getSensorName  )  const
 

Definition at line 627 of file classifier.cpp.

References NLAINIMAT::TSensor.

Referenced by NLAINIMAT::CClassifierSystem::addClassifierSystem(), and NLAINIMAT::CClassifierSystem::getDebugString().

00628 {
00629         return (*_itSensor).first;
00630 }

TSensorValue NLAINIMAT::CClassifierSystem::CClassifierConditionCell::getValue  )  const
 

Definition at line 632 of file classifier.cpp.

References NLAINIMAT::TSensorValue.

Referenced by NLAINIMAT::CClassifierSystem::addClassifierSystem(), and NLAINIMAT::CClassifierSystem::getDebugString().

00633 {
00634         return _Value;
00635 }

bool NLAINIMAT::CClassifierSystem::CClassifierConditionCell::isActivable  )  const
 

Definition at line 609 of file classifier.cpp.

References _SensorIsTrue.

00610 {
00611         if (_SensorIsTrue)
00612         {
00613                 if ((*_itSensor).second == _Value)
00614                         return true;
00615                 else
00616                         return false;
00617         }
00618         else
00619         {
00620                 if ((*_itSensor).second == _Value)
00621                         return false;
00622                 else
00623                         return true;
00624         }
00625 }


Field Documentation

std::map<TSensor, TSensorValue>::const_iterator NLAINIMAT::CClassifierSystem::CClassifierConditionCell::_itSensor [private]
 

Definition at line 179 of file classifier.h.

Referenced by CClassifierConditionCell().

bool NLAINIMAT::CClassifierSystem::CClassifierConditionCell::_SensorIsTrue [private]
 

Definition at line 181 of file classifier.h.

Referenced by CClassifierConditionCell(), getSensorIsTrue(), and isActivable().

TSensorValue NLAINIMAT::CClassifierSystem::CClassifierConditionCell::_Value [private]
 

Definition at line 180 of file classifier.h.


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