AttentionGuidanceMap configurator. More...
#include <Neuro/AttentionGuidanceMap.H>
Public Member Functions | |
AttentionGuidanceMapConfigurator (OptionManager &mgr, const std::string &descrName="Attention Guidance Map Configurator", const std::string &tagName="AttentionGuidanceMapConfigurator") | |
Constructor. | |
virtual | ~AttentionGuidanceMapConfigurator () |
destructor | |
nub::ref< AttentionGuidanceMap > | getAGM () const |
Get the chosen AGM. | |
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 > | itsAGMtype |
type of map |
AttentionGuidanceMap configurator.
This will export the --agm-type=XX command-line option and will instantiate an AGM 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 AGM may be retrieved using getAGM().
Definition at line 148 of file AttentionGuidanceMap.H.
AttentionGuidanceMapConfigurator::AttentionGuidanceMapConfigurator | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Attention Guidance Map Configurator" , |
|||
const std::string & | tagName = "AttentionGuidanceMapConfigurator" | |||
) |
Constructor.
Definition at line 141 of file AttentionGuidanceMap.C.
References ModelComponent::addSubComponent().
AttentionGuidanceMapConfigurator::~AttentionGuidanceMapConfigurator | ( | ) | [virtual] |
destructor
Definition at line 152 of file AttentionGuidanceMap.C.
nub::ref< AttentionGuidanceMap > AttentionGuidanceMapConfigurator::getAGM | ( | ) | const |
Get the chosen AGM.
You should call this during start() of the ModelComponent that needs the AGM.
Definition at line 157 of file AttentionGuidanceMap.C.
void AttentionGuidanceMapConfigurator::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 162 of file AttentionGuidanceMap.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsAGMtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().