NEST
2.6.0,not_revisioned_source_dir@0
|
Abstract base class for ConnBuilders. More...
#include <conn_builder.h>
Public Member Functions | |
virtual void | connect () |
Connect sources to targets according to specifications in dictionary. More... | |
ConnBuilder (Network &, const GIDCollection &, const GIDCollection &, const DictionaryDatum &, const DictionaryDatum &) | |
parameters: sources, targets, specifications More... | |
virtual | ~ConnBuilder () |
Protected Member Functions | |
virtual void | connect_ ()=0 |
Implements the actual connection algorithm. More... | |
void | single_connect_ (index, Node &, thread, librandom::RngPtr &) |
Create connection between given nodes, fill parameter values. More... | |
Protected Attributes | |
Network & | net_ |
const GIDCollection & | sources_ |
const GIDCollection & | targets_ |
bool | autapses_ |
bool | multapses_ |
std::vector< lockPTR < WrappedThreadException > > | exceptions_raised_ |
buffer for exceptions raised in threads More... | |
Private Types | |
typedef std::map< Name, ConnParameter * > | ConnParameterMap |
Private Member Functions | |
void | check_synapse_params_ (std::string, const DictionaryDatum &) |
Private Attributes | |
index | synapse_model_ |
bool | default_weight_and_delay_ |
indicate that weight and delay should not be set per synapse More... | |
bool | default_weight_ |
indicate that weight should not be set per synapse More... | |
ConnParameter * | weight_ |
ConnParameter * | delay_ |
ConnParameterMap | synapse_params_ |
all other parameters, mapping name to value representation More... | |
std::vector< DictionaryDatum > | param_dicts_ |
dictionaries to pass to connect function, one per thread More... | |
Abstract base class for ConnBuilders.
The base class extracts and holds parameters and provides the connect interface. Derived classes implement the connect method.
|
private |
nest::ConnBuilder::ConnBuilder | ( | Network & | net, |
const GIDCollection & | sources, | ||
const GIDCollection & | targets, | ||
const DictionaryDatum & | conn_spec, | ||
const DictionaryDatum & | syn_spec | ||
) |
parameters: sources, targets, specifications
References nest::names::autapses, autapses_, check_synapse_params_(), nest::ConnParameter::create(), default_weight_, default_weight_and_delay_, nest::names::delay, delay_, nest::Network::get_connector_defaults(), nest::Network::get_num_threads(), nest::Network::get_synapsedict(), Dictionary::known(), nest::names::model, nest::names::multapses, multapses_, nest::names::music_channel, net_, param_dicts_, nest::names::receptor_type, synapse_model_, synapse_params_, nest::names::weight, and weight_.
|
virtual |
|
inlineprivate |
References nest::names::a, nest::names::c, nest::names::delay, SLIInterpreter::M_WARNING, NotImplemented::message(), nest::names::n, and nest::names::weight.
Referenced by ConnBuilder().
|
virtual |
Connect sources to targets according to specifications in dictionary.
To create a connection, call
cb.connect();
where conn_spec_dict speficies connection type and its parameters.
Referenced by nest::Network::connect().
|
protectedpure virtual |
Implements the actual connection algorithm.
Implemented in nest::BernoulliBuilder, nest::FixedTotalNumberBuilder, nest::FixedOutDegreeBuilder, nest::FixedInDegreeBuilder, nest::AllToAllBuilder, and nest::OneToOneBuilder.
|
inlineprotected |
Create connection between given nodes, fill parameter values.
References assert(), numerics::e, nest::Node::get_gid(), nest::names::music_channel, nest::names::receptor_type, and nest::names::target_thread.
|
protected |
Referenced by ConnBuilder().
|
private |
indicate that weight should not be set per synapse
Referenced by ConnBuilder().
|
private |
indicate that weight and delay should not be set per synapse
Referenced by ConnBuilder().
|
private |
Referenced by ConnBuilder().
|
protected |
buffer for exceptions raised in threads
|
protected |
|
protected |
Referenced by ConnBuilder().
|
private |
dictionaries to pass to connect function, one per thread
Referenced by ConnBuilder().
|
protected |
|
private |
Referenced by ConnBuilder().
|
private |
all other parameters, mapping name to value representation
Referenced by ConnBuilder().
|
protected |
|
private |
Referenced by ConnBuilder().