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 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

VectorMatrix xloc_
 Store neuron i's x location.
 
VectorMatrix yloc_
 Store neuron i's y location.
 
CompleteMatrix dist2_
 Inter-neuron distance squared.
 
CompleteMatrix dist_
 The true inter-neuron distance.
 
vector< int > probedNeuronList_
 Probed neurons list. // ToDo: Move this to Hdf5 recorder once its implemented in project -chris.
 
vector< vertexType > vertexTypeMap_
 The vertex type mao, (INH, EXC).
 
vector< bool > starterMap_
 The starter existence map (T/F).
 
BGSIZE numEndogenouslyActiveNeurons_
 Number of endogenously active neurons.
 

Protected Attributes

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

Detailed Description

Definition at line 30 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 166 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 61 of file Layout.cpp.

◆ getVertices()

AllVertices & Layout::getVertices ( ) const

Returns reference to Vertices.

Definition at line 56 of file Layout.cpp.

◆ initStarterMap()

void Layout::initStarterMap ( )
virtual

Populates the starter map. Selects num_endogenously_active_neurons excitory neurons and converts them into starter neurons.

Populates the starter map. Selects num_endogenously_active_neurons excitory neurons and converts them into starter neurons.

Parameters
numVerticesnumber of vertices to have in the map.

Reimplemented in LayoutNeuro.

Definition at line 175 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 67 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 135 of file Layout.cpp.

◆ registerGraphProperties()

void Layout::registerGraphProperties ( )
virtual

Register vertex properties with the GraphManager.

Reimplemented in Layout911, and LayoutNeuro.

Definition at line 72 of file Layout.cpp.

◆ serialize()

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

Cereal serialization method.

Definition at line 99 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.

Definition at line 82 of file Layout.cpp.

Member Data Documentation

◆ dist2_

CompleteMatrix Layout::dist2_

Inter-neuron distance squared.

Definition at line 74 of file Layout.h.

◆ dist_

CompleteMatrix Layout::dist_

The true inter-neuron distance.

Definition at line 76 of file Layout.h.

◆ fileLogger_

log4cplus::Logger Layout::fileLogger_
protected

Definition at line 93 of file Layout.h.

◆ numEndogenouslyActiveNeurons_

BGSIZE Layout::numEndogenouslyActiveNeurons_

Number of endogenously active neurons.

Definition at line 85 of file Layout.h.

◆ numVertices_

int Layout::numVertices_
protected

Total number of vertices in the graph.

Definition at line 95 of file Layout.h.

◆ probedNeuronList_

vector<int> Layout::probedNeuronList_

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

Definition at line 79 of file Layout.h.

◆ starterMap_

vector<bool> Layout::starterMap_

The starter existence map (T/F).

Definition at line 83 of file Layout.h.

◆ vertexTypeMap_

vector<vertexType> Layout::vertexTypeMap_

The vertex type mao, (INH, EXC).

Definition at line 81 of file Layout.h.

◆ vertices_

unique_ptr<AllVertices> Layout::vertices_
protected

Definition at line 91 of file Layout.h.

◆ xloc_

VectorMatrix Layout::xloc_

Store neuron i's x location.

Definition at line 70 of file Layout.h.

◆ yloc_

VectorMatrix Layout::yloc_

Store neuron i's y location.

Definition at line 72 of file Layout.h.


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