| … | … | @@ -24,6 +24,7 @@ |
| 24 | 24 | #define _OPENCOG_ACTIONSELECTION_H_ |
| 25 | 25 | |
| 26 | 26 | #include <opencog/util/empty_string.h> |
| 27 | #include <opencog/util/Counter.h> |
| 27 | 28 | #include <opencog/atoms/base/Handle.h> |
| 28 | 29 | #include <opencog/atoms/truthvalue/TruthValue.h> |
| 29 | 30 | |
| … | … | @@ -35,6 +36,12 @@ namespace opencog |
| 35 | 36 | //! a map from handles to truth values |
| 36 | 37 | typedef std::map<Handle, TruthValuePtr> HandleTVMap; |
| 37 | 38 | |
| 39 | //! a map from handle to double |
| 40 | typedef Counter<Handle, double> HandleCounter; |
| 41 | |
| 42 | //! a map from handle to unsigned |
| 43 | typedef Counter<Handle, unsigned> HandleUCounter; |
| 44 | |
| 38 | 45 | /** |
| 39 | 46 | * Class containing methods to calculate distribution over actions |
| 40 | 47 | * given the TruthValue that each action fulfills the objective of |
| … | … | @@ -97,6 +104,10 @@ std::string oc_to_string(const ActionSelection& asel, |
| 97 | 104 | const std::string& indent=empty_string); |
| 98 | 105 | std::string oc_to_string(const HandleTVMap& h2tv, |
| 99 | 106 | const std::string& indent=empty_string); |
| 107 | std::string oc_to_string(const HandleCounter& hc, |
| 108 | const std::string& indent=empty_string); |
| 109 | std::string oc_to_string(const HandleUCounter& huc, |
| 110 | const std::string& indent=empty_string); |
| 100 | 111 | |
| 101 | 112 | } // namespace opencog |
| 102 | 113 | |