Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
Xml911Recorder Class Reference
Inheritance diagram for Xml911Recorder:
Collaboration diagram for Xml911Recorder:

Public Member Functions

 Xml911Recorder ()=default
 The constructor and destructor.
 
virtual void compileHistories () override
 
virtual void saveSimData () override
 
virtual void printParameters () override
 
- Public Member Functions inherited from XmlRecorder
virtual void init () override
 Initialize data in the newly loadeded xml file.
 
virtual void term () override
 Terminate process.
 
virtual void registerVariable (const string &varName, RecordableBase &recordVar, UpdatedType variableType) override
 Registers a single instance of a class derived from RecordableBase.
 
virtual void registerVariable (const string &varName, vector< RecordableBase * > &recordVars, UpdatedType variableType) override
 Register a vector of instance of a class derived from RecordableBase.
 
 XmlRecorder (const string &fileName)
 constructor only for unit test
 
const string & getVariableName (int numIndex) const
 
const string & getDataType (int numIndex) const
 
RecordableBasegetSingleVariable (int numIndex)
 
vector< multipleTypes > & getHistory (int numIndex)
 Accessor method for variablesHistory_ (only included during unit tests)
 
string getToXML (const string &name, vector< multipleTypes > &singleVariableBuffer_, const string &basicType)
 get an output stream from toXml method (only included during unit tests)
 
- Public Member Functions inherited from Recorder

Static Public Member Functions

static RecorderCreate ()
 
- Static Public Member Functions inherited from XmlRecorder
static RecorderCreate ()
 

Additional Inherited Members

- Public Types inherited from Recorder
enum  UpdatedType { CONSTANT , DYNAMIC }
 The recorded variable Type/Updated frequency. More...
 
- Protected Member Functions inherited from XmlRecorder
string toXML (const string &name, vector< multipleTypes > &singleVariableBuffer_, const string &basicType) const
 Retrieves values of a vector of variant and outputs them to a xml file.
 
void getStarterNeuronMatrix (VectorMatrix &matrix, const vector< bool > &starterMap)
 
- Protected Member Functions inherited from Recorder
- Protected Attributes inherited from XmlRecorder
vector< singleVariableInfovariableTable_
 List of registered variables for recording.
 
ofstream resultOut_
 a file stream for xml output
 
- Protected Attributes inherited from Recorder
string resultFileName_
 File path to the file that the results will be printed to.
 
log4cplus::Logger fileLogger_
 Loggers used to print to using log4cplus logging macros, prints to Results/Debug/logging.txt.
 

Detailed Description

Definition at line 19 of file Xml911Recorder.h.

Member Function Documentation

◆ compileHistories()

void Xml911Recorder::compileHistories ( )
overridevirtual

Compile history information in every epoch

Parameters
[in]verticesThe entire list of vertices.

Reimplemented from XmlRecorder.

Definition at line 21 of file Xml911Recorder.cpp.

◆ Create()

static Recorder * Xml911Recorder::Create ( )
inlinestatic

Definition at line 26 of file Xml911Recorder.h.

◆ printParameters()

void Xml911Recorder::printParameters ( )
overridevirtual

Prints out all parameters to logging file. Registered to OperationManager as Operation::printParameters

Reimplemented from XmlRecorder.

Definition at line 109 of file Xml911Recorder.cpp.

◆ saveSimData()

void Xml911Recorder::saveSimData ( )
overridevirtual

Writes simulation results to an output destination.

Parameters
verticesthe Vertex list to search from.

Reimplemented from XmlRecorder.

Definition at line 28 of file Xml911Recorder.cpp.


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