test_pulse_trace.h
1 /*
2  * This file is part of SPORE.
3  *
4  * Copyright (C) 2016, the SPORE team (see AUTHORS).
5  *
6  * SPORE is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * SPORE is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SPORE. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * For more information see: https://github.com/IGITUGraz/spore-nest-module
20  *
21  * File: test_pulse_trace.h
22  * Author: Kappel
23  *
24  * Created on April 4, 2017, 6:23 PM
25  */
26 
27 #ifndef TEST_PULSE_TRACE_H
28 #define TEST_PULSE_TRACE_H
29 
30 #include "spore_test_base.h"
31 
32 namespace spore
33 {
34 
39 {
40 public:
42 
43  virtual double get_trace(nest::delay time_step, TracingNode::trace_id id);
44  virtual void set_status(const DictionaryDatum& d);
45 
46  virtual size_t get_num_traces() const
47  {
48  return 1;
49  };
50 
51 private:
52  std::vector< double > spike_times_;
53  double offset_;
54  double weight_;
55 };
56 
57 }
58 
59 #endif
virtual void set_status(const DictionaryDatum &d)
Definition: test_pulse_trace.cpp:72
Base class to all tests.
Definition: spore_test_base.h:43
virtual double get_trace(nest::delay time_step, TracingNode::trace_id id)
Definition: test_pulse_trace.cpp:52
Test class to generate a pulsed trace for testing synapse models.
Definition: test_pulse_trace.h:38
Global namespace holding all classes of the SPORE NEST module.
Definition: circular_buffer.h:31
TestPulseTrace()
Definition: test_pulse_trace.cpp:42