Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
Connections Class Referenceabstract
Inheritance diagram for Connections:

Public Member Functions

virtual ~Connections ()=default
 Destructor.
 
AllEdgesgetEdges () const
 Returns reference to Synapses/Edges.
 
EdgeIndexMapgetEdgeIndexMap () const
 Returns a reference to the EdgeIndexMap.
 
void createEdgeIndexMap ()
 Calls Synapses to create EdgeIndexMap and stores it as a member variable.
 
virtual void setup ()=0
 Setup the internal structure of the class (allocate memories and initialize them).
 
virtual void registerGraphProperties ()
 Register edge properties with the GraphManager.
 
virtual void loadParameters ()=0
 
virtual void printParameters () const =0
 
virtual void registerHistoryVariables ()=0
 Registers history variables for recording during simulation.
 
virtual bool updateConnections ()
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
virtual void updateEdgesWeights ()
 

Protected Attributes

unique_ptr< AllEdgesedges_
 
unique_ptr< EdgeIndexMapsynapseIndexMap_
 TODO: Rename to edgeIndexMap_ since this is a base class.
 
log4cplus::Logger fileLogger_
 
log4cplus::Logger edgeLogger_
 

Detailed Description

Definition at line 38 of file Connections.h.

Constructor & Destructor Documentation

◆ Connections()

Connections::Connections ( )

Definition at line 25 of file Connections.cpp.

Member Function Documentation

◆ createEdgeIndexMap()

void Connections::createEdgeIndexMap ( )

Calls Synapses to create EdgeIndexMap and stores it as a member variable.

Definition at line 74 of file Connections.cpp.

◆ getEdgeIndexMap()

EdgeIndexMap & Connections::getEdgeIndexMap ( ) const

Returns a reference to the EdgeIndexMap.

Definition at line 61 of file Connections.cpp.

◆ getEdges()

AllEdges & Connections::getEdges ( ) const

Returns reference to Synapses/Edges.

Definition at line 56 of file Connections.cpp.

◆ loadParameters()

virtual void Connections::loadParameters ( )
pure virtual

Load member variables from configuration file. Registered to OperationManager as Operations::op::loadParameters

Implemented in Connections911, ConnGrowth, and ConnStatic.

◆ printParameters()

virtual void Connections::printParameters ( ) const
pure virtual

Prints out all parameters to the logging file. Registered to OperationManager as Operation::printParameters

Implemented in Connections911, ConnGrowth, and ConnStatic.

◆ registerGraphProperties()

void Connections::registerGraphProperties ( )
virtual

Register edge properties with the GraphManager.

Reimplemented in ConnStatic.

Definition at line 66 of file Connections.cpp.

◆ registerHistoryVariables()

virtual void Connections::registerHistoryVariables ( )
pure virtual

Registers history variables for recording during simulation.

Implemented in Connections911, ConnGrowth, and ConnStatic.

◆ serialize()

template<class Archive >
void Connections::serialize ( Archive & archive)

Cereal serialization method.

TODO: Rename to synapseIndexMap since this is a base class Cereal serialization method

Definition at line 112 of file Connections.h.

◆ setup()

virtual void Connections::setup ( )
pure virtual

Setup the internal structure of the class (allocate memories and initialize them).

Implemented in Connections911, ConnGrowth, and ConnStatic.

◆ updateConnections()

bool Connections::updateConnections ( )
virtual

Update the connections status in every epoch.

Returns
true if successful, false otherwise.

Reimplemented in Connections911, and ConnGrowth.

Definition at line 89 of file Connections.cpp.

◆ updateEdgesWeights()

void Connections::updateEdgesWeights ( )
virtual

Update the weight of the edges in the simulation. Note: Platform Dependent.

Reimplemented in ConnGrowth.

Definition at line 104 of file Connections.cpp.

Member Data Documentation

◆ edgeLogger_

log4cplus::Logger Connections::edgeLogger_
protected

Definition at line 107 of file Connections.h.

◆ edges_

unique_ptr<AllEdges> Connections::edges_
protected

Definition at line 102 of file Connections.h.

◆ fileLogger_

log4cplus::Logger Connections::fileLogger_
protected

Definition at line 106 of file Connections.h.

◆ synapseIndexMap_

unique_ptr<EdgeIndexMap> Connections::synapseIndexMap_
protected

TODO: Rename to edgeIndexMap_ since this is a base class.

Definition at line 104 of file Connections.h.


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