Public Member Functions | Public Attributes | Friends
RuleSet Class Reference

#include <rules.h>

List of all members.

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)

Detailed Description

Definition at line 154 of file rules.h.


Constructor & Destructor Documentation

RuleSet

Definition at line 105 of file rules.cpp.

RuleSet::RuleSet ( uint  m)

Definition at line 109 of file rules.cpp.

RuleSet::RuleSet ( uint  m,
RuleList  rules 
)

Definition at line 113 of file rules.cpp.

RuleSet::RuleSet ( std::string  file_path,
uint  m 
)

Definition at line 119 of file rules.cpp.


Member Function Documentation

Definition at line 268 of file rules.cpp.

void RuleSet::add ( RuleList  rules)

Definition at line 298 of file rules.cpp.

void RuleSet::add_execution ( Transition  transition,
bool  is_new = true 
)

Definition at line 233 of file rules.cpp.

Definition at line 279 of file rules.cpp.

bool RuleSet::needs_learning ( std::string  name,
std::string  preconditions 
)

Definition at line 356 of file rules.cpp.

bool RuleSet::needs_learning ( std::string  name,
PredicateList  preconditions 
)

Definition at line 318 of file rules.cpp.

void RuleSet::read_rules_from_file ( std::string  file_path)

Definition at line 125 of file rules.cpp.

void RuleSet::remove_action_rules ( std::string  action)

Definition at line 306 of file rules.cpp.

Definition at line 224 of file rules.cpp.

void RuleSet::set_learning_m ( uint  m)

Definition at line 343 of file rules.cpp.

Definition at line 332 of file rules.cpp.

Definition at line 349 of file rules.cpp.

void RuleSet::write_debugging_rules_to_file ( std::string  file_path)

Definition at line 203 of file rules.cpp.

void RuleSet::write_rules_to_file ( std::string  file_path)

Definition at line 190 of file rules.cpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const RuleSet r 
) [friend]

Definition at line 28 of file rules.cpp.


Member Data Documentation

Definition at line 158 of file rules.h.

Definition at line 157 of file rules.h.


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


iri_rule_learner
Author(s): dmartinez
autogenerated on Fri Dec 6 2013 20:43:48