25 #ifndef _OPENCOG_ATTENTION_VALUE_H
26 #define _OPENCOG_ATTENTION_VALUE_H
42 #define createAV std::make_shared<AttentionValue>
45 :
public std::enable_shared_from_this<AttentionValue>
126 {
return !(*
this == rhs); }
151 #endif // _OPENCOG_ATTENTION_VALUE_H
virtual bool test(const AtomPtr &, const AtomPtr &) const
AttentionValue * rawclone() const
std::shared_ptr< Atom > AtomPtr
short vlti_t
very long-term importance type
bool operator!=(const AttentionValue &rhs) const
std::shared_ptr< AttentionValue > AttentionValuePtr
virtual bool test(const AtomPtr &, const AtomPtr &) const
bool operator==(const AttentionValue &av) const
short lti_t
long-term importance type
static AttentionValuePtr m_defaultAV
lti_t getLTI() const
return LTI property value
static const int DISPOSABLE
Status flag for vlti.
float getScaledSTI() const
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]".
AttentionValuePtr clone() const
Returns An AttentionValue* cloned from this AttentionValue.
static AttentionValuePtr DEFAULT_AV()
to be used as default attention value
static const lti_t MAXLTI
static const sti_t DEFAULTATOMSTI
short-term importance default
vlti_t getVLTI() const
return VLTI property value
functor for comparing atom's attention value
static const lti_t MINLTI
static const sti_t MINSTI
AttentionValue(sti_t STI=DEFAULTATOMSTI, lti_t LTI=DEFAULTATOMLTI, vlti_t VLTI=DEFAULTATOMVLTI)
functor for comparing atom's attention value
sti_t getSTI() const
return STI property value
lti_t m_LTI
long-term importance
static const sti_t MAXSTI
static const vlti_t DEFAULTATOMVLTI
very long-term default
functor for comparing atom's attention value