test_tracing_node.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_tracing_node.h
22  * Author: Kappel
23  *
24  * Created on November 9, 2016, 5:03 PM
25  */
26 
27 #ifndef TEST_TRACING_NODE_H
28 #define TEST_TRACING_NODE_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  {
45  return double(time_step + id);
46  };
47 
48  virtual size_t get_num_traces() const
49  {
50  return 5;
51  };
52 
53  virtual void check(nest::delay time_step, TracingNode* node);
54 };
55 
56 }
57 
58 #endif
Test class for TracingNode.
Definition: test_tracing_node.h:38
virtual void check(nest::delay time_step, TracingNode *node)
Definition: test_tracing_node.cpp:45
TestTracingNode()
Definition: test_tracing_node.cpp:37
Base class to all nodes that record traces.
Definition: tracing_node.h:52
Base class to all tests.
Definition: spore_test_base.h:43
Global namespace holding all classes of the SPORE NEST module.
Definition: circular_buffer.h:31