
VisualCortex configurator. More...
#include <Neuro/VisualCortexConfigurator.H>


Public Member Functions | |
| VisualCortexConfigurator (OptionManager &mgr, const std::string &descrName="Visual Cortex Configurator", const std::string &tagName="VisualCortexConfigurator") | |
| Constructor. | |
| virtual | ~VisualCortexConfigurator () |
| destructor | |
| virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Intercept people changing our ModelParam. | |
| nub::ref< VisualCortex > | getVC () const |
| Get the chosen VisualCortex. | |
| nub::soft_ref< Beowulf > | getBeo () const |
| If the chosen VisualCortex uses a Beowulf, get it here. | |
Protected Attributes | |
| OModelParam< std::string > | itsVCtype |
| type of visual cortex | |
VisualCortex configurator.
This will export the --vc-type=XX command-line option and will instantiate a VisualCortex 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 VisualCortex may be retrieved using getVC().
Definition at line 55 of file VisualCortexConfigurator.H.
| VisualCortexConfigurator::VisualCortexConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Visual Cortex Configurator", |
|||
| const std::string & | tagName = "VisualCortexConfigurator" | |||
| ) |
Constructor.
Definition at line 102 of file VisualCortexConfigurator.C.
References ModelComponent::addSubComponent().
| VisualCortexConfigurator::~VisualCortexConfigurator | ( | ) | [virtual] |
destructor
Definition at line 114 of file VisualCortexConfigurator.C.
| nub::soft_ref< Beowulf > VisualCortexConfigurator::getBeo | ( | ) | const |
If the chosen VisualCortex uses a Beowulf, get it here.
You should call this during start() of the ModelComponent that needs the VisualCortex. CAUTION: this may be a rutz::shared_ptr(NULL) if no controller has been chosen.
Definition at line 122 of file VisualCortexConfigurator.C.
| nub::ref< VisualCortex > VisualCortexConfigurator::getVC | ( | ) | const |
Get the chosen VisualCortex.
You should call this during start() of the ModelComponent that needs the VisualCortex. CAUTION: this may be a rutz::shared_ptr(NULL) if no controller has been chosen.
Definition at line 118 of file VisualCortexConfigurator.C.
| void VisualCortexConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
| const bool | valueChanged, | |||
| ParamClient::ChangeStatus * | status | |||
| ) | [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 126 of file VisualCortexConfigurator.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsVCtype, rutz::make_shared(), MC_RECURSE, ModelComponent::removeSubComponent(), nub::ref< T >::reset(), nub::soft_ref< T >::reset(), setupVisualCortexBeo(), and split().
OModelParam<std::string> VisualCortexConfigurator::itsVCtype [protected] |
type of visual cortex
Definition at line 89 of file VisualCortexConfigurator.H.
Referenced by paramChanged().
1.6.3