6 #ifndef KNOWROB_POSITIVE_ANSWER_H
7 #define KNOWROB_POSITIVE_ANSWER_H
10 #include "knowrob/formulas/FirstOrderLiteral.h"
11 #include "knowrob/formulas/FramedPredicate.h"
18 class AnswerYes :
public Answer {
66 bool isNegated =
false,
113 const std::shared_ptr<const AnswerYes> &
GenericYes();
std::string humanReadableFormOfYes() const
std::vector< FramedPredicate > positiveGroundings_
auto & positiveGroundings() const
BindingsPtr substitution_
std::string stringFormOfYes() const
auto & negativeGroundings() const
bool mergeWith(const AnswerYes &other, bool ignoreInconsistencies=false)
std::vector< FramedPredicate > negativeGroundings_
bool isGenericYes() const
AnswerYes(BindingsPtr substitution)
auto & substitution() const
AnswerYes(const AnswerYes &other)
bool isRicherThan(const AnswerYes &other) const
bool hasGrounding(const Variable &var) const
bool addGrounding(const std::shared_ptr< Predicate > &predicate, bool isNegated=false, const GraphSelectorPtr &frame=DefaultGraphSelector())
GraphSelectorPtr DefaultGraphSelector()
std::shared_ptr< const Bindings > BindingsPtr
const std::shared_ptr< const AnswerYes > & GenericYes()
std::shared_ptr< const GraphSelector > GraphSelectorPtr
AnswerPtr mergePositiveAnswers(const AnswerYesPtr &a, const AnswerYesPtr &b, bool ignoreInconsistencies)
std::shared_ptr< const Answer > AnswerPtr
std::shared_ptr< const AnswerYes > AnswerYesPtr