perkun
0.0.9
ExperimentalAIlanguage
|
#include <perkun.h>
Public Member Functions | |
state (collection_of_variables &v, collection_of_values &w, visible_state &vs, collection_of_actions &a) | |
const value * | get_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_state & | get_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_variables & | my_variables |
collection_of_values & | my_values |
visible_state & | my_visible_state |
collection_of_actions & | my_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 |
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.
void state::test_model | ( | ) | const |
Print warnings to std::cerr on invalid models.