51 #ifndef _NEURON_MON_CORE_H_ 52 #define _NEURON_MON_CORE_H_ 125 void print(
bool meanOnly);
132 bool needToWriteFileHeader_;
140 int neuronFileSignature_;
141 float neuronFileVersion_;
144 std::vector<std::vector<float> > vectorV_;
145 std::vector<std::vector<float> > vectorU_;
146 std::vector<std::vector<float> > vectorI_;
150 long int startTimeLast_;
155 long int neuronMonLastUpdated_;
158 bool persistentData_;
161 bool userHasBeenWarned_;
void pushNeuronState(int neurId, float V, float U, float I)
inserts a (time,neurId) tupel into the D Neuron State vector
FILE * getNeuronFileId()
returns a pointer to the neuron state file
~NeuronMonitorCore()
destructor, cleans up all the memory upon object deletion
bool isRecording()
returns recording status
NeuronMonitorCore(SNN *snn, int monitorId, int grpId)
constructor (called by CARLsim::setNeuronMonitor)
void print(bool meanOnly)
prints neuron states in human-readable format
long int getBufferSize()
returns the approximate size of the state vectors in bytes
void writeNeuronFileHeader()
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
bool getPersistentData()
returns status of PersistentData mode
std::vector< std::vector< float > > getVectorU()
std::vector< std::vector< float > > getVectorI()
void setPersistentData(bool persistentData)
sets status of PersistentData mode
void setNeuronFileId(FILE *neuronFileId)
sets pointer to Neuron file
void clear()
deletes data from the neuron state vector
Contains all of CARLsim's core functionality.
void startRecording()
starts recording Neuron state
bool isBufferBig()
returns true if state buffers are close to maxAllowedBufferSize
void setLastUpdated(long int lastUpdate)
sets timestamp of last NeuronMonitor update
long int getAccumTime()
returns the total accumulated time