From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a02158.html | 534 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 534 insertions(+) create mode 100644 docs/doxygen/nel/a02158.html (limited to 'docs/doxygen/nel/a02158.html') diff --git a/docs/doxygen/nel/a02158.html b/docs/doxygen/nel/a02158.html new file mode 100644 index 00000000..0f60a5e5 --- /dev/null +++ b/docs/doxygen/nel/a02158.html @@ -0,0 +1,534 @@ + + +NeL: NLAINIMAT::CActionClassifiers class Reference + + + +
+

NLAINIMAT::CActionClassifiers Class Reference

#include <classifier.h> +

+


Detailed Description

+An action for a Classifier System. Used to describes all the rules (classifiers) wich will have this action in the condition part.
Author:
Gabriel ROBERT

+Nevrax France

+
Date:
2002
+ +

+ +

+Definition at line 275 of file classifier.h. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

void addMotivationRule (TMotivation motivationName, const CConditionMap &conditionsMap, CClassifierPriority priority)
 Ajout d'une nouvelle règle motivant cette action dans une motivation.

void addVirtualActionRule (TAction virtualActionName, const CConditionMap &conditionsMap, CClassifierPriority priority)
 Ajout d'une nouvelle règle motivant cette action dans une action virtuel.

 CActionClassifiers (TAction name)
 CActionClassifiers ()
const std::map< TMotivation,
+ CClassifierSystem > * 
getClassifiersByMotivationMap () const
const std::map< TAction, CClassifierSystem > * getClassifiersByVirtualActionMap () const
void getDebugString (std::string &t) const
 Chaine de debug.

TAction getName () const
 Return the action name.

virtual ~CActionClassifiers ()

Private Attributes

std::map< TMotivation, CClassifierSystem_ClassifiersByMotivation
std::map< TAction, CClassifierSystem_ClassifiersByVirtualAction
TAction _Name
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLAINIMAT::CActionClassifiers::CActionClassifiers  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 679 of file classifier.cpp. +

+References NLAINIMAT::Action_Unknown. +

+

00680 {
+00681         _Name = Action_Unknown;
+00682 }
+
+

+ + + + +
+ + + + + + + + + + +
NLAINIMAT::CActionClassifiers::CActionClassifiers TAction  name  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 684 of file classifier.cpp. +

+

00685 {
+00686         _Name = name;
+00687 }
+
+

+ + + + +
+ + + + + + + + + +
NLAINIMAT::CActionClassifiers::~CActionClassifiers  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 689 of file classifier.cpp. +

+

00690 {
+00691 }
+
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLAINIMAT::CActionClassifiers::addMotivationRule TMotivation  motivationName,
const CConditionMap conditionsMap,
CClassifierPriority  priority
+
+ + + + + +
+   + + +

+Ajout d'une nouvelle règle motivant cette action dans une motivation. +

+ +

+Definition at line 699 of file classifier.cpp. +

+References _ClassifiersByMotivation, and NLAINIMAT::CClassifierSystem::addClassifier(). +

+

00700 {
+00701         CClassifierSystem* pCS;
+00702 
+00703         pCS = &(_ClassifiersByMotivation[motivationName]);
+00704         pCS->addClassifier(conditionsMap, priority, _Name);
+00705 }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLAINIMAT::CActionClassifiers::addVirtualActionRule TAction  virtualActionName,
const CConditionMap conditionsMap,
CClassifierPriority  priority
+
+ + + + + +
+   + + +

+Ajout d'une nouvelle règle motivant cette action dans une action virtuel. +

+ +

+Definition at line 707 of file classifier.cpp. +

+References _ClassifiersByVirtualAction, and NLAINIMAT::CClassifierSystem::addClassifier(). +

+

00708 {
+00709         CClassifierSystem* pCS;
+00710 
+00711         pCS = &(_ClassifiersByVirtualAction[virtualActionName]);
+00712         pCS->addClassifier(conditionsMap, priority, _Name);
+00713 }
+
+

