Soar Kernel  9.3.2 08-06-12
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes
rl_learning_param Class Reference

#include <reinforcement_learning.h>

Inherits soar_module::boolean_param.

Public Member Functions

 rl_learning_param (const char *new_name, soar_module::boolean new_value, soar_module::predicate< soar_module::boolean > *new_prot_pred, agent *new_agent)
void set_value (soar_module::boolean new_value)
- Public Member Functions inherited from soar_module::boolean_param
 boolean_param (const char *new_name, boolean new_value, predicate< boolean > *new_prot_pred)
- Public Member Functions inherited from soar_module::constant_param< boolean >
virtual void add_mapping (booleanval, const char *str)
 constant_param (const char *new_name, booleannew_value, predicate< boolean > *new_prot_pred)
virtual char * get_string ()
virtual boolean get_value ()
virtual bool set_string (const char *new_string)
virtual bool validate_string (const char *new_string)
virtual ~constant_param ()
- Public Member Functions inherited from soar_module::param
 param (const char *new_name)
virtual ~param ()
- Public Member Functions inherited from soar_module::named_object
const char * get_name ()
 named_object (const char *new_name)
virtual ~named_object ()

Protected Attributes

agentmy_agent

Detailed Description

Definition at line 114 of file reinforcement_learning.h.

Constructor & Destructor Documentation

rl_learning_param::rl_learning_param ( const char *  new_name,
soar_module::boolean  new_value,
soar_module::predicate< soar_module::boolean > *  new_prot_pred,
agent new_agent 
)

Definition at line 142 of file reinforcement_learning.cpp.

: soar_module::boolean_param( new_name, new_value, new_prot_pred ), my_agent( new_agent ) {}

Member Function Documentation

void rl_learning_param::set_value ( soar_module::boolean  new_value)
virtual

Reimplemented from soar_module::constant_param< boolean >.

Definition at line 144 of file reinforcement_learning.cpp.

References my_agent, soar_module::off, rl_reset_data(), and soar_module::constant_param< boolean >::value.

{
if ( new_value != value )
{
if ( new_value == soar_module::off )
{
}
value = new_value;
}
}

Field Documentation

agent* rl_learning_param::my_agent
protected

Definition at line 117 of file reinforcement_learning.h.

Referenced by set_value().


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