NLAINIMAT::CClassifierSystem::CClassifier Class Reference


Public Member Functions

 CClassifier ()
bool isActivable () const
virtual ~CClassifier ()

Data Fields

TAction Behavior
std::list< CClassifierConditionCell * > ConditionWithoutTarget
std::list< CClassifierConditionCell * > ConditionWithTarget
CClassifierPriority Priority

Constructor & Destructor Documentation

NLAINIMAT::CClassifierSystem::CClassifier::CClassifier  ) 
 

Definition at line 553 of file classifier.cpp.

00554 {
00555 }

NLAINIMAT::CClassifierSystem::CClassifier::~CClassifier  )  [virtual]
 

Definition at line 557 of file classifier.cpp.

References ConditionWithoutTarget, and ConditionWithTarget.

00558 {
00559         std::list<CClassifierConditionCell*>::iterator itConditions = ConditionWithTarget.begin();
00560         while (itConditions != ConditionWithTarget.end())
00561         {
00562                 delete (*itConditions );
00563                 itConditions++;
00564         }
00565         itConditions = ConditionWithoutTarget.begin();
00566         while (itConditions != ConditionWithoutTarget.end())
00567         {
00568                 delete (*itConditions );
00569                 itConditions++;
00570         }
00571 }


Member Function Documentation

bool NLAINIMAT::CClassifierSystem::CClassifier::isActivable  )  const
 

Definition at line 573 of file classifier.cpp.

References ConditionWithoutTarget, and ConditionWithTarget.

00574 {
00575         std::list<CClassifierConditionCell*>::const_iterator itConditions;
00576         
00577         // On parcour la liste de sensor indépendant d'une cible
00578         for (itConditions = ConditionWithoutTarget.begin(); itConditions != ConditionWithoutTarget.end(); itConditions++)
00579         {
00580                 if (! (*itConditions)->isActivable() )
00581                 {
00582                         return false;
00583                 }
00584         }
00585         // On parcour la liste de sensor dépendant d'une cible
00586         for (itConditions = ConditionWithTarget.begin(); itConditions != ConditionWithTarget.end(); itConditions++)
00587         {
00588                 if (! (*itConditions)->isActivable() )
00589                 {
00590                         return false;
00591                 }
00592         }
00593         return true;
00594 }


Field Documentation

TAction NLAINIMAT::CClassifierSystem::CClassifier::Behavior
 

Definition at line 197 of file classifier.h.

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

std::list<CClassifierConditionCell*> NLAINIMAT::CClassifierSystem::CClassifier::ConditionWithoutTarget
 

Definition at line 195 of file classifier.h.

Referenced by NLAINIMAT::CClassifierSystem::addClassifier(), isActivable(), and ~CClassifier().

std::list<CClassifierConditionCell*> NLAINIMAT::CClassifierSystem::CClassifier::ConditionWithTarget
 

Definition at line 194 of file classifier.h.

Referenced by NLAINIMAT::CClassifierSystem::addClassifier(), isActivable(), and ~CClassifier().

CClassifierPriority NLAINIMAT::CClassifierSystem::CClassifier::Priority
 

Definition at line 196 of file classifier.h.

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


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