NEST main@caf0ae8
 
Loading...
Searching...
No Matches
delay_checker.h
Go to the documentation of this file.
1/*
2 * delay_checker.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef DELAY_CHECKER_H
24#define DELAY_CHECKER_H
25
26// Includes from nestkernel:
27#include "nest_time.h"
28
29#include "dictionary.h"
30
31
32namespace nest
33{
34class TimeConverter;
35
37{
38public:
40 DelayChecker( const DelayChecker& cr );
41
42 const Time& get_min_delay() const;
43
44 const Time& get_max_delay() const;
45
55
65
71 void assert_valid_delay_ms( double );
72
83 void assert_two_valid_delays_steps( long, long );
84
85 bool get_user_set_delay_extrema() const;
86
87 void calibrate( const TimeConverter& tc );
88
89 void get_status( Dictionary& d ) const;
90 void set_status( const Dictionary& d );
91
92private:
98
99 void set_min_max_delay_( const double, const double );
100};
101
102inline const Time&
104{
105 return min_delay_;
106}
107
108inline const Time&
110{
111 return max_delay_;
112}
113
114inline bool
119
120inline void
125
126inline void
131}
132
133
134#endif /* DELAY_CHECKER_H */
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Definition delay_checker.h:37
DelayChecker()
Definition delay_checker.cpp:36
bool get_user_set_delay_extrema() const
Definition delay_checker.h:115
void assert_valid_delay_ms(double)
Raise exception if delay value in milliseconds is invalid.
Definition delay_checker.cpp:149
void calibrate(const TimeConverter &tc)
Definition delay_checker.cpp:55
void set_status(const Dictionary &d)
Definition delay_checker.cpp:121
void enable_delay_update()
This method enables the min/ max delay update in SetDefaults of connections method.
Definition delay_checker.h:127
Time max_delay_
Maximal delay of all created synapses.
Definition delay_checker.h:94
bool freeze_delay_update_
Definition delay_checker.h:97
void get_status(Dictionary &d) const
Definition delay_checker.cpp:114
bool user_set_delay_extrema_
Flag indicating if the user set the delay extrema.
Definition delay_checker.h:95
void freeze_delay_update()
This method freezes the min/ max delay update in SetDefaults of connections method.
Definition delay_checker.h:121
const Time & get_max_delay() const
Definition delay_checker.h:109
Time min_delay_
Minimal delay of all created synapses.
Definition delay_checker.h:93
void set_min_max_delay_(const double, const double)
Definition delay_checker.cpp:75
const Time & get_min_delay() const
Definition delay_checker.h:103
void assert_two_valid_delays_steps(long, long)
Raise exception if either of the two delays in steps is invalid.
Definition delay_checker.cpp:212
Class to convert times from one representation to another.
Definition nest_timeconverter.h:42
Definition nest_time.h:135
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33