6 #include "knowrob/queries/AnswerNo.h"
7 #include "knowrob/knowrob.h"
8 #include "knowrob/integration/python/utils.h"
11 const std::shared_ptr<const AnswerNo> &
GenericNo() {
12 static const auto instance = std::make_shared<const AnswerNo>();
63 os <<
'\t' << *x.graphSelector() <<
' ' <<
'~' << *x.predicate();
65 os <<
' ' <<
'[' << *x.reasonerTerm() <<
"]";
70 os <<
'\t' << *x.graphSelector() << *x.predicate();
72 os <<
' ' <<
'[' << *x.reasonerTerm() <<
"]";
83 static const std::string longMsg =
"there was evidence supporting the query to be false";
89 auto mergedAnswer = std::make_shared<AnswerNo>(*a);
90 if (mergedAnswer->mergeWith(*b)) {
103 class_<AnswerNo, std::shared_ptr<AnswerNo>, bases<Answer>>
104 (
"AnswerNo", init<>())
110 register_ptr_to_python<std::shared_ptr<const AnswerNo> >();
111 implicitly_convertible<std::shared_ptr<AnswerNo>, std::shared_ptr<const AnswerNo> >();
void setIsNegative(bool val)
std::shared_ptr< GraphSelector > frame_
std::vector< FramedPredicate > positiveUngrounded_
void addUngrounded(const std::shared_ptr< Predicate > &predicate, bool isNegated=false)
std::vector< FramedPredicate > negativeUngrounded_
std::string stringFormOfNo() const
bool mergeWith(const AnswerNo &other)
std::string humanReadableFormOfNo() const
auto & positiveUngrounded() const
auto & negativeUngrounded() const
void createType< AnswerNo >()
GraphSelectorPtr DefaultGraphSelector()
AnswerPtr mergeNegativeAnswers(const AnswerNoPtr &a, const AnswerNoPtr &b)
std::shared_ptr< const Answer > AnswerPtr
const std::shared_ptr< const AnswerNo > & GenericNo()
std::shared_ptr< const AnswerNo > AnswerNoPtr