51 #ifndef _GROUP_MON_CORE_H_ 52 #define _GROUP_MON_CORE_H_ 120 void pushData(
int time,
float data);
174 void setLastUpdated(
unsigned int lastUpdate) { grpMonLastUpdated_ = lastUpdate; }
181 void writeGroupFileHeader();
184 bool needToWriteFileHeader_;
193 int groupFileSignature_;
194 float groupFileVersion_;
197 std::vector<int> timeVector_;
198 std::vector<float> dataVector_;
199 std::vector<float> data4Vector_[4];
208 int grpMonLastUpdated_;
211 bool persistentData_;
std::vector< float > getDataVector()
get the group data
int getRecordingLastStartTime()
returns the timestamp of the last startRecording in ms
static const int ALL_MODE
int getGrpId()
returns the group ID
std::vector< int > getSortedPeakTimeVector()
get the sorted timestamps for peak values
bool isRecording()
returns recording status
~GroupMonitorCore()
destructor, cleans up all the memory upon object deletion
int getRecordingTotalTime()
returns the total recorded time in ms
int getLastUpdated()
returns timestamp of last GroupMonitor update
std::vector< int > getTimeVector()
get the timestamps for group data
std::vector< float > getPeakValueVector()
get the peak values of group data
void setGroupFileId(FILE *groupFileId)
sets pointer to group data file
void pushData(int time, float data)
inserts group data (time, value) into the vectors , if monitor is in DA_MODE
void setPersistentData(bool persistentData)
sets status of PersistentData mode
int getRecordingStopTime()
returns the timestamp of stopRecording
void setLastUpdated(unsigned int lastUpdate)
sets timestamp of last GroupMonitor update
int getMonitorId()
returns the GroupMonitor ID
void startRecording()
starts recording group data
std::vector< float > getSortedPeakValueVector()
get the sorted peak values of group data
void clear()
deletes the data vector
int getRecordingStartTime()
retunrs the timestamp of the first startRecording in ms
Contains all of CARLsim's core functionality.
GroupMonitorCore(SNN *snn, int monitorId, int grpId, int mode=DA_MODE)
constructor (called by CARLsim::setGroupMonitor)
void stopRecording()
stops recording group data
std::vector< int > getPeakTimeVector()
get the timestamps for peak values
GroupMonitor private core implementation.
bool getPersistentData()
returns status of PersistentData mode
FILE * getGroupFileId()
returns a pointer to the group data file
int getGrpNumNeurons()
returns number of neurons in the group