knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Reasoner.h>
Public Member Functions | |
Reasoner () | |
virtual | ~Reasoner ()=default |
auto & | reasonerName () const |
auto | reasonerLanguage () const |
auto | storage () const |
template<class T > | |
std::shared_ptr< T > | getTypedStorage () const |
ReasonerManager & | reasonerManager () const |
void | pushWork (const std::function< void(void)> &fn) |
void | setStorage (const StoragePtr &storage) |
virtual bool | initializeReasoner (const PropertyTree &ptree)=0 |
virtual void | unload () |
Reasoner () | |
virtual | ~Reasoner ()=default |
auto & | reasonerName () const |
auto | reasonerLanguage () const |
auto | storage () const |
template<class T > | |
std::shared_ptr< T > | getTypedStorage () const |
ReasonerManager & | reasonerManager () const |
void | pushWork (const std::function< void(void)> &fn) |
void | setStorage (const StoragePtr &storage) |
virtual bool | initializeReasoner (const PropertyTree &ptree)=0 |
virtual void | unload () |
Public Member Functions inherited from knowrob::DataSourceHandler | |
DataSourceHandler ()=default | |
virtual | ~DataSourceHandler ()=default |
void | addDataHandler (const std::string &format, const DataSourceLoader &fn) |
bool | loadDataSource (const DataSourcePtr &dataSource) |
bool | hasDataHandler (const DataSourcePtr &dataSource) const |
DataSourceHandler ()=default | |
virtual | ~DataSourceHandler ()=default |
void | addDataHandler (const std::string &format, const DataSourceLoader &fn) |
bool | loadDataSource (const DataSourcePtr &dataSource) |
bool | hasDataHandler (const DataSourcePtr &dataSource) const |
Friends | |
class | ReasonerManager |
Additional Inherited Members | |
Protected Member Functions inherited from knowrob::DataSourceHandler | |
virtual bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &) |
virtual bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &) |
Protected Attributes inherited from knowrob::DataSourceHandler | |
std::map< std::string, DataSourceLoader > | dataSourceHandler_ |
A reasoner is a component that can infer new knowledge. The inference process may refer to extensional data which is stored in a DataBackend. Note that a reasoner is also a data source handler, i.e. data which is needed by the reasoner to operate which is not stored in a backend.
Definition at line 28 of file Reasoner.h.
Reasoner::Reasoner | ( | ) |
Definition at line 16 of file Reasoner.cpp.
|
virtualdefault |
knowrob::Reasoner::Reasoner | ( | ) |
|
virtualdefault |
|
inline |
Definition at line 52 of file Reasoner.h.
|
inline |
Definition at line 52 of file Reasoner.h.
|
pure virtual |
Initialize a reasoner by configuring it with a property tree.
ptree | a PropertyTree object. |
Implemented in knowrob::PrologReasoner, knowrob::MongologReasoner, knowrob::PrologReasoner, and knowrob::MongologReasoner.
|
pure virtual |
Initialize a reasoner by configuring it with a property tree.
ptree | a PropertyTree object. |
Implemented in knowrob::PrologReasoner, knowrob::MongologReasoner, knowrob::PrologReasoner, and knowrob::MongologReasoner.
void Reasoner::pushWork | ( | const std::function< void(void)> & | fn | ) |
Evaluate a lambda function in a worker thread.
fn | a function to be executed. |
Definition at line 44 of file Reasoner.cpp.
void knowrob::Reasoner::pushWork | ( | const std::function< void(void)> & | fn | ) |
Evaluate a lambda function in a worker thread.
fn | a function to be executed. |
|
inline |
Definition at line 42 of file Reasoner.h.
|
inline |
Definition at line 42 of file Reasoner.h.
ReasonerManager & Reasoner::reasonerManager | ( | ) | const |
Definition at line 24 of file Reasoner.cpp.
ReasonerManager& knowrob::Reasoner::reasonerManager | ( | ) | const |
|
inline |
Definition at line 37 of file Reasoner.h.
|
inline |
Definition at line 37 of file Reasoner.h.
|
inline |
Assign a storage to the reasoner.
storage | the storage to assign. |
Definition at line 73 of file Reasoner.h.
|
inline |
Assign a storage to the reasoner.
storage | the storage to assign. |
Definition at line 73 of file Reasoner.h.
|
inline |
Definition at line 47 of file Reasoner.h.
|
inline |
Definition at line 47 of file Reasoner.h.
|
inlinevirtual |
Unload the reasoner, meaning that all static resources associated to this reasoner are released.
Reimplemented in knowrob::SWRLReasoner, knowrob::PrologReasoner, knowrob::MongologReasoner, knowrob::SWRLReasoner, knowrob::PrologReasoner, and knowrob::MongologReasoner.
Definition at line 85 of file Reasoner.h.
|
inlinevirtual |
Unload the reasoner, meaning that all static resources associated to this reasoner are released.
Reimplemented in knowrob::SWRLReasoner, knowrob::PrologReasoner, knowrob::MongologReasoner, knowrob::SWRLReasoner, knowrob::PrologReasoner, and knowrob::MongologReasoner.
Definition at line 85 of file Reasoner.h.
|
friend |
Definition at line 99 of file Reasoner.h.