InferoTemporal configurator. More...
#include <Neuro/InferoTemporalConfigurator.H>
Public Member Functions | |
InferoTemporalConfigurator (OptionManager &mgr, const std::string &descrName="Inferior Temporal Cortex Configurator", const std::string &tagName="InferoTemporalConfigurator") | |
Constructor. | |
virtual | ~InferoTemporalConfigurator () |
destructor | |
nub::ref< InferoTemporal > | getIT () const |
Get the chosen InferoTemporal. | |
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 > | itsITtype |
type of inferior temporal cortex |
InferoTemporal configurator.
This will export the --vc-type=XX command-line option and will instantiate a InferoTemporal 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 InferoTemporal may be retrieved using getIT().
Definition at line 54 of file InferoTemporalConfigurator.H.
InferoTemporalConfigurator::InferoTemporalConfigurator | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Inferior Temporal Cortex Configurator" , |
|||
const std::string & | tagName = "InferoTemporalConfigurator" | |||
) |
Constructor.
Definition at line 53 of file InferoTemporalConfigurator.C.
References ModelComponent::addSubComponent().
InferoTemporalConfigurator::~InferoTemporalConfigurator | ( | ) | [virtual] |
destructor
Definition at line 64 of file InferoTemporalConfigurator.C.
nub::ref< InferoTemporal > InferoTemporalConfigurator::getIT | ( | ) | const |
Get the chosen InferoTemporal.
You should call this during start() of the ModelComponent that needs the InferoTemporal.
Definition at line 68 of file InferoTemporalConfigurator.C.
void InferoTemporalConfigurator::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 73 of file InferoTemporalConfigurator.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsITtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
OModelParam<std::string> InferoTemporalConfigurator::itsITtype [protected] |
type of inferior temporal cortex
Definition at line 73 of file InferoTemporalConfigurator.H.
Referenced by paramChanged().