Cypress  1.0
C++ Spiking Neural Network Simulation Framework
nest.hpp
Go to the documentation of this file.
1 /*
2  * Cypress -- C++ Spiking Neural Network Simulation Framework
3  * Copyright (C) 2016 Andreas Stöckel
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
29 #pragma once
30 
31 #ifndef CYPRESS_BACKEND_NEST_HPP
32 #define CYPRESS_BACKEND_NEST_HPP
33 
34 #include <stdexcept>
35 #include <string>
36 #include <vector>
37 
39 #include <cypress/core/backend.hpp>
40 #include <cypress/util/json.hpp>
41 
42 namespace cypress {
48 class NEST : public Backend {
49 private:
50  sli::Params m_params;
51 
52  void do_run(NetworkBase &network, Real duration) const override;
53 
54 public:
58  class NESTSimulatorNotFound : public std::runtime_error {
59  public:
60  using std::runtime_error::runtime_error;
61  };
62 
75  NEST(const Json &setup = Json());
76 
80  ~NEST() override = default;
81 
85  std::unordered_set<const NeuronType *> supported_neuron_types()
86  const override;
87 
91  std::string name() const override { return "nest"; }
92 
96  static bool installed();
97 
102  static std::string version();
103 };
104 }
105 
106 #endif /* CYPRESS_BACKEND_NEST_HPP */
static std::string version()
Definition: backend.hpp:50
double Real
Definition: types.hpp:56
Definition: sli.hpp:40
nlohmann::json Json
Definition: json.hpp:27
~NEST() override=default
static bool installed()
Definition: network_base.hpp:116
NEST(const Json &setup=Json())
Definition: brainscales_lib.hpp:39
Definition: nest.hpp:48
std::string name() const override
Definition: nest.hpp:91
std::unordered_set< const NeuronType * > supported_neuron_types() const override