knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <AnswerNo.h>
Public Member Functions | |
AnswerNo () | |
AnswerNo (const AnswerNo &other) | |
void | addUngrounded (const std::shared_ptr< Predicate > &predicate, bool isNegated=false) |
auto & | positiveUngrounded () const |
auto & | negativeUngrounded () const |
bool | mergeWith (const AnswerNo &other) |
std::string | stringFormOfNo () const |
std::string | humanReadableFormOfNo () const |
AnswerNo () | |
AnswerNo (const AnswerNo &other) | |
void | addUngrounded (const std::shared_ptr< Predicate > &predicate, bool isNegated=false) |
auto & | positiveUngrounded () const |
auto & | negativeUngrounded () const |
bool | mergeWith (const AnswerNo &other) |
std::string | stringFormOfNo () const |
std::string | humanReadableFormOfNo () 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 > | positiveUngrounded_ |
std::vector< FramedPredicate > | negativeUngrounded_ |
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 negative answer indicates that a querying component has evidence for the input query being false for all instances of the query.
Definition at line 17 of file AnswerNo.h.
AnswerNo::AnswerNo | ( | ) |
AnswerNo::AnswerNo | ( | const AnswerNo & | other | ) |
knowrob::AnswerNo::AnswerNo | ( | ) |
Default constructor.
knowrob::AnswerNo::AnswerNo | ( | const AnswerNo & | other | ) |
Copy constructor.
other | another answer. |
void AnswerNo::addUngrounded | ( | const std::shared_ptr< Predicate > & | predicate, |
bool | isNegated = false |
||
) |
Add a ungroundable literal to the answer.
predicate | a predicate. |
isNegated | true if the negation of the predicate is ungroundable. |
Definition at line 29 of file AnswerNo.cpp.
void knowrob::AnswerNo::addUngrounded | ( | const std::shared_ptr< Predicate > & | predicate, |
bool | isNegated = false |
||
) |
Add a ungroundable literal to the answer.
predicate | a predicate. |
isNegated | true if the negation of the predicate is ungroundable. |
std::string AnswerNo::humanReadableFormOfNo | ( | ) | const |
std::string knowrob::AnswerNo::humanReadableFormOfNo | ( | ) | const |
bool AnswerNo::mergeWith | ( | const AnswerNo & | other | ) |
Merge this answer with another answer.
other | another answer. |
Definition at line 37 of file AnswerNo.cpp.
bool knowrob::AnswerNo::mergeWith | ( | const AnswerNo & | other | ) |
Merge this answer with another answer.
other | another answer. |
|
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 49 of file AnswerNo.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 49 of file AnswerNo.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 42 of file AnswerNo.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 42 of file AnswerNo.h.
std::string AnswerNo::stringFormOfNo | ( | ) | const |
std::string knowrob::AnswerNo::stringFormOfNo | ( | ) | const |
|
protected |
Definition at line 70 of file AnswerNo.h.
|
protected |
Definition at line 69 of file AnswerNo.h.