Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
Abstract base class for all Monitor objects. More...
#include <Monitor.h>
Public Member Functions | |
virtual void | flush () |
Flush to file. More... | |
Monitor (std::string filename, std::string default_extension="dat") | |
Standard constructor with file name. More... | |
Monitor () | |
Constructor which does not open a text file for output. More... | |
std::string | generate_filename (std::string name_hint="") |
Generates a default filename from the device ID. More... | |
virtual | ~Monitor () |
Standard destructor. More... | |
Public Member Functions inherited from auryn::Device | |
Device () | |
Standard constructor. More... | |
void | set_name (std::string s) |
Set device name. More... | |
std::string | get_name () |
Get device name. More... | |
int | get_id () |
Get numeric device id. More... | |
virtual | ~Device () |
Standard destructor. More... | |
virtual void | evolve () |
virtual void | execute () |
Public Attributes | |
bool | active |
Standard active switch. More... | |
Public Attributes inherited from auryn::Device | |
bool | active |
Standard active switch. More... | |
Protected Member Functions | |
virtual void | open_output_file (std::string filename) |
virtual void | virtual_serialize (boost::archive::binary_oarchive &ar, const unsigned int version) |
virtual void | virtual_serialize (boost::archive::binary_iarchive &ar, const unsigned int version) |
Protected Member Functions inherited from auryn::Device | |
void | init () |
Standard initializer to be called by the constructor. More... | |
Protected Attributes | |
std::ofstream | outfile |
std::string | fname |
std::string | default_file_extension |
Protected Attributes inherited from auryn::Device | |
std::string | device_name |
Identifying name for device. More... | |
Abstract base class for all Monitor objects.
This Class constitutes the base class for all Monitors in Auryn. Per default it openes a single text file for writing (outfile) named by the name supplied in the constructor. Classes inheriting from Monitor have to implement the method execute. Unlike Checker objects execute returns void. Use Checker if you need the Monitor to be able to interrupt a run.
Monitor::Monitor | ( | std::string | filename, |
std::string | default_extension = "dat" |
||
) |
Standard constructor with file name.
Monitor::Monitor | ( | ) |
Constructor which does not open a text file for output.
|
virtual |
std::string Monitor::generate_filename | ( | std::string | name_hint = "" | ) |
Generates a default filename from the device ID.
|
protectedvirtual |
Opens a text outputfile – for binary files redefine this function in derived class.
|
protectedvirtual |
Functions necesssary for serialization and loading saving to netstate files.
Reimplemented from auryn::Device.
Reimplemented in auryn::BurstRateMonitor, auryn::PatternMonitor, and auryn::PopulationRateMonitor.
|
protectedvirtual |
Reimplemented from auryn::Device.
Reimplemented in auryn::BurstRateMonitor, auryn::PatternMonitor, and auryn::PopulationRateMonitor.
bool auryn::Monitor::active |
Standard active switch.
|
protected |
Default extension
|
protected |
Stores output filename
|
protected |
Output filestream to be used in the derived classes