CARLsim  4.1.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 63 of file group_monitor_core.h.

Constructor & Destructor Documentation

◆ GroupMonitorCore()

GroupMonitorCore ( SNN snn,
int  monitorId,
int  grpId 
)

Definition at line 56 of file group_monitor_core.cpp.

◆ ~GroupMonitorCore()

Definition at line 88 of file group_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 97 of file group_monitor_core.cpp.

◆ getDataVector()

std::vector< float > getDataVector ( )

Definition at line 117 of file group_monitor_core.cpp.

◆ getGroupFileId()

FILE* getGroupFileId ( )
inline

Definition at line 137 of file group_monitor_core.h.

◆ getGrpId()

int getGrpId ( )
inline

Definition at line 75 of file group_monitor_core.h.

◆ getGrpNumNeurons()

int getGrpNumNeurons ( )
inline

Definition at line 78 of file group_monitor_core.h.

◆ getLastUpdated()

int getLastUpdated ( )
inline

Definition at line 143 of file group_monitor_core.h.

◆ getMonitorId()

int getMonitorId ( )
inline

Definition at line 81 of file group_monitor_core.h.

◆ getPeakTimeVector()

std::vector< int > getPeakTimeVector ( )

Definition at line 125 of file group_monitor_core.cpp.

◆ getPeakValueVector()

std::vector< float > getPeakValueVector ( )

Definition at line 152 of file group_monitor_core.cpp.

◆ getPersistentData()

bool getPersistentData ( )
inline

Definition at line 84 of file group_monitor_core.h.

◆ getRecordingLastStartTime()

int getRecordingLastStartTime ( )
inline

Definition at line 93 of file group_monitor_core.h.

◆ getRecordingStartTime()

int getRecordingStartTime ( )
inline

Definition at line 90 of file group_monitor_core.h.

◆ getRecordingStopTime()

int getRecordingStopTime ( )
inline

Definition at line 96 of file group_monitor_core.h.

◆ getRecordingTotalTime()

int getRecordingTotalTime ( )
inline

Definition at line 87 of file group_monitor_core.h.

◆ getSortedPeakTimeVector()

std::vector< int > getSortedPeakTimeVector ( )

Definition at line 137 of file group_monitor_core.cpp.

◆ getSortedPeakValueVector()

std::vector< float > getSortedPeakValueVector ( )

Definition at line 164 of file group_monitor_core.cpp.

◆ getTimeVector()

std::vector< int > getTimeVector ( )

Definition at line 121 of file group_monitor_core.cpp.

◆ isRecording()

bool isRecording ( )
inline

Definition at line 99 of file group_monitor_core.h.

◆ pushData()

void pushData ( int  time,
float  data 
)

Definition at line 110 of file group_monitor_core.cpp.

◆ setGroupFileId()

void setGroupFileId ( FILE *  groupFileId)

Definition at line 222 of file group_monitor_core.cpp.

◆ setLastUpdated()

void setLastUpdated ( unsigned int  lastUpdate)
inline

Definition at line 146 of file group_monitor_core.h.

◆ setPersistentData()

void setPersistentData ( bool  persistentData)
inline

Definition at line 105 of file group_monitor_core.h.

◆ startRecording()

void startRecording ( )

Definition at line 179 of file group_monitor_core.cpp.

◆ stopRecording()

void stopRecording ( )

Definition at line 206 of file group_monitor_core.cpp.


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