perkun  0.0.9
ExperimentalAIlanguage
Public Member Functions | Private Member Functions | Private Attributes | List of all members
perkun::collection_of_visible_states Class Reference

#include <perkun.h>

Public Member Functions

 collection_of_visible_states (collection_of_variables &v, collection_of_values &w, collection_of_actions &a)
 
void populate ()
 
const visible_stateget (const std::map< variable *, value * > &m) const
 
visible_stateget (const std::map< variable *, value * > &m)
 
float get_payoff (const visible_state *s)
 
void set_payoff (const visible_state *s, float p)
 
void set_payoff (const std::map< variable *, value * > &m, float p)
 
void report (std::ostream &s) const
 
void report_xml (std::ostream &s) const
 
const std::list< visible_state * > & get_list_of_visible_states () const
 
std::list< visible_state * > & get_list_of_visible_states ()
 
void make_random_model ()
 
void make_random_payoff ()
 
int get_amount_of_states () const
 
void test_model () const
 

Private Member Functions

bool get_allowed (const std::map< variable *, std::vector< value * >::const_iterator > &m) const
 

Private Attributes

collection_of_variablesmy_variables
 
collection_of_valuesmy_values
 
collection_of_actionsmy_actions
 
std::list< visible_state * > list_of_visible_states
 
std::map< const visible_state *, float > map_visible_state_to_payoff_value
 

Detailed Description

A collection of visible states. It contains a list of visible states and the payoff function mapping visible states to float.


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