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

#include <perkun.h>

Public Member Functions

 state (collection_of_variables &v, collection_of_values &w, visible_state &vs, collection_of_actions &a)
 
const valueget_hidden_variable_value (variable *v) const
 
void insert (variable *v, value *w)
 
void report (std::ostream &s) const
 
void report_xml (std::ostream &s, bool with_model=true) const
 
bool get_match (const std::map< variable *, value * > &m) const
 
void set_model (action *a, std::map< state *, float > &m)
 
const visible_stateget_visible_state () const
 
const std::map< const action *, std::map< state *, float > > & get_map_action_to_probability_distribution () const
 
std::map< const action *, std::map< state *, float > > & get_map_action_to_probability_distribution ()
 
void make_random_model ()
 
int get_model_size () const
 
void test_model () const
 
void set_impossible ()
 
bool get_possible () const
 

Private Attributes

collection_of_variablesmy_variables
 
collection_of_valuesmy_values
 
visible_statemy_visible_state
 
collection_of_actionsmy_actions
 
std::map< variable *, value * > map_hidden_variable_to_value
 
std::map< const action *, std::map< state *, float > > map_action_to_probability_distribution
 
bool impossible
 

Detailed Description

A state is an item within a visible state. A state contains a map from a (hidden) variable to a value. It also contains a piece of model - a map from action to the probability distribution mapping states to float numbers.

Member Function Documentation

void state::test_model ( ) const

Print warnings to std::cerr on invalid models.


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