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

Public Member Functions

 Layout ()
 Constructor.
 
AllVerticesgetVertices () const
 Returns reference to Vertices.
 
virtual void setup ()
 
virtual void registerGraphProperties ()
 Register vertex properties with the GraphManager.
 
virtual void registerHistoryVariables ()
 
virtual void loadParameters ()
 Load member variables from configuration files. Registered to OperationManager as Operation::loadParameters.
 
virtual void printParameters () const
 Prints out all parameters to logging file. Registered to OperationManager as Operation::printParameters.
 
virtual void generateVertexTypeMap ()
 Creates a neurons type map.
 
virtual void initStarterMap ()
 
virtual edgeType edgType (int srcVertex, int destVertex)=0
 
virtual int getNumVertices () const
 Returns the number of vertices managed by the Layout.
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 

Public Attributes

CompleteMatrix dist2_
 Inter-neuron distance squared.
 
CompleteMatrix dist_
 The true inter-neuron distance.
 
vector< int > probedVertexList_
 Probed neurons list. // ToDo: Move this to Hdf5 recorder once its implemented in project -chris.
 
RecordableVector< vertexType > vertexTypeMap_
 The vertex type mao, (INH, EXC).
 

Protected Attributes

unique_ptr< AllVerticesvertices_
 
log4cplus::Logger fileLogger_
 
int numVertices_
 Total number of vertices in the graph.
 

Detailed Description

Definition at line 31 of file Layout.h.

Constructor & Destructor Documentation

◆ Layout()

Layout::Layout ( )

Constructor.

Definition at line 20 of file Layout.cpp.

Member Function Documentation

◆ edgType()

virtual edgeType Layout::edgType ( int srcVertex,
int destVertex )
pure virtual

Returns the type of synapse at the given coordinates

Parameters
srcVertexinteger that points to a Neuron in the type map as a source.
destVertexinteger that points to a Neuron in the type map as a destination.
Returns
type of the synapse

Implemented in Layout911, and LayoutNeuro.

◆ generateVertexTypeMap()

void Layout::generateVertexTypeMap ( )
virtual

Creates a neurons type map.

Creates a vertex type map.

Parameters
numVerticesnumber of the vertices to have in the type map.

Reimplemented in Layout911, and LayoutNeuro.

Definition at line 135 of file Layout.cpp.

◆ getNumVertices()

int Layout::getNumVertices ( ) const
virtual

Returns the number of vertices managed by the Layout.

Returns
The number of vertices managed by the Layout

Definition at line 65 of file Layout.cpp.

◆ getVertices()

AllVertices & Layout::getVertices ( ) const

Returns reference to Vertices.

Definition at line 60 of file Layout.cpp.

◆ initStarterMap()

void Layout::initStarterMap ( )
virtual

Reimplemented in LayoutNeuro.

Definition at line 141 of file Layout.cpp.

◆ loadParameters()

void Layout::loadParameters ( )
virtual

Load member variables from configuration files. Registered to OperationManager as Operation::loadParameters.

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

Reimplemented in Layout911.

Definition at line 71 of file Layout.cpp.

◆ printParameters()

void Layout::printParameters ( ) const
virtual

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

Reimplemented in Layout911, and LayoutNeuro.

Definition at line 104 of file Layout.cpp.

◆ registerGraphProperties()

void Layout::registerGraphProperties ( )
virtual

Register vertex properties with the GraphManager.

Reimplemented in Layout911, and LayoutNeuro.

Definition at line 76 of file Layout.cpp.

◆ registerHistoryVariables()

void Layout::registerHistoryVariables ( )
virtual

Definition at line 84 of file Layout.cpp.

◆ serialize()

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

Cereal serialization method.

Definition at line 91 of file Layout.h.

◆ setup()

void Layout::setup ( )
virtual

Setup the internal structure of the class Allocate memories to store all layout state.

Setup the internal structure of the class. Allocate memories to store all layout state, no sequential dependency in this method

Reimplemented in Layout911, and LayoutNeuro.

Definition at line 94 of file Layout.cpp.

Member Data Documentation

◆ dist2_

CompleteMatrix Layout::dist2_

Inter-neuron distance squared.

Definition at line 70 of file Layout.h.

◆ dist_

CompleteMatrix Layout::dist_

The true inter-neuron distance.

Definition at line 72 of file Layout.h.

◆ fileLogger_

log4cplus::Logger Layout::fileLogger_
protected

Definition at line 85 of file Layout.h.

◆ numVertices_

int Layout::numVertices_
protected

Total number of vertices in the graph.

Definition at line 87 of file Layout.h.

◆ probedVertexList_

vector<int> Layout::probedVertexList_

Probed neurons list. // ToDo: Move this to Hdf5 recorder once its implemented in project -chris.

Definition at line 75 of file Layout.h.

◆ vertexTypeMap_

RecordableVector<vertexType> Layout::vertexTypeMap_

The vertex type mao, (INH, EXC).

Definition at line 77 of file Layout.h.

◆ vertices_

unique_ptr<AllVertices> Layout::vertices_
protected

Definition at line 83 of file Layout.h.


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