CARLsim  4.1.0
CARLsim: a GPU-accelerated SNN simulator
ConnectionGenerator Class Referenceabstract

#include <callback.h>

Public Member Functions

virtual ~ConnectionGenerator ()
 
virtual void connect (CARLsim *s, int srcGrpId, int i, int destGrpId, int j, float &weight, float &maxWt, float &delay, bool &connected)=0
 specifies which synaptic connections (per group, per neuron, per synapse) should be made More...
 

Detailed Description

The user can choose from a set of primitive pre-defined connection topologies, or he can implement a topology of their choice by using a callback mechanism. In the callback mechanism, the simulator calls a method on a user-defined class in order to determine whether a connection should be made or not. The user simply needs to define a method that specifies whether a connection should be made between a pre-synaptic neuron and a post-synaptic neuron, and the simulator will automatically call the method for all possible pre- and post-synaptic pairs. The user can then specify the connection's delay, initial weight, maximum weight, and whether or not it is plastic.

Definition at line 90 of file callback.h.

Constructor & Destructor Documentation

◆ ~ConnectionGenerator()

virtual ~ConnectionGenerator ( )
inlinevirtual

Definition at line 93 of file callback.h.

Member Function Documentation

◆ connect()

virtual void connect ( CARLsim s,
int  srcGrpId,
int  i,
int  destGrpId,
int  j,
float &  weight,
float &  maxWt,
float &  delay,
bool &  connected 
)
pure virtual
Attention
The virtual method should never be called directly

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