63 neuronMonitorCorePtr_ = neuronMonitorCorePtr;
67 delete neuronMonitorCorePtr_;
71 std::string funcName =
"clear()";
74 neuronMonitorCorePtr_->
clear();
82 std::string funcName =
"startRecording()";
89 std::string funcName =
"stopRecording()";
96 std::string funcName =
"setLogFile";
99 std::string fileNameLower = fileName;
100 std::transform(fileNameLower.begin(), fileNameLower.end(), fileNameLower.begin(), ::tolower);
102 if (fileNameLower ==
"null") {
106 fid = fopen(fileName.c_str(),
"wb");
110 std::string fileError =
" Double-check file permissions and make sure directory exists.";
120 std::string funcName =
"print()";
123 neuronMonitorCorePtr_->
print(meanOnly);
139 std::string funcName =
"getLastUpdated()";
147 std::string funcName =
"getVectorV()";
154 std::string funcName =
"getVectorU()";
161 std::string funcName =
"getVectorI()";
int getLastUpdated()
Returns the ...
bool isRecording()
returns recording status
void print(bool meanOnly)
prints neuron states in human-readable format
std::vector< std::vector< float > > getVectorV()
returns the Neuron state vector
long int getLastUpdated()
returns timestamp of last NeuronMonitor update
void stopRecording()
stops recording Neuron state
static void assertTrue(bool statement, errorType errorIfAssertionFails, std::string errorFunc, std::string errorMsgPrefix="", std::string errorMsgSuffix="")
simple wrapper for assert statement
bool getPersistentData()
returns status of PersistentData mode
void setPersistentData(bool persistentData)
Sets PersistentMode either on (true) or off (false)
void setLogFile(const std::string &logFileName)
std::vector< std::vector< float > > getVectorV()
returns the Neuron state vectors
std::vector< std::vector< float > > getVectorU()
NeuronMonitor(NeuronMonitorCore *neuronMonitorCorePtr)
NeuronMonitor constructor.
std::vector< std::vector< float > > getVectorI()
void setPersistentData(bool persistentData)
sets status of PersistentData mode
void setNeuronFileId(FILE *neuronFileId)
sets pointer to Neuron file
std::vector< std::vector< float > > getVectorU()
void clear()
deletes data from the neuron state vector
void startRecording()
starts recording Neuron state
std::vector< std::vector< float > > getVectorI()
void print(bool meanOnly=false)
~NeuronMonitor()
NeuronMonitor destructor.
bool getPersistentData()
Returns a flag that indicates whether PersistentMode is on (true) or off (false)