NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
nest::ConnBuilder Class Referenceabstract

Abstract base class for ConnBuilders. More...

#include <conn_builder.h>

Inheritance diagram for nest::ConnBuilder:
nest::AllToAllBuilder nest::BernoulliBuilder nest::FixedInDegreeBuilder nest::FixedOutDegreeBuilder nest::FixedTotalNumberBuilder nest::OneToOneBuilder

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

Networknet_
 
const GIDCollectionsources_
 
const GIDCollectiontargets_
 
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...
 
ConnParameterweight_
 
ConnParameterdelay_
 
ConnParameterMap synapse_params_
 all other parameters, mapping name to value representation More...
 
std::vector< DictionaryDatumparam_dicts_
 dictionaries to pass to connect function, one per thread More...
 

Detailed Description

Abstract base class for ConnBuilders.

The base class extracts and holds parameters and provides the connect interface. Derived classes implement the connect method.

Note
Naming classes *Builder to avoid name confusion with Connector classes.

Member Typedef Documentation

Constructor & Destructor Documentation

nest::ConnBuilder::ConnBuilder ( Network net,
const GIDCollection sources,
const GIDCollection targets,
const DictionaryDatum conn_spec,
const DictionaryDatum syn_spec 
)
nest::ConnBuilder::~ConnBuilder ( )
virtual

Member Function Documentation

void nest::ConnBuilder::check_synapse_params_ ( std::string  syn_name,
const DictionaryDatum syn_spec 
)
inlineprivate
void nest::ConnBuilder::connect ( )
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().

virtual void nest::ConnBuilder::connect_ ( )
protectedpure virtual
void nest::ConnBuilder::single_connect_ ( index  sgid,
Node target,
thread  target_thread,
librandom::RngPtr rng 
)
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.

Member Data Documentation

bool nest::ConnBuilder::autapses_
protected

Referenced by ConnBuilder().

bool nest::ConnBuilder::default_weight_
private

indicate that weight should not be set per synapse

Referenced by ConnBuilder().

bool nest::ConnBuilder::default_weight_and_delay_
private

indicate that weight and delay should not be set per synapse

Referenced by ConnBuilder().

ConnParameter* nest::ConnBuilder::delay_
private

Referenced by ConnBuilder().

std::vector<lockPTR<WrappedThreadException> > nest::ConnBuilder::exceptions_raised_
protected

buffer for exceptions raised in threads

bool nest::ConnBuilder::multapses_
protected
Network& nest::ConnBuilder::net_
protected

Referenced by ConnBuilder().

std::vector<DictionaryDatum> nest::ConnBuilder::param_dicts_
private

dictionaries to pass to connect function, one per thread

Referenced by ConnBuilder().

const GIDCollection& nest::ConnBuilder::sources_
protected
index nest::ConnBuilder::synapse_model_
private

Referenced by ConnBuilder().

ConnParameterMap nest::ConnBuilder::synapse_params_
private

all other parameters, mapping name to value representation

Referenced by ConnBuilder().

const GIDCollection& nest::ConnBuilder::targets_
protected
ConnParameter* nest::ConnBuilder::weight_
private

Referenced by ConnBuilder().


The documentation for this class was generated from the following files: