#include <rules.h>
Public Member Functions | |
std::vector< std::string > | actions_needing_pasula_learning () |
void | add (RuleList rules) |
void | add_execution (Transition transition, bool is_new=true) |
RuleList | extract_pasula_not_learned_rules () |
bool | needs_learning (std::string name, std::string preconditions) |
bool | needs_learning (std::string name, PredicateList preconditions) |
void | read_rules_from_file (std::string file_path) |
void | remove_action_rules (std::string action) |
RuleSet () | |
RuleSet (uint m) | |
RuleSet (uint m, RuleList rules) | |
RuleSet (std::string file_path, uint m) | |
void | sanitize_probabities () |
void | set_learning_m (uint m) |
void | transform_rules_to_pasula () |
void | update_probabilities () |
void | write_debugging_rules_to_file (std::string file_path) |
void | write_rules_to_file (std::string file_path) |
Public Attributes | |
uint | m_ |
RuleList | rules_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const RuleSet &r) |
RuleSet::RuleSet | ( | ) |
RuleSet::RuleSet | ( | uint | m | ) |
RuleSet::RuleSet | ( | uint | m, |
RuleList | rules | ||
) |
RuleSet::RuleSet | ( | std::string | file_path, |
uint | m | ||
) |
std::vector< std::string > RuleSet::actions_needing_pasula_learning | ( | ) |
void RuleSet::add | ( | RuleList | rules | ) |
void RuleSet::add_execution | ( | Transition | transition, |
bool | is_new = true |
||
) |
bool RuleSet::needs_learning | ( | std::string | name, |
std::string | preconditions | ||
) |
bool RuleSet::needs_learning | ( | std::string | name, |
PredicateList | preconditions | ||
) |
void RuleSet::read_rules_from_file | ( | std::string | file_path | ) |
void RuleSet::remove_action_rules | ( | std::string | action | ) |
void RuleSet::sanitize_probabities | ( | ) |
void RuleSet::set_learning_m | ( | uint | m | ) |
void RuleSet::transform_rules_to_pasula | ( | ) |
void RuleSet::update_probabilities | ( | ) |
void RuleSet::write_debugging_rules_to_file | ( | std::string | file_path | ) |
void RuleSet::write_rules_to_file | ( | std::string | file_path | ) |
std::ostream& operator<< | ( | std::ostream & | out, |
const RuleSet & | r | ||
) | [friend] |
uint RuleSet::m_ |