Skip to content

Commit

Permalink
Modify ImportanceUpdatingAgent to use getHandlesByAV instead of getHa…
Browse files Browse the repository at this point in the history
…ndleSetFiltered with STIAboveThreshold AtomPredicate
  • Loading branch information
Cosmo Harrigan committed Dec 4, 2013
1 parent 8364186 commit a9e6d8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions opencog/dynamics/attention/ImportanceUpdatingAgent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ void ImportanceUpdatingAgent::updateAttentionalFocusSizes(AtomSpace* a)
HandleSeq inFocus;

AttentionValue::sti_t threshold = a->getAttentionalFocusBoundary() + amnesty;
AtomSpace::STIAboveThreshold stiAbove(threshold);
a->getHandleSetFiltered(back_inserter(inFocus), ATOM, true, &stiAbove);
a->getHandlesByAV(back_inserter(inFocus), threshold);

attentionalFocusSize.update(inFocus.size());

Expand Down

0 comments on commit a9e6d8d

Please sign in to comment.