OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opencog::NullTruthValue Class Reference

a special type of TruthValue More...

#include <NullTruthValue.h>

+ Inheritance diagram for opencog::NullTruthValue:
+ Collaboration diagram for opencog::NullTruthValue:

Public Member Functions

 NullTruthValue ()
 
bool isNullTv () const
 
strength_t getMean () const throw (RuntimeException)
 
count_t getCount () const throw (RuntimeException)
 
confidence_t getConfidence () const throw (RuntimeException)
 
std::string toString () const
 
TruthValueType getType () const
 
TruthValuePtr clone () const
 
TruthValuerawclone () const
 
virtual bool operator== (const TruthValue &rhs) const
 
- Public Member Functions inherited from opencog::TruthValue
virtual ~TruthValue ()
 
bool operator!= (const TruthValue &rhs) const
 
virtual bool isDefaultTV () const
 

Protected Member Functions

TruthValuePtr merge (TruthValuePtr, TVMergeStyle ms=DEFAULT) const throw (RuntimeException)
 

Friends

class TruthValue
 

Additional Inherited Members

- Static Public Member Functions inherited from opencog::TruthValue
static TruthValuePtr NULL_TV ()
 
static TruthValuePtr TRUE_TV ()
 
static TruthValuePtr DEFAULT_TV ()
 
static TruthValuePtr FALSE_TV ()
 
static TruthValuePtr TRIVIAL_TV ()
 

Detailed Description

a special type of TruthValue

Definition at line 37 of file NullTruthValue.h.

Constructor & Destructor Documentation

NullTruthValue::NullTruthValue ( )

Definition at line 31 of file NullTruthValue.cc.

+ Here is the caller graph for this function:

Member Function Documentation

TruthValuePtr NullTruthValue::clone ( ) const
virtual

Implements opencog::TruthValue.

Definition at line 75 of file NullTruthValue.cc.

References NullTruthValue().

confidence_t NullTruthValue::getConfidence ( ) const
throw (RuntimeException
)
virtual

Implements opencog::TruthValue.

Definition at line 60 of file NullTruthValue.cc.

count_t NullTruthValue::getCount ( ) const
throw (RuntimeException
)
virtual

Implements opencog::TruthValue.

Definition at line 55 of file NullTruthValue.cc.

strength_t NullTruthValue::getMean ( ) const
throw (RuntimeException
)
virtual

Implements opencog::TruthValue.

Definition at line 50 of file NullTruthValue.cc.

TruthValueType NullTruthValue::getType ( ) const
virtual

Implements opencog::TruthValue.

Definition at line 65 of file NullTruthValue.cc.

References opencog::NULL_TRUTH_VALUE.

bool NullTruthValue::isNullTv ( ) const
virtual

Check if this TV is a null TV.

Reimplemented from opencog::TruthValue.

Definition at line 33 of file NullTruthValue.cc.

TruthValuePtr NullTruthValue::merge ( TruthValuePtr  ,
TVMergeStyle  ms = DEFAULT 
) const
throw (RuntimeException
)
protectedvirtual

Merge this TV object with the given TV object argument. It always returns a new TV object with the result of the merge, even if it is equal to one of the merged TV objects.

Parameters
msthe merge style as described in https://github.com/opencog/opencog/issues/1295

Implements opencog::TruthValue.

Definition at line 70 of file NullTruthValue.cc.

bool NullTruthValue::operator== ( const TruthValue rhs) const
virtual

Equality. Used to determine if two truth values are the same, or not. Primarily useful see if a TV is equal to NULL_TV, TRUE_TV, FALSE_TV, etc.

Implements opencog::TruthValue.

Definition at line 38 of file NullTruthValue.cc.

TruthValue * NullTruthValue::rawclone ( ) const
virtual

Implements opencog::TruthValue.

Definition at line 81 of file NullTruthValue.cc.

References NullTruthValue().

std::string NullTruthValue::toString ( ) const
virtual

Implements opencog::TruthValue.

Definition at line 45 of file NullTruthValue.cc.

Friends And Related Function Documentation

friend class TruthValue
friend

Definition at line 39 of file NullTruthValue.h.


The documentation for this class was generated from the following files: