#include <delay_checker.h>
Public Member Functions | |
| DelayChecker () | |
| DelayChecker (const DelayChecker &cr) | |
| const Time & | get_min_delay () const |
| const Time & | get_max_delay () const |
| void | freeze_delay_update () |
| This method freezes the min/ max delay update in SetDefaults of connections method. | |
| void | enable_delay_update () |
| This method enables the min/ max delay update in SetDefaults of connections method. | |
| void | assert_valid_delay_ms (double) |
| Raise exception if delay value in milliseconds is invalid. | |
| void | assert_two_valid_delays_steps (long, long) |
| Raise exception if either of the two delays in steps is invalid. | |
| bool | get_user_set_delay_extrema () const |
| void | calibrate (const TimeConverter &tc) |
| void | get_status (Dictionary &d) const |
| void | set_status (const Dictionary &d) |
Private Member Functions | |
| void | set_min_max_delay_ (const double, const double) |
Private Attributes | |
| Time | min_delay_ |
| Minimal delay of all created synapses. | |
| Time | max_delay_ |
| Maximal delay of all created synapses. | |
| bool | user_set_delay_extrema_ |
| bool | freeze_delay_update_ |
| nest::DelayChecker::DelayChecker | ( | ) |
References freeze_delay_update_, max_delay_, min_delay_, and user_set_delay_extrema_.
Referenced by DelayChecker().
| nest::DelayChecker::DelayChecker | ( | const DelayChecker & | cr | ) |
References DelayChecker(), freeze_delay_update_, max_delay_, min_delay_, and user_set_delay_extrema_.
| void nest::DelayChecker::assert_two_valid_delays_steps | ( | long | new_delay1, |
| long | new_delay2 ) |
Raise exception if either of the two delays in steps is invalid.
References nest::KernelManager::connection_manager, nest::Time::delay_steps_to_ms(), freeze_delay_update_, nest::ConnectionManager::get_max_delay(), nest::ConnectionManager::get_min_delay(), nest::Time::get_resolution(), nest::kernel(), max_delay_, min_delay_, and user_set_delay_extrema_.
Referenced by nest::cont_delay_synapse< targetidentifierT >::set_status().
| void nest::DelayChecker::assert_valid_delay_ms | ( | double | requested_new_delay | ) |
Raise exception if delay value in milliseconds is invalid.
References nest::KernelManager::connection_manager, nest::Time::delay_ms_to_steps(), nest::Time::delay_steps_to_ms(), freeze_delay_update_, nest::ConnectionManager::get_max_delay(), nest::ConnectionManager::get_min_delay(), nest::Time::get_resolution(), nest::kernel(), max_delay_, min_delay_, and user_set_delay_extrema_.
Referenced by nest::GenericConnectorModel< ConnectionT >::add_connection(), nest::AxonalDendriticDelay::set_status(), nest::cont_delay_synapse< targetidentifierT >::set_status(), nest::TotalDelay::set_status(), and nest::GenericConnectorModel< ConnectionT >::used_default_delay().
| void nest::DelayChecker::calibrate | ( | const TimeConverter & | tc | ) |
References nest::TimeConverter::from_old_tics(), max_delay_, min_delay_, nest::Time::neg_inf(), nest::Time::pos_inf(), and set_min_max_delay_().
|
inline |
This method enables the min/ max delay update in SetDefaults of connections method.
This is used, when the delay of default connections in the ConnectorModel is set: we do not know, whether new connections with this delay will ever be created.
References freeze_delay_update_.
Referenced by nest::GenericConnectorModel< ConnectionT >::set_status().
|
inline |
This method freezes the min/ max delay update in SetDefaults of connections method.
This is used, when the delay of default connections in the ConnectorModel is set: we do not know, whether new connections with this delay will ever be created.
References freeze_delay_update_.
Referenced by nest::GenericConnectorModel< ConnectionT >::set_status().
|
inline |
|
inline |
| void nest::DelayChecker::get_status | ( | Dictionary & | d | ) | const |
References get_max_delay(), get_min_delay(), nest::Time::get_ms(), nest::names::max_delay(), and nest::names::min_delay().
|
inline |
References user_set_delay_extrema_.
|
private |
References nest::Time::get_ms(), nest::Time::get_resolution(), nest::Time::get_steps(), nest::INFO, LOG, max_delay_, and min_delay_.
Referenced by calibrate(), and set_status().
| void nest::DelayChecker::set_status | ( | const Dictionary & | d | ) |
References nest::kernel(), nest::names::max_delay(), nest::names::min_delay(), set_min_max_delay_(), and user_set_delay_extrema_.
|
private |
|
private |
Maximal delay of all created synapses.
Referenced by assert_two_valid_delays_steps(), assert_valid_delay_ms(), calibrate(), DelayChecker(), DelayChecker(), get_max_delay(), and set_min_max_delay_().
|
private |
Minimal delay of all created synapses.
Referenced by assert_two_valid_delays_steps(), assert_valid_delay_ms(), calibrate(), DelayChecker(), DelayChecker(), get_min_delay(), and set_min_max_delay_().
|
private |
Flag indicating if the user set the delay extrema.
Referenced by assert_two_valid_delays_steps(), assert_valid_delay_ms(), DelayChecker(), DelayChecker(), get_user_set_delay_extrema(), and set_status().