perkun
0.0.9
ExperimentalAIlanguage
|
#include <perkun.h>
Public Member Functions | |
visible_state (collection_of_variables &v, collection_of_values &w, collection_of_actions &a, collection_of_visible_states &q) | |
void | insert (variable *v, value *w) |
void | populate () |
void | report (std::ostream &s) const |
void | report_xml (std::ostream &s, bool with_states=true) const |
bool | get_match (const std::map< variable *, value * > &m) const |
state * | get (const std::map< variable *, value * > &m) |
const state * | get (const std::map< variable *, value * > &m) const |
const value * | get_input_variable_value (variable *v) const |
const std::list< state * > & | get_list_of_states () const |
std::list< state * > & | get_list_of_states () |
float | get_payoff () const |
const collection_of_visible_states & | get_visible_states () const |
collection_of_visible_states & | get_visible_states () |
void | make_random_model () |
int | get_amount_of_states () const |
int | get_model_size () const |
void | test_model () const |
int | get_amount_of_possible_states () const |
void | set_illegal (action *a) |
bool | get_is_illegal (action *a) const |
Private Member Functions | |
bool | get_allowed (const std::map< variable *, std::vector< value * >::const_iterator > &m) const |
Private Attributes | |
collection_of_variables & | my_variables |
collection_of_values & | my_values |
collection_of_actions & | my_actions |
collection_of_visible_states & | my_visible_states |
std::list< state * > | list_of_states |
std::map< variable *, value * > | map_input_variable_to_value |
std::list< action * > | list_of_illegal_actions |
A visible state represents a map from input variable to values and is at the same time a collection of states.
|
private |
Some actions can be defined as illegal for a visible state. Then the optimizer::get_optimal_action will not choose them.