
TaskRelevanceMap configurator. More...
#include <Neuro/TaskRelevanceMap.H>


Public Member Functions | |
| TaskRelevanceMapConfigurator (OptionManager &mgr, const std::string &descrName="Task-Relevance Map Configurator", const std::string &tagName="TaskRelevanceMapConfigurator") | |
| Constructor. | |
| virtual | ~TaskRelevanceMapConfigurator () |
| destructor | |
| nub::ref< TaskRelevanceMap > | getTRM () const |
| Get the chosen TRM. | |
Protected Member Functions | |
| virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Intercept people changing our ModelParam. | |
Protected Attributes | |
| OModelParam< std::string > | itsTRMtype |
| type of map | |
TaskRelevanceMap configurator.
This will export the --trm-type=XX command-line option and will instantiate a TRM of the desired type as the option gets assigned a value. As this happens, new options may become available in the command-line. To see them, use --help AFTER you have chosen the type to use. The current TRM may be retrieved using getTRM().
Definition at line 98 of file TaskRelevanceMap.H.
| TaskRelevanceMapConfigurator::TaskRelevanceMapConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Task-Relevance Map Configurator", |
|||
| const std::string & | tagName = "TaskRelevanceMapConfigurator" | |||
| ) |
Constructor.
Definition at line 95 of file TaskRelevanceMap.C.
References ModelComponent::addSubComponent().
| TaskRelevanceMapConfigurator::~TaskRelevanceMapConfigurator | ( | ) | [virtual] |
destructor
Definition at line 106 of file TaskRelevanceMap.C.
| nub::ref< TaskRelevanceMap > TaskRelevanceMapConfigurator::getTRM | ( | ) | const |
Get the chosen TRM.
You should call this during start() of the ModelComponent that needs the TRM. CAUTION: this may be a rutz::shared_ptr(NULL) if no TRM type has been chosen.
Definition at line 110 of file TaskRelevanceMap.C.
| void TaskRelevanceMapConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
| const bool | valueChanged, | |||
| ParamClient::ChangeStatus * | status | |||
| ) | [protected, virtual] |
Intercept people changing our ModelParam.
See ModelComponent.H; as parsing the command-line or reading a config file sets our name, we'll also here instantiate a controller of the proper type (and export its options)
Reimplemented from ModelComponent.
Definition at line 115 of file TaskRelevanceMap.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsTRMtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
1.6.3