|
OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <Target.h>
Collaboration diagram for opencog::TargetSet:Public Member Functions | |
| TargetSet () | |
| ~TargetSet () | |
| void | clear () |
| void | emplace (Handle h, Handle hvardecl) |
| unsigned int | size () |
| Target & | select () |
| Target & | get (Handle &h) |
Private Attributes | |
| std::map< Handle, Target > | _targets_map |
| AtomSpace | _history_space |
| unsigned int | _total_selection |
| void TargetSet::clear | ( | ) |
Clear the TargetSet.
Definition at line 139 of file Target.cc.
References _history_space, _targets_map, and opencog::AtomSpace::clear().
Here is the caller graph for this function:Add a new Target into the set.
| h | the atom to which the Target will be created |
Definition at line 150 of file Target.cc.
References _history_space, and _targets_map.
Here is the caller graph for this function:| Target & TargetSet::select | ( | ) |
Select a Target from the set using some fitness criteria.
Currently uses the selection count to apply weighted random selection.
XXX TODO use criteria such as
Definition at line 178 of file Target.cc.
References _targets_map, _total_selection, opencog::Target::increment_selection_count(), and python.undocumented.blocksworld::t.
Here is the caller graph for this function:| unsigned int TargetSet::size | ( | void | ) |
Get the size of the TargetSet.
Definition at line 161 of file Target.cc.
References _targets_map.
Here is the caller graph for this function: