28 using namespace opencog;
44 sprintf(buffer,
"[%d, %d, %s]", (
int)
m_STI, (
int)
m_LTI,
m_VLTI ?
"NONDISPOSABLE" :
"DISPOSABLE");
50 return h1->getAttentionValue()->getSTI() >
51 h2->getAttentionValue()->getSTI();
59 tv1 = fabs(h1->getTruthValue()->getMean());
60 tv2 = fabs(h2->getTruthValue()->getMean());
62 lti1 = h1->getAttentionValue()->getLTI();
63 lti2 = h2->getAttentionValue()->getLTI();
66 tv1 = lti1 * (1.0f - tv1);
71 tv2 = lti2 * (1.0f - tv2);
81 lti1 = h1->getAttentionValue()->getLTI();
82 lti2 = h2->getAttentionValue()->getLTI();
84 if (lti1 != lti2)
return lti1 < lti2;
87 tv1 = h1->getTruthValue()->getMean();
88 tv2 = h2->getTruthValue()->getMean();
virtual bool test(const AtomPtr &, const AtomPtr &) const
std::shared_ptr< Atom > AtomPtr
short vlti_t
very long-term importance type
virtual bool test(const AtomPtr &, const AtomPtr &) const
short lti_t
long-term importance type
static const lti_t DEFAULTATOMLTI
long-term importance default
virtual bool test(const AtomPtr &, const AtomPtr &) const
short sti_t
short-term importance type
sti_t m_STI
short-term importance
void decaySTI()
default attention value
std::string toString() const
Returns const string "[sti_val, lti_val, vlti_val]".
static const sti_t DEFAULTATOMSTI
short-term importance default
lti_t m_LTI
long-term importance
static const vlti_t DEFAULTATOMVLTI
very long-term default