OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <VarGroundingPMCB.h>
Public Member Functions | |
VarGroundingPMCB (AtomSpace *as) | |
virtual | ~VarGroundingPMCB () |
virtual bool | grounding (const std::map< Handle, Handle > &var_soln, const std::map< Handle, Handle > &term_soln) |
![]() | |
DefaultImplicator (AtomSpace *asp) | |
virtual void | set_pattern (const Variables &vars, const Pattern &pat) |
![]() | |
Implicator (AtomSpace *as) | |
virtual void | insert_result (const Handle &) |
virtual UnorderedHandleSet | get_result_set () |
virtual HandleSeq | get_result_list () |
![]() | |
virtual | ~PatternMatchCallback () |
virtual bool | fuzzy_match (const Handle &ph, const Handle &gh) |
virtual IncomingSet | get_incoming_set (const Handle &h) |
virtual void | push (void) |
virtual void | pop (void) |
![]() | |
InitiateSearchCB (AtomSpace *) | |
virtual bool | initiate_search (PatternMatchEngine *) |
![]() | |
DefaultPatternMatchCB (AtomSpace *) | |
virtual bool | node_match (const Handle &, const Handle &) |
virtual bool | variable_match (const Handle &, const Handle &) |
virtual bool | link_match (const LinkPtr &, const LinkPtr &) |
virtual bool | post_link_match (const LinkPtr &, const LinkPtr &) |
virtual bool | clause_match (const Handle &, const Handle &) |
virtual bool | optional_clause_match (const Handle &pattrn, const Handle &grnd) |
virtual bool | evaluate_sentence (const Handle &pat, const std::map< Handle, Handle > &gnds) |
virtual const std::set< Type > & | get_connectives (void) |
bool | optionals_present (void) |
Public Attributes | |
std::vector< std::map< Handle, Handle > > | var_groundings |
std::vector< std::map< Handle, Handle > > | term_groundings |
![]() | |
Instantiator | inst |
Handle | implicand |
size_t | max_results |
It just holds all var_grounding and term_grounding maps of the entire PM process.
Definition at line 35 of file VarGroundingPMCB.h.
|
inline |
Definition at line 37 of file VarGroundingPMCB.h.
|
inlinevirtual |
Definition at line 43 of file VarGroundingPMCB.h.
|
inlinevirtual |
This callback takes the reported grounding, runs it through the instantiator, to create the implicand, and then records the result in the public member result_set
. If the number of results so far is less than max_results
, it then returns false, to search for more groundings. (The engine will halt its search for a grounding once an acceptable one has been found; so, to continue hunting for more, we return false
here. We want to find all possible groundings.)
Reimplemented from opencog::Implicator.
Definition at line 45 of file VarGroundingPMCB.h.
References term_groundings, and var_groundings.
Definition at line 56 of file VarGroundingPMCB.h.
Definition at line 55 of file VarGroundingPMCB.h.