VisualCortexConfigurator Class Reference

VisualCortex configurator. More...

#include <Neuro/VisualCortexConfigurator.H>

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

List of all members.

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< VisualCortexgetVC () const
 Get the chosen VisualCortex.
nub::soft_ref< BeowulfgetBeo () const
 If the chosen VisualCortex uses a Beowulf, get it here.

Protected Attributes

OModelParam< std::stringitsVCtype
 type of visual cortex

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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


Member Data Documentation

type of visual cortex

Definition at line 89 of file VisualCortexConfigurator.H.

Referenced by paramChanged().


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