# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAINIMAT::CNetCS Class Reference

A net of a Classifier System. More...

#include <classifier.h>

List of all members.

Public Methods

 CNetCS ()
virtual ~CNetCS ()
void addActionCS (const CActionCS &action)
 Add a new action in the net. More...

void addVirtualActionCS (const CActionCS &action)
 Add a new virtual action in the net. More...

void setMotivationPP (std::string motivationName, sint16 PP)
 Donne la Puissance Propre d'une Motivation. More...

void setMotivationValue (std::string motivationName, sint16 value)
 Fixe la valeur d'une motivation. More...

std::string selectBehavior ()
 Return the Behavior that must be active. More...

void run ()
 Update the values in the NetCS. More...

void setSensors (const TSensorMap &sensorMap)
 Updtae the sensors value. More...

void getDebugString (std::string &t) const
 Chaine de debug. More...


Private Attributes

std::map< std::string, CMotivateCS_ClassifiersAndMotivationIntensity
TSensorMap _SensorsValues
std::map< std::string, CMotivationEnergy_ActionsExecutionIntensity


Detailed Description

A net of a Classifier System.

Author:
Gabriel ROBERT , Nevrax France
Date:
2002

Definition at line 196 of file classifier.h.


Constructor & Destructor Documentation

NLAINIMAT::CNetCS::CNetCS  
 

Definition at line 374 of file classifier.cpp.

NLAINIMAT::CNetCS::~CNetCS   [virtual]
 

Definition at line 378 of file classifier.cpp.


Member Function Documentation

void NLAINIMAT::CNetCS::addActionCS const CActionCS   action
 

Add a new action in the net.

Definition at line 397 of file classifier.cpp.

References _ActionsExecutionIntensity, and addVirtualActionCS.

void NLAINIMAT::CNetCS::addVirtualActionCS const CActionCS   action
 

Add a new virtual action in the net.

A virtual action is an action without operator wich is also a motivation. Exemple : Figthing is a virtual action. It may satisfy the anger motivation and is a motivation for guive a sword slash.

Definition at line 382 of file classifier.cpp.

References _ClassifiersAndMotivationIntensity.

Referenced by addActionCS.

void NLAINIMAT::CNetCS::getDebugString std::string &    t const
 

Chaine de debug.

Definition at line 406 of file classifier.cpp.

References _ActionsExecutionIntensity, _ClassifiersAndMotivationIntensity, and t.

void NLAINIMAT::CNetCS::run  
 

Update the values in the NetCS.

Definition at line 438 of file classifier.cpp.

References _ActionsExecutionIntensity, _ClassifiersAndMotivationIntensity, _SensorsValues, and nlassert.

std::string NLAINIMAT::CNetCS::selectBehavior  
 

Return the Behavior that must be active.

Definition at line 504 of file classifier.cpp.

References _ActionsExecutionIntensity, and value.

void NLAINIMAT::CNetCS::setMotivationPP std::string    motivationName,
sint16    PP
 

Donne la Puissance Propre d'une Motivation.

Definition at line 427 of file classifier.cpp.

References _ClassifiersAndMotivationIntensity.

void NLAINIMAT::CNetCS::setMotivationValue std::string    motivationName,
sint16    value
 

Fixe la valeur d'une motivation.

Definition at line 433 of file classifier.cpp.

References _ClassifiersAndMotivationIntensity, and value.

void NLAINIMAT::CNetCS::setSensors const TSensorMap   sensorMap
 

Updtae the sensors value.

Definition at line 498 of file classifier.cpp.

References _SensorsValues, and NLAINIMAT::TSensorMap.


Member Data Documentation

std::map<std::string, CMotivationEnergy> NLAINIMAT::CNetCS::_ActionsExecutionIntensity [private]
 

Definition at line 239 of file classifier.h.

Referenced by addActionCS, getDebugString, run, and selectBehavior.

std::map<std::string, CMotivateCS> NLAINIMAT::CNetCS::_ClassifiersAndMotivationIntensity [private]
 

Definition at line 236 of file classifier.h.

Referenced by addVirtualActionCS, getDebugString, run, setMotivationPP, and setMotivationValue.

TSensorMap NLAINIMAT::CNetCS::_SensorsValues [private]
 

Definition at line 238 of file classifier.h.

Referenced by run, and setSensors.


The documentation for this class was generated from the following files: