Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <backend.hpp>
Public Member Functions | |
void | run (NetworkBase &network, Real duration=0.0) const |
virtual std::unordered_set< const NeuronType * > | supported_neuron_types () const =0 |
virtual std::string | name () const =0 |
virtual | ~Backend () |
Protected Member Functions | |
virtual void | do_run (NetworkBase &network, Real duration) const =0 |
The Backend class is an abstract base class which provides the facilities for network execution.
|
virtual |
Destructor of the backend class.
|
protectedpure virtual |
Abstract method which has to be implemented by the backend.
Implemented in cypress::PyNN, and cypress::ToJson.
|
pure virtual |
Returns the canonical name of the backend.
Implemented in cypress::PowerManagementBackend, cypress::PyNN, cypress::NMPI, cypress::GeNN, cypress::NEST, and cypress::ToJson.
void cypress::Backend::run | ( | NetworkBase & | network, |
Real | duration = 0.0 |
||
) | const |
Simulates the given spiking neural network for the given duration.
network | is the network that should be simulated. The simulation result will be written to the network instance. |
duration | is the duration for which the network should be simulated. |
|
pure virtual |
Returns a set of neuron types which are supported by this backend. Trying to execute a network with other neurons than the ones specified in the result of this function will result in an exception.
Implemented in cypress::PyNN, cypress::NMPI, cypress::PowerManagementBackend, cypress::GeNN, cypress::NEST, and cypress::ToJson.