
AttentionGate configurator. More...
#include <Neuro/AttentionGate.H>


Public Member Functions | |
| AttentionGateConfigurator (OptionManager &mgr, const std::string &descrName="Attention Gate Configurator", const std::string &tagName="AttentionGateConfigurator") | |
| Constructor. | |
| virtual | ~AttentionGateConfigurator () |
| destructor | |
| nub::ref< AttentionGate > | getAG () const |
| Get the chosen AG. | |
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 > | itsAGtype |
| type of map | |
AttentionGate configurator.
Definition at line 148 of file AttentionGate.H.
| AttentionGateConfigurator::AttentionGateConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Attention Gate Configurator", |
|||
| const std::string & | tagName = "AttentionGateConfigurator" | |||
| ) |
Constructor.
Definition at line 80 of file AttentionGate.C.
References ModelComponent::addSubComponent().
| AttentionGateConfigurator::~AttentionGateConfigurator | ( | ) | [virtual] |
destructor
Definition at line 91 of file AttentionGate.C.
| nub::ref< AttentionGate > AttentionGateConfigurator::getAG | ( | ) | const |
Get the chosen AG.
You should call this during start() of the ModelComponent that needs the AG.
Definition at line 96 of file AttentionGate.C.
| void AttentionGateConfigurator::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 101 of file AttentionGate.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsAGtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
OModelParam<std::string> AttentionGateConfigurator::itsAGtype [protected] |
1.6.3