CARLsim  5.0.0
CARLsim: a GPU-accelerated SNN simulator
GroupMonitorCore Class Reference

GroupMonitor private core implementation. More...

#include <group_monitor_core.h>

Public Member Functions

 GroupMonitorCore (SNN *snn, int monitorId, int grpId)
 constructor (called by CARLsim::setGroupMonitor) More...
 
 ~GroupMonitorCore ()
 destructor, cleans up all the memory upon object deletion More...
 
void clear ()
 deletes the data vector More...
 
std::vector< float > getDataVector ()
 get the group data More...
 
FILE * getGroupFileId ()
 returns a pointer to the group data file More...
 
int getGrpId ()
 returns the group ID More...
 
int getGrpNumNeurons ()
 returns number of neurons in the group More...
 
int getLastUpdated ()
 returns timestamp of last GroupMonitor update More...
 
int getMonitorId ()
 returns the GroupMonitor ID More...
 
std::vector< int > getPeakTimeVector ()
 get the timestamps for peak values More...
 
std::vector< float > getPeakValueVector ()
 get the peak values of group data
More...
 
bool getPersistentData ()
 returns status of PersistentData mode
More...
 
int getRecordingLastStartTime ()
 returns the timestamp of the last startRecording in ms More...
 
int getRecordingStartTime ()
 retunrs the timestamp of the first startRecording in ms More...
 
int getRecordingStopTime ()
 returns the timestamp of stopRecording More...
 
int getRecordingTotalTime ()
 returns the total recorded time in ms More...
 
std::vector< int > getSortedPeakTimeVector ()
 get the sorted timestamps for peak values More...
 
std::vector< float > getSortedPeakValueVector ()
 get the sorted peak values of group data More...
 
std::vector< int > getTimeVector ()
 get the timestamps for group data More...
 
bool isRecording ()
 returns recording status More...
 
void pushData (int time, float data)
 inserts group data (time, value) into the vectors More...
 
void setGroupFileId (FILE *groupFileId)
 sets pointer to group data file More...
 
void setLastUpdated (unsigned int lastUpdate)
 sets timestamp of last GroupMonitor update More...
 
void setPersistentData (bool persistentData)
 sets status of PersistentData mode More...
 
void startRecording ()
 starts recording group data More...
 
void stopRecording ()
 stops recording group data More...
 

Detailed Description

See also
GroupMonitor

Definition at line 64 of file group_monitor_core.h.

Constructor & Destructor Documentation

◆ GroupMonitorCore()

GroupMonitorCore ( SNN snn,
int  monitorId,
int  grpId 
)

Definition at line 57 of file group_monitor_core.cpp.

◆ ~GroupMonitorCore()

Definition at line 89 of file group_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 98 of file group_monitor_core.cpp.

◆ getDataVector()

std::vector< float > getDataVector ( )

Definition at line 118 of file group_monitor_core.cpp.

◆ getGroupFileId()

FILE* getGroupFileId ( )
inline

Definition at line 138 of file group_monitor_core.h.

◆ getGrpId()

int getGrpId ( )
inline

Definition at line 76 of file group_monitor_core.h.

◆ getGrpNumNeurons()

int getGrpNumNeurons ( )
inline

Definition at line 79 of file group_monitor_core.h.

◆ getLastUpdated()

int getLastUpdated ( )
inline

Definition at line 144 of file group_monitor_core.h.

◆ getMonitorId()

int getMonitorId ( )
inline

Definition at line 82 of file group_monitor_core.h.

◆ getPeakTimeVector()

std::vector< int > getPeakTimeVector ( )

Definition at line 126 of file group_monitor_core.cpp.

◆ getPeakValueVector()

std::vector< float > getPeakValueVector ( )

Definition at line 153 of file group_monitor_core.cpp.

◆ getPersistentData()

bool getPersistentData ( )
inline

Definition at line 85 of file group_monitor_core.h.

◆ getRecordingLastStartTime()

int getRecordingLastStartTime ( )
inline

Definition at line 94 of file group_monitor_core.h.

◆ getRecordingStartTime()

int getRecordingStartTime ( )
inline

Definition at line 91 of file group_monitor_core.h.

◆ getRecordingStopTime()

int getRecordingStopTime ( )
inline

Definition at line 97 of file group_monitor_core.h.

◆ getRecordingTotalTime()

int getRecordingTotalTime ( )
inline

Definition at line 88 of file group_monitor_core.h.

◆ getSortedPeakTimeVector()

std::vector< int > getSortedPeakTimeVector ( )

Definition at line 138 of file group_monitor_core.cpp.

◆ getSortedPeakValueVector()

std::vector< float > getSortedPeakValueVector ( )

Definition at line 165 of file group_monitor_core.cpp.

◆ getTimeVector()

std::vector< int > getTimeVector ( )

Definition at line 122 of file group_monitor_core.cpp.

◆ isRecording()

bool isRecording ( )
inline

Definition at line 100 of file group_monitor_core.h.

◆ pushData()

void pushData ( int  time,
float  data 
)

Definition at line 111 of file group_monitor_core.cpp.

◆ setGroupFileId()

void setGroupFileId ( FILE *  groupFileId)

Definition at line 223 of file group_monitor_core.cpp.

◆ setLastUpdated()

void setLastUpdated ( unsigned int  lastUpdate)
inline

Definition at line 147 of file group_monitor_core.h.

◆ setPersistentData()

void setPersistentData ( bool  persistentData)
inline

Definition at line 106 of file group_monitor_core.h.

◆ startRecording()

void startRecording ( )

Definition at line 180 of file group_monitor_core.cpp.

◆ stopRecording()

void stopRecording ( )

Definition at line 207 of file group_monitor_core.cpp.


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