TaskRelevanceMapConfigurator Class Reference

TaskRelevanceMap configurator. More...

#include <Neuro/TaskRelevanceMap.H>

Inheritance diagram for TaskRelevanceMapConfigurator:
Inheritance graph
[legend]
Collaboration diagram for TaskRelevanceMapConfigurator:
Collaboration graph
[legend]

List of all members.

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< TaskRelevanceMapgetTRM () 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::stringitsTRMtype
 type of map

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

type of map

Definition at line 118 of file TaskRelevanceMap.H.

Referenced by paramChanged().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:50 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3