|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <AnswerYes.h>


Public Member Functions | |
| AnswerYes () | |
| AnswerYes (BindingsPtr substitution) | |
| AnswerYes (const AnswerYes &other) | |
| bool | isRicherThan (const AnswerYes &other) const |
| bool | isGenericYes () const |
| auto & | substitution () const |
| bool | hasGrounding (const Variable &var) const |
| bool | addGrounding (const std::shared_ptr< Predicate > &predicate, bool isNegated=false, const GraphSelectorPtr &frame=DefaultGraphSelector()) |
| auto & | positiveGroundings () const |
| auto & | negativeGroundings () const |
| bool | mergeWith (const AnswerYes &other, bool ignoreInconsistencies=false) |
| std::string | stringFormOfYes () const |
| std::string | humanReadableFormOfYes () const |
| AnswerYes () | |
| AnswerYes (BindingsPtr substitution) | |
| AnswerYes (const AnswerYes &other) | |
| bool | isRicherThan (const AnswerYes &other) const |
| bool | isGenericYes () const |
| auto & | substitution () const |
| bool | hasGrounding (const Variable &var) const |
| bool | addGrounding (const std::shared_ptr< Predicate > &predicate, bool isNegated=false, const GraphSelectorPtr &frame=DefaultGraphSelector()) |
| auto & | positiveGroundings () const |
| auto & | negativeGroundings () const |
| bool | mergeWith (const AnswerYes &other, bool ignoreInconsistencies=false) |
| std::string | stringFormOfYes () const |
| std::string | humanReadableFormOfYes () const |
Public Member Functions inherited from knowrob::Answer | |
| Answer () | |
| Answer (const Answer &other) | |
| auto & | frame () const |
| void | setFrame (const std::shared_ptr< GraphSelector > &frame) |
| void | applyFrame (const GraphSelector &frame) |
| bool | isNegative () const |
| bool | isPositive () const |
| bool | isUncertain () const |
| bool | isCertain () const |
| void | setIsUncertain (bool val, std::optional< double > confidence) |
| bool | isOccasionallyTrue () const |
| bool | isAllwaysTrue () const |
| void | setIsOccasionallyTrue (bool val) |
| void | setReasonerTerm (const AtomPtr &reasonerTerm) |
| auto & | reasonerTerm () const |
| size_t | hashOfAnswer () const |
| std::string | stringFormOfAnswer () const |
| std::string | humanReadableForm () const |
| Answer () | |
| Answer (const Answer &other) | |
| auto & | frame () const |
| void | setFrame (const std::shared_ptr< GraphSelector > &frame) |
| void | applyFrame (const GraphSelector &frame) |
| bool | isNegative () const |
| bool | isPositive () const |
| bool | isUncertain () const |
| bool | isCertain () const |
| void | setIsUncertain (bool val, std::optional< double > confidence) |
| bool | isOccasionallyTrue () const |
| bool | isAllwaysTrue () const |
| void | setIsOccasionallyTrue (bool val) |
| void | setReasonerTerm (const AtomPtr &reasonerTerm) |
| auto & | reasonerTerm () const |
| size_t | hashOfAnswer () const |
| std::string | stringFormOfAnswer () const |
| std::string | humanReadableForm () const |
Public Member Functions inherited from knowrob::Token | |
| Token (TokenType tokenType) | |
| virtual | ~Token ()=default |
| TokenType | tokenType () const |
| size_t | hash () const |
| std::string | stringForm () const |
| bool | isControlToken () const |
| bool | isAnswerToken () const |
| bool | indicatesEndOfEvaluation () const |
| void | write (std::ostream &os) const override |
| Token (TokenType tokenType) | |
| virtual | ~Token ()=default |
| TokenType | tokenType () const |
| size_t | hash () const |
| std::string | stringForm () const |
| bool | isControlToken () const |
| bool | isAnswerToken () const |
| bool | indicatesEndOfEvaluation () const |
| void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Printable | |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
Protected Attributes | |
| std::vector< FramedPredicate > | positiveGroundings_ |
| std::vector< FramedPredicate > | negativeGroundings_ |
| BindingsPtr | substitution_ |
Protected Attributes inherited from knowrob::Answer | |
| std::shared_ptr< GraphSelector > | frame_ |
| AtomPtr | reasonerTerm_ |
| bool | isPositive_ = false |
| bool | isNegative_ = false |
Protected Attributes inherited from knowrob::Token | |
| TokenType | tokenType_ |
| bool | isTerminalToken_ = false |
Additional Inherited Members | |
Protected Member Functions inherited from knowrob::Answer | |
| void | setIsPositive (bool val) |
| void | setIsNegative (bool val) |
| void | setIsPositive (bool val) |
| void | setIsNegative (bool val) |
A positive answer indicates that a querying component has evidence for the input query being true for some instances of the query.
Definition at line 18 of file AnswerYes.h.
| AnswerYes::AnswerYes | ( | ) |
|
explicit |
Definition at line 22 of file AnswerYes.cpp.
| AnswerYes::AnswerYes | ( | const AnswerYes & | other | ) |
Copy constructor.
| other | another answer. |
Definition at line 28 of file AnswerYes.cpp.
| knowrob::AnswerYes::AnswerYes | ( | ) |
Default constructor.
|
explicit |
| knowrob::AnswerYes::AnswerYes | ( | const AnswerYes & | other | ) |
Copy constructor.
| other | another answer. |
| bool AnswerYes::addGrounding | ( | const std::shared_ptr< Predicate > & | predicate, |
| bool | isNegated = false, |
||
| const GraphSelectorPtr & | frame = DefaultGraphSelector() |
||
| ) |
Add a grounded literal to the answer. Positive literals may not contain variables.t
| predicate | a predicate. |
| frame | a graph selector. |
| isNegated | true if the negation of the predicate is grounded. |
Definition at line 58 of file AnswerYes.cpp.
| bool knowrob::AnswerYes::addGrounding | ( | const std::shared_ptr< Predicate > & | predicate, |
| bool | isNegated = false, |
||
| const GraphSelectorPtr & | frame = DefaultGraphSelector() |
||
| ) |
Add a grounded literal to the answer. Positive literals may not contain variables.t
| predicate | a predicate. |
| frame | a graph selector. |
| isNegated | true if the negation of the predicate is grounded. |
|
inline |
| var | a variable. |
Definition at line 56 of file AnswerYes.h.
|
inline |
| var | a variable. |
Definition at line 56 of file AnswerYes.h.
| std::string AnswerYes::humanReadableFormOfYes | ( | ) | const |
| std::string knowrob::AnswerYes::humanReadableFormOfYes | ( | ) | const |
| bool AnswerYes::isGenericYes | ( | ) | const |
Definition at line 54 of file AnswerYes.cpp.
| bool knowrob::AnswerYes::isGenericYes | ( | ) | const |
| bool AnswerYes::isRicherThan | ( | const AnswerYes & | other | ) | const |
| other | another answer. |
Definition at line 36 of file AnswerYes.cpp.
| bool knowrob::AnswerYes::isRicherThan | ( | const AnswerYes & | other | ) | const |
| other | another answer. |
| bool AnswerYes::mergeWith | ( | const AnswerYes & | other, |
| bool | ignoreInconsistencies = false |
||
| ) |
Merge this answer with another answer.
| other | another answer. |
| ignoreInconsistencies | if true, inconsistencies are ignored. |
Definition at line 73 of file AnswerYes.cpp.
| bool knowrob::AnswerYes::mergeWith | ( | const AnswerYes & | other, |
| bool | ignoreInconsistencies = false |
||
| ) |
Merge this answer with another answer.
| other | another answer. |
| ignoreInconsistencies | if true, inconsistencies are ignored. |
|
inline |
Part of the answer is that certain literals that appear negated in the query are not true. This is a list of such literals.
Definition at line 81 of file AnswerYes.h.
|
inline |
Part of the answer is that certain literals that appear negated in the query are not true. This is a list of such literals.
Definition at line 81 of file AnswerYes.h.
|
inline |
Part of the answer is that certain literals that appear positive in the query are true. This is a list of such literals.
Definition at line 74 of file AnswerYes.h.
|
inline |
Part of the answer is that certain literals that appear positive in the query are true. This is a list of such literals.
Definition at line 74 of file AnswerYes.h.
| std::string AnswerYes::stringFormOfYes | ( | ) | const |
| std::string knowrob::AnswerYes::stringFormOfYes | ( | ) | const |
|
inline |
Each positive answer is associated with a substitution that maps variables to terms. This substitution can be used to instantiate the query.
Definition at line 50 of file AnswerYes.h.
|
inline |
Each positive answer is associated with a substitution that maps variables to terms. This substitution can be used to instantiate the query.
Definition at line 50 of file AnswerYes.h.
|
protected |
Definition at line 103 of file AnswerYes.h.
|
protected |
Definition at line 102 of file AnswerYes.h.
|
protected |
Definition at line 104 of file AnswerYes.h.