CARLsim  6.1.0
CARLsim: a GPU-accelerated SNN simulator
NeuronMonitorCore Class Reference

#include <neuron_monitor_core.h>

Public Member Functions

 NeuronMonitorCore (SNN *snn, int monitorId, int grpId)
 constructor (called by CARLsim::setNeuronMonitor) More...
 
 ~NeuronMonitorCore ()
 destructor, cleans up all the memory upon object deletion More...
 
void clear ()
 deletes data from the neuron state vector More...
 
long int getAccumTime ()
 returns the total accumulated time More...
 
long int getBufferSize ()
 returns the approximate size of the state vectors in bytes More...
 
long int getLastUpdated ()
 returns timestamp of last NeuronMonitor update More...
 
FILE * getNeuronFileId ()
 returns a pointer to the neuron state file More...
 
bool getPersistentData ()
 returns status of PersistentData mode More...
 
std::vector< std::vector< float > > getVectorI ()
 
std::vector< std::vector< float > > getVectorU ()
 
std::vector< std::vector< float > > getVectorV ()
 returns the Neuron state vector More...
 
bool isBufferBig ()
 returns true if state buffers are close to maxAllowedBufferSize More...
 
bool isRecording ()
 returns recording status More...
 
void print (bool meanOnly)
 prints neuron states in human-readable format More...
 
void pushNeuronState (int neurId, float V, float U, float I)
 inserts a (time,neurId) tupel into the D Neuron State vector More...
 
void setLastUpdated (long int lastUpdate)
 sets timestamp of last NeuronMonitor update More...
 
void setNeuronFileId (FILE *neuronFileId)
 sets pointer to Neuron file More...
 
void setPersistentData (bool persistentData)
 sets status of PersistentData mode More...
 
void startRecording ()
 starts recording Neuron state More...
 
void stopRecording ()
 stops recording Neuron state More...
 
void writeNeuronFileHeader ()
 

Detailed Description

Definition at line 61 of file neuron_monitor_core.h.

Constructor & Destructor Documentation

◆ NeuronMonitorCore()

NeuronMonitorCore ( SNN snn,
int  monitorId,
int  grpId 
)

Definition at line 58 of file neuron_monitor_core.cpp.

Here is the call graph for this function:

◆ ~NeuronMonitorCore()

Definition at line 95 of file neuron_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 102 of file neuron_monitor_core.cpp.

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

◆ getAccumTime()

long int getAccumTime ( )

Definition at line 193 of file neuron_monitor_core.cpp.

Here is the caller graph for this function:

◆ getBufferSize()

long int getBufferSize ( )

Definition at line 253 of file neuron_monitor_core.cpp.

Here is the caller graph for this function:

◆ getLastUpdated()

long int getLastUpdated ( )
inline

Definition at line 108 of file neuron_monitor_core.h.

Here is the caller graph for this function:

◆ getNeuronFileId()

FILE* getNeuronFileId ( )
inline

Definition at line 93 of file neuron_monitor_core.h.

Here is the caller graph for this function:

◆ getPersistentData()

bool getPersistentData ( )
inline

Definition at line 99 of file neuron_monitor_core.h.

Here is the caller graph for this function:

◆ getVectorI()

std::vector< std::vector< float > > getVectorI ( )

Definition at line 288 of file neuron_monitor_core.cpp.

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

◆ getVectorU()

std::vector< std::vector< float > > getVectorU ( )

Definition at line 283 of file neuron_monitor_core.cpp.

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

◆ getVectorV()

std::vector< std::vector< float > > getVectorV ( )

Definition at line 278 of file neuron_monitor_core.cpp.

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

◆ isBufferBig()

bool isBufferBig ( )

Definition at line 263 of file neuron_monitor_core.cpp.

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

◆ isRecording()

bool isRecording ( )
inline

Definition at line 75 of file neuron_monitor_core.h.

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

◆ print()

void print ( bool  meanOnly)

Definition at line 293 of file neuron_monitor_core.cpp.

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

◆ pushNeuronState()

void pushNeuronState ( int  neurId,
float  V,
float  U,
float  I 
)

Definition at line 119 of file neuron_monitor_core.cpp.

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

◆ setLastUpdated()

void setLastUpdated ( long int  lastUpdate)
inline

Definition at line 111 of file neuron_monitor_core.h.

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

◆ setNeuronFileId()

void setNeuronFileId ( FILE *  neuronFileId)

Definition at line 197 of file neuron_monitor_core.cpp.

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

◆ setPersistentData()

void setPersistentData ( bool  persistentData)
inline

Definition at line 102 of file neuron_monitor_core.h.

Here is the caller graph for this function:

◆ startRecording()

void startRecording ( )

Definition at line 145 of file neuron_monitor_core.cpp.

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

◆ stopRecording()

void stopRecording ( )

Definition at line 175 of file neuron_monitor_core.cpp.

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

◆ writeNeuronFileHeader()

void writeNeuronFileHeader ( )

Definition at line 219 of file neuron_monitor_core.cpp.

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

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