OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
NullTruthValue.h
Go to the documentation of this file.
1 /*
2  * opencog/atomspace/NullTruthValue.h
3  *
4  * Copyright (C) 2002-2007 Novamente LLC
5  * All Rights Reserved
6  *
7  * Written by Welter Silva <welter@vettalabs.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Affero General Public License v3 as
11  * published by the Free Software Foundation and including the exceptions
12  * at http://opencog.org/wiki/Licenses
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU Affero General Public License
20  * along with this program; if not, write to:
21  * Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  */
24 
25 #ifndef _OPENCOG_NULL_TRUTH_VALUE_TV_H
26 #define _OPENCOG_NULL_TRUTH_VALUE_TV_H
27 
29 
30 namespace opencog
31 {
36 class NullTruthValue : public TruthValue
38 {
39  friend class TruthValue;
40 
41 public:
43  bool isNullTv() const;
44  strength_t getMean() const throw (RuntimeException);
45  count_t getCount() const throw (RuntimeException);
46  confidence_t getConfidence() const throw (RuntimeException);
47  std::string toString() const;
48  TruthValueType getType() const;
49  TruthValuePtr clone() const;
50  TruthValue* rawclone() const;
51 
52  virtual bool operator==(const TruthValue& rhs) const;
53 
54 protected:
55  TruthValuePtr merge(TruthValuePtr,TVMergeStyle ms=DEFAULT) const throw (RuntimeException);
56 };
57 
59 } // namespace
60 
61 #endif // _OPENCOG_NULL_TRUTH_VALUE_TV_H
std::string toString() const
TruthValuePtr clone() const
TruthValueType getType() const
TruthValueType
Definition: TruthValue.h:63
std::shared_ptr< TruthValue > TruthValuePtr
Definition: TruthValue.h:85
float strength_t
float confidence_t
double count_t
strength_t getMean() const
TruthValue * rawclone() const
confidence_t getConfidence() const
count_t getCount() const
TruthValuePtr merge(TruthValuePtr, TVMergeStyle ms=DEFAULT) const
TVMergeStyle
Definition: TruthValue.h:76