knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ConjunctiveBroadcaster.h>
Public Member Functions | |
ConjunctiveBroadcaster (bool ignoreInconsistentAnswers=true) | |
ConjunctiveBroadcaster (bool ignoreInconsistentAnswers=true) | |
Public Member Functions inherited from knowrob::TokenBroadcaster | |
TokenBroadcaster () | |
~TokenBroadcaster () override | |
void | addSubscriber (const std::shared_ptr< Channel > &subscriber) |
void | removeSubscriber (const std::shared_ptr< Channel > &subscriber) |
TokenBroadcaster () | |
~TokenBroadcaster () override | |
void | addSubscriber (const std::shared_ptr< Channel > &subscriber) |
void | removeSubscriber (const std::shared_ptr< Channel > &subscriber) |
Public Member Functions inherited from knowrob::TokenStream | |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
Protected Types | |
using | AnswerMap = std::map< uint32_t, std::map< size_t, AnswerPtr > > |
using | AnswerMap = std::map< uint32_t, std::map< size_t, AnswerPtr > > |
Protected Member Functions | |
void | push (Channel &channel, const TokenPtr &tok) override |
void | genCombinations (uint32_t pushedChannelID, AnswerMap::iterator it, AnswerPtr &combinedResult) |
void | push (Channel &channel, const TokenPtr &tok) override |
void | genCombinations (uint32_t pushedChannelID, AnswerMap::iterator it, AnswerPtr &combinedResult) |
Protected Member Functions inherited from knowrob::TokenBroadcaster | |
void | push (const TokenPtr &tok) override |
virtual void | pushToBroadcast (const TokenPtr &tok) |
void | push (const TokenPtr &tok) override |
virtual void | pushToBroadcast (const TokenPtr &tok) |
Protected Attributes | |
AnswerMap | buffer_ |
std::mutex | buffer_mutex_ |
bool | ignoreInconsistentAnswers_ |
bool | hasSolution_ |
std::vector< AnswerNoPtr > | negativeAnswers_ |
Protected Attributes inherited from knowrob::TokenBroadcaster | |
std::list< std::shared_ptr< Channel > > | subscribers_ |
std::mutex | mtx_ |
Protected Attributes inherited from knowrob::TokenStream | |
std::list< std::shared_ptr< Channel > > | channels_ |
std::atomic< bool > | isOpened_ |
std::mutex | channel_mutex_ |
Consolidates answers from multiple sources that are considered in conjunction. This is intended to be used for parallel evaluation of independent sub-goals within a query.
Definition at line 19 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 26 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 26 of file ConjunctiveBroadcaster.h.
|
explicit |
Definition at line 15 of file ConjunctiveBroadcaster.cpp.
|
explicit |
|
protected |
Definition at line 65 of file ConjunctiveBroadcaster.cpp.
|
protected |
|
overrideprotectedvirtual |
Reimplemented from knowrob::TokenStream.
Definition at line 20 of file ConjunctiveBroadcaster.cpp.
|
overrideprotectedvirtual |
Reimplemented from knowrob::TokenStream.
|
protected |
Definition at line 28 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 29 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 31 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 30 of file ConjunctiveBroadcaster.h.
|
protected |
Definition at line 32 of file ConjunctiveBroadcaster.h.