Public Member Functions | Public Attributes | Friends
Rule Class Reference

#include <rules.h>

Inheritance diagram for Rule:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void add_execution (PredicateList outcome_predicates)=0
virtual void add_old_execution (PredicateList outcome_predicates)=0
void add_outcome (PredicateList predicates, float init_probability)
void add_outcome (Outcome outcome)
bool has_enough_experiences ()
virtual bool needs_learning ()=0
virtual bool needs_pasula_learning ()=0
 Rule (const Rule &rule)
 Rule (Symbol symbol, PredicateList preconditions, uint m)
void sanitize_probabities ()
bool satisfiesPreconditions (PredicateList predicates)
virtual void update_probabilities ()=0

Public Attributes

uint m_
OutcomeList outcomes_
PredicateGroup preconditions_
uint total_executions_

Friends

std::ostream & operator<< (std::ostream &out, const Rule &r)

Detailed Description

Definition at line 11 of file rules.h.


Constructor & Destructor Documentation

Rule::Rule ( const Rule rule)

Rule

Definition at line 43 of file rules.cpp.

Rule::Rule ( Symbol  symbol,
PredicateList  preconditions,
uint  m 
)

Definition at line 55 of file rules.cpp.


Member Function Documentation

virtual void Rule::add_execution ( PredicateList  outcome_predicates) [pure virtual]

Implemented in PasulaRule, and MRule.

virtual void Rule::add_old_execution ( PredicateList  outcome_predicates) [pure virtual]

Implemented in PasulaRule, and MRule.

void Rule::add_outcome ( PredicateList  predicates,
float  init_probability 
)

Definition at line 62 of file rules.cpp.

void Rule::add_outcome ( Outcome  outcome)

Definition at line 67 of file rules.cpp.

Definition at line 80 of file rules.cpp.

virtual bool Rule::needs_learning ( ) [pure virtual]

Implemented in PasulaRule, and MRule.

virtual bool Rule::needs_pasula_learning ( ) [pure virtual]

Implemented in PasulaRule, and MRule.

Definition at line 88 of file rules.cpp.

Definition at line 72 of file rules.cpp.

virtual void Rule::update_probabilities ( ) [pure virtual]

Implemented in PasulaRule, and MRule.


Friends And Related Function Documentation

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

OPERATORS

Definition at line 11 of file rules.cpp.


Member Data Documentation

uint Rule::m_

Definition at line 16 of file rules.h.

Definition at line 15 of file rules.h.

Definition at line 14 of file rules.h.

Definition at line 17 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