+ + + + +
+ + + + + + + + + +
const std::map< TMotivation, CClassifierSystem > * NLAINIMAT::CActionClassifiers::getClassifiersByMotivationMap  )  const
+
+ + + + + +
+   + + +

+ +

+Definition at line 715 of file classifier.cpp. +

+References _ClassifiersByMotivation. +

+Referenced by NLAINIMAT::CMHiCSbase::addVirtualActionCS(). +

+

00716 {
+00717         return &_ClassifiersByMotivation;
+00718 }
+
+

+ + + + +
+ + + + + + + + + +
const std::map< TAction, CClassifierSystem > * NLAINIMAT::CActionClassifiers::getClassifiersByVirtualActionMap  )  const
+
+ + + + + +
+   + + +

+ +

+Definition at line 719 of file classifier.cpp. +

+References _ClassifiersByVirtualAction. +

+Referenced by NLAINIMAT::CMHiCSbase::addVirtualActionCS(). +

+

00720 {
+00721         return &_ClassifiersByVirtualAction;
+00722 }
+
+

+ + + + +
+ + + + + + + + + + +
void NLAINIMAT::CActionClassifiers::getDebugString std::string &  t  )  const
+
+ + + + + +
+   + + +

+Chaine de debug. +

+ +

+Definition at line 725 of file classifier.cpp. +

+References _ClassifiersByMotivation, _ClassifiersByVirtualAction, and t. +

+

00726 {
+00727         std::string ret = "\nACTION :\t" + conversionAction.toString(_Name) + "\n";
+00728         std::map<TMotivation, CClassifierSystem>::const_iterator ItClassifiersByMotivation;
+00729         for (ItClassifiersByMotivation = _ClassifiersByMotivation.begin(); ItClassifiersByMotivation != _ClassifiersByMotivation.end(); ItClassifiersByMotivation++)
+00730         {
+00731                 ret += "\nMotivation : " + conversionMotivation.toString((*ItClassifiersByMotivation).first) + "\n";
+00732                 (*ItClassifiersByMotivation).second.getDebugString(ret);
+00733         }
+00734         std::map<TAction, CClassifierSystem>::const_iterator ItClassifiersByVirtualAction;
+00735         for (ItClassifiersByVirtualAction = _ClassifiersByVirtualAction.begin(); ItClassifiersByVirtualAction != _ClassifiersByVirtualAction.end(); ItClassifiersByVirtualAction++)
+00736         {
+00737                 ret += "\nMotivation : " + conversionAction.toString((*ItClassifiersByVirtualAction).first) + "\n";
+00738                 (*ItClassifiersByVirtualAction).second.getDebugString(ret);
+00739         }
+00740         t+=ret;
+00741 }
+
+

+ + + + +
+ + + + + + + + + +
TAction NLAINIMAT::CActionClassifiers::getName  )  const
+
+ + + + + +
+   + + +

+Return the action name. +

+ +

+Definition at line 694 of file classifier.cpp. +

+References NLAINIMAT::TAction. +

+Referenced by NLAINIMAT::CMHiCSbase::addActionCS(). +

+

00695 {
+00696         return _Name;
+00697 }
+
+


Field Documentation

+

+ + + + +
+ + +
std::map<TMotivation, CClassifierSystem> NLAINIMAT::CActionClassifiers::_ClassifiersByMotivation [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 298 of file classifier.h. +

+Referenced by addMotivationRule(), getClassifiersByMotivationMap(), and getDebugString().

+

+ + + + +
+ + +
std::map<TAction, CClassifierSystem> NLAINIMAT::CActionClassifiers::_ClassifiersByVirtualAction [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 299 of file classifier.h. +

+Referenced by addVirtualActionRule(), getClassifiersByVirtualActionMap(), and getDebugString().

+

+ + + + +
+ + +
TAction NLAINIMAT::CActionClassifiers::_Name [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 300 of file classifier.h.

+


The documentation for this class was generated from the following files: +
Generated on Tue Mar 16 11:09:23 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1