NEST main@caf0ae8
 
Loading...
Searching...
No Matches
nest::ConnBuilder Class Reference

Class representing a connection builder which may be bi- or tripartite. More...

#include <conn_builder.h>

Collaboration diagram for nest::ConnBuilder:
[legend]

Public Member Functions

 ConnBuilder (const std::string &primary_rule, NodeCollectionPTR sources, NodeCollectionPTR targets, const Dictionary &conn_spec, const std::vector< Dictionary > &syn_specs)
 Constructor for bipartite connection.
 
 ConnBuilder (const std::string &primary_rule, const std::string &third_rule, NodeCollectionPTR sources, NodeCollectionPTR targets, NodeCollectionPTR third, const Dictionary &conn_spec, const Dictionary &third_conn_spec, const std::map< std::string, std::vector< Dictionary > > &syn_specs)
 Constructor for tripartite connection.
 
 ~ConnBuilder ()
 
void connect ()
 Connect with or without structural plasticity.
 
void disconnect ()
 Delete synapses with or without structural plasticity.
 

Private Attributes

ThirdInBuilder * third_in_builder_
 
ThirdOutBuilder * third_out_builder_
 
BipartiteConnBuilder * primary_builder_
 

Detailed Description

Class representing a connection builder which may be bi- or tripartite.

A ConnBuilder always has a primary BipartiteConnBuilder. It additionally can have a pair of third_in and third_out Bipartite builders, where the third_in builder must perform one-to-one connections on given source-third pairs.

Constructor & Destructor Documentation

◆ ConnBuilder() [1/2]

nest::ConnBuilder::ConnBuilder ( const std::string &  primary_rule,
NodeCollectionPTR  sources,
NodeCollectionPTR  targets,
const Dictionary &  conn_spec,
const std::vector< Dictionary > &  syn_specs 
)

Constructor for bipartite connection.

Parameters
primary_ruleName of conn rule for primary connection
sourcesSource population for primary connection
targetsTarget population for primary connection
conn_specConnection specification dictionary for tripartite bernoulli rule
syn_specCollection of dictionaries with synapse specifications

◆ ConnBuilder() [2/2]

nest::ConnBuilder::ConnBuilder ( const std::string &  primary_rule,
const std::string &  third_rule,
NodeCollectionPTR  sources,
NodeCollectionPTR  targets,
NodeCollectionPTR  third,
const Dictionary &  conn_spec,
const Dictionary &  third_conn_spec,
const std::map< std::string, std::vector< Dictionary > > &  syn_specs 
)

Constructor for tripartite connection.

Parameters
primary_ruleName of conn rule for primary connection
third_ruleName of conn rule for third-factor connection
sourcesSource population for primary connection
targetsTarget population for primary connection
thirdThird-party population
conn_specConnection specification dictionary for tripartite bernoulli rule
syn_specsDictionary of synapse specifications for the three connections that may be created. Allowed keys are "primary", "third_in", "third_out", and for each of these the value must be a collection of dictionaries with synapse specifications as for bipartite connectivity.

◆ ~ConnBuilder()

nest::ConnBuilder::~ConnBuilder ( )

Member Function Documentation

◆ connect()

void nest::ConnBuilder::connect ( )

Connect with or without structural plasticity.

References nest::BipartiteConnBuilder::connect(), primary_builder_, and third_in_builder_.

Referenced by nest::ConnectionManager::connect(), and nest::ConnectionManager::connect_tripartite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disconnect()

void nest::ConnBuilder::disconnect ( )

Delete synapses with or without structural plasticity.

References nest::BipartiteConnBuilder::disconnect(), primary_builder_, and third_out_builder_.

Here is the call graph for this function:

Member Data Documentation

◆ primary_builder_

BipartiteConnBuilder* nest::ConnBuilder::primary_builder_
private

Referenced by connect(), disconnect(), and ~ConnBuilder().

◆ third_in_builder_

ThirdInBuilder* nest::ConnBuilder::third_in_builder_
private

Referenced by connect(), and ~ConnBuilder().

◆ third_out_builder_

ThirdOutBuilder* nest::ConnBuilder::third_out_builder_
private

Referenced by disconnect(), and ~ConnBuilder().


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