knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <DisjunctiveBroadcaster.h>
Public Member Functions | |
DisjunctiveBroadcaster () | |
DisjunctiveBroadcaster () | |
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 Member Functions | |
void | push (const TokenPtr &msg) override |
void | pushAnswer (const AnswerPtr &answer) |
void | pushDeferredMessages () |
void | push (const TokenPtr &msg) override |
void | pushAnswer (const AnswerPtr &answer) |
void | pushDeferredMessages () |
Protected Member Functions inherited from knowrob::TokenBroadcaster | |
virtual void | pushToBroadcast (const TokenPtr &tok) |
void | push (const TokenPtr &tok) override |
virtual void | pushToBroadcast (const TokenPtr &tok) |
Protected Member Functions inherited from knowrob::TokenStream | |
virtual void | push (Channel &channel, const TokenPtr &tok) |
virtual void | push (Channel &channel, const TokenPtr &tok) |
Protected Attributes | |
std::vector< AnswerNoPtr > | negativeAnswers_ |
std::vector< AnswerYesPtr > | deferredPositiveAnswers_ |
bool | isCertainlyPositive_ |
std::mutex | db_mutex_ |
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 disjunction.
Definition at line 18 of file DisjunctiveBroadcaster.h.
DisjunctiveBroadcaster::DisjunctiveBroadcaster | ( | ) |
Definition at line 10 of file DisjunctiveBroadcaster.cpp.
knowrob::DisjunctiveBroadcaster::DisjunctiveBroadcaster | ( | ) |
|
overrideprotectedvirtual |
Implements knowrob::TokenStream.
Definition at line 83 of file DisjunctiveBroadcaster.cpp.
|
overrideprotectedvirtual |
Reimplemented from knowrob::TokenBroadcaster.
|
protected |
Definition at line 44 of file DisjunctiveBroadcaster.cpp.
|
protected |
|
protected |
Definition at line 15 of file DisjunctiveBroadcaster.cpp.
|
protected |
|
protected |
Definition at line 26 of file DisjunctiveBroadcaster.h.
|
protected |
Definition at line 24 of file DisjunctiveBroadcaster.h.
|
protected |
Definition at line 25 of file DisjunctiveBroadcaster.h.
|
protected |
Definition at line 23 of file DisjunctiveBroadcaster.h.