27 #include <opencog/util/exceptions.h>
29 using namespace opencog;
52 throw RuntimeException(TRACE_INFO,
"Cannot call getMean() method of a NullTruthvalue");
57 throw RuntimeException(TRACE_INFO,
"Cannot call getCount() method of a NullTruthvalue");
62 throw RuntimeException(TRACE_INFO,
"Cannot call getConfidence() method of a NullTruthvalue");
72 throw RuntimeException(TRACE_INFO,
"Cannot call merge() method of a NullTruthvalue");
std::string toString() const
TruthValuePtr clone() const
TruthValueType getType() const
std::shared_ptr< TruthValue > TruthValuePtr
virtual bool operator==(const TruthValue &rhs) const
a special type of TruthValue
strength_t getMean() const
TruthValue * rawclone() const
confidence_t getConfidence() const
TruthValuePtr merge(TruthValuePtr, TVMergeStyle ms=DEFAULT) const