Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VisualCortexConfigurator Class Reference

#include <Neuro/VisualCortexConfigurator.H>

Inheritance diagram for VisualCortexConfigurator:

Inheritance graph
[legend]
Collaboration diagram for VisualCortexConfigurator:

Collaboration graph
[legend]
List of all members.

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.

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


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(), i, nub::soft_ref< T >::isValid(), itsVCtype, LFATAL, LINFO, rutz::make_shared(), MC_RECURSE, mgr, OPT_BeowulfMaster, OPT_LevelSpec, OPT_RawVisualCortexChans, ModelComponent::paramChanged(), ModelComponent::removeSubComponent(), nub::soft_ref< T >::reset(), nub::ref< T >::reset(), setupVisualCortexBeo(), split(), and vcx.


Member Data Documentation

OModelParam<std::string> VisualCortexConfigurator::itsVCtype [protected]
 

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 Mon Nov 23 15:51:25 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4