#include <classifier.h>
Nevrax France
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 |
|
Definition at line 679 of file classifier.cpp. References NLAINIMAT::Action_Unknown.
00680 { 00681 _Name = Action_Unknown; 00682 } |
|
Definition at line 684 of file classifier.cpp.
00685 { 00686 _Name = name; 00687 } |
|
Definition at line 689 of file classifier.cpp.
00690 { 00691 } |
|
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 } |
|
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 } |
|
Definition at line 715 of file classifier.cpp. References _ClassifiersByMotivation. Referenced by NLAINIMAT::CMHiCSbase::addVirtualActionCS().
00716 { 00717 return &_ClassifiersByMotivation; 00718 } |
|
Definition at line 719 of file classifier.cpp. References _ClassifiersByVirtualAction. Referenced by NLAINIMAT::CMHiCSbase::addVirtualActionCS().
00720 { 00721 return &_ClassifiersByVirtualAction; 00722 } |
|
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 } |
|
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 } |
|
Definition at line 298 of file classifier.h. Referenced by addMotivationRule(), getClassifiersByMotivationMap(), and getDebugString(). |
|
Definition at line 299 of file classifier.h. Referenced by addVirtualActionRule(), getClassifiersByVirtualActionMap(), and getDebugString(). |
|
Definition at line 300 of file classifier.h. |