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

GroupMonitor private core implementation. More...

#include <group_monitor_core.h>

Public Types

enum  transmitter_t { _DA, _5HT, _ACh, _NE }
 

Public Member Functions

 GroupMonitorCore (SNN *snn, int monitorId, int grpId, int mode=DA_MODE)
 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...
 
std::vector< float > getDataVector (transmitter_t transmitter)
 LN get the group data for a specific transmitter (. 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 isInAllMode ()
 
bool isRecording ()
 returns recording status More...
 
void pushData (int time, float data)
 inserts group data (time, value) into the vectors , if monitor is in DA_MODE More...
 
void pushData (int time, float _DA, float _5HT, float _ACh, float _NE)
 if the monitor is in ALL_MODE, all transmitter must be set at once 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...
 

Static Public Attributes

static const int ALL_MODE = 1
 
static const int DA_MODE = 0
 

Detailed Description

See also
GroupMonitor

Definition at line 66 of file group_monitor_core.h.

Member Enumeration Documentation

◆ transmitter_t

Enumerator
_DA 
_5HT 
_ACh 
_NE 

Definition at line 140 of file group_monitor_core.h.

Constructor & Destructor Documentation

◆ GroupMonitorCore()

GroupMonitorCore ( SNN snn,
int  monitorId,
int  grpId,
int  mode = DA_MODE 
)

Definition at line 58 of file group_monitor_core.cpp.

Here is the call graph for this function:

◆ ~GroupMonitorCore()

Definition at line 93 of file group_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 102 of file group_monitor_core.cpp.

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

◆ getDataVector() [1/2]

std::vector< float > getDataVector ( )

Definition at line 132 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ getDataVector() [2/2]

std::vector< float > getDataVector ( transmitter_t  transmitter)

Definition at line 136 of file group_monitor_core.cpp.

◆ getGroupFileId()

FILE* getGroupFileId ( )
inline

Definition at line 165 of file group_monitor_core.h.

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

◆ getGrpId()

int getGrpId ( )
inline

Definition at line 91 of file group_monitor_core.h.

◆ getGrpNumNeurons()

int getGrpNumNeurons ( )
inline

Definition at line 94 of file group_monitor_core.h.

◆ getLastUpdated()

int getLastUpdated ( )
inline

Definition at line 171 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getMonitorId()

int getMonitorId ( )
inline

Definition at line 97 of file group_monitor_core.h.

◆ getPeakTimeVector()

std::vector< int > getPeakTimeVector ( )

Definition at line 144 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ getPeakValueVector()

std::vector< float > getPeakValueVector ( )

Definition at line 171 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ getPersistentData()

bool getPersistentData ( )
inline

Definition at line 100 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getRecordingLastStartTime()

int getRecordingLastStartTime ( )
inline

Definition at line 109 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getRecordingStartTime()

int getRecordingStartTime ( )
inline

Definition at line 106 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getRecordingStopTime()

int getRecordingStopTime ( )
inline

Definition at line 112 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getRecordingTotalTime()

int getRecordingTotalTime ( )
inline

Definition at line 103 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ getSortedPeakTimeVector()

std::vector< int > getSortedPeakTimeVector ( )

Definition at line 156 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ getSortedPeakValueVector()

std::vector< float > getSortedPeakValueVector ( )

Definition at line 183 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ getTimeVector()

std::vector< int > getTimeVector ( )

Definition at line 140 of file group_monitor_core.cpp.

Here is the caller graph for this function:

◆ isInAllMode()

bool isInAllMode ( )
inline

Definition at line 117 of file group_monitor_core.h.

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

◆ isRecording()

bool isRecording ( )
inline

Definition at line 115 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ pushData() [1/2]

void pushData ( int  time,
float  data 
)

Definition at line 115 of file group_monitor_core.cpp.

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

◆ pushData() [2/2]

void pushData ( int  time,
float  _DA,
float  _5HT,
float  _ACh,
float  _NE 
)

Definition at line 122 of file group_monitor_core.cpp.

Here is the call graph for this function:

◆ setGroupFileId()

void setGroupFileId ( FILE *  groupFileId)

Definition at line 241 of file group_monitor_core.cpp.

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

◆ setLastUpdated()

void setLastUpdated ( unsigned int  lastUpdate)
inline

Definition at line 174 of file group_monitor_core.h.

Here is the caller graph for this function:

◆ setPersistentData()

void setPersistentData ( bool  persistentData)
inline

Definition at line 127 of file group_monitor_core.h.

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

◆ startRecording()

void startRecording ( )

Definition at line 198 of file group_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 225 of file group_monitor_core.cpp.

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

Member Data Documentation

◆ ALL_MODE

const int ALL_MODE = 1
static

Definition at line 79 of file group_monitor_core.h.

◆ DA_MODE

const int DA_MODE = 0
static

Definition at line 78 of file group_monitor_core.h.


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