23#ifndef CONT_DELAY_SYNAPSE_IMPL_H
24#define CONT_DELAY_SYNAPSE_IMPL_H
37template <
typename target
identifierT >
41 , delay_offset_( 0.0 )
45template <
typename target
identifierT >
49 ConnectionBase::get_status( d );
56template <
typename target
identifierT >
60 ConnectionBase::set_status( d, cm );
73 const double frac_delay = std::modf( delay / h, &int_delay );
75 if ( frac_delay == 0 )
83 const long lowerbound =
static_cast< long >( int_delay );
85 set_delay_steps( lowerbound + 1 );
86 delay_offset_ = h * ( 1.0 - frac_delay );
91template <
typename target
identifierT >
99 "The delay will be rounded to the next multiple of the time step. "
100 "To use a more precise time delay it needs to be defined within "
101 "the synapse, e.g. with CopyModel()." );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
bool known(const std::string &key) const
Check whether there exists a value with specified key in the dictionary.
Definition dictionary.h:677
DelayChecker & get_delay_checker()
Returns the delay checker for the current thread.
Definition connection_manager.cpp:207
Base class for representing connections.
Definition connection.h:110
Definition connector_model.h:69
void assert_valid_delay_ms(double)
Raise exception if delay value in milliseconds is invalid.
Definition delay_checker.cpp:149
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
Definition nest_time.h:135
static Time get_resolution()
Definition nest_time.h:325
static long delay_ms_to_steps(double ms)
Definition nest_time.h:535
double get_ms() const
Definition nest_time.h:490
void check_synapse_params(const Dictionary &d) const
Issue warning if delay is given in syn_spec.
Definition cont_delay_synapse_impl.h:93
cont_delay_synapse()
Default Constructor.
Definition cont_delay_synapse_impl.h:38
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition cont_delay_synapse_impl.h:58
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition cont_delay_synapse_impl.h:47
ConnectionManager connection_manager
Definition kernel_manager.h:239
#define LOG(s, fctn, msg)
Definition logging.h:29
const std::string delay("delay")
const std::string weight("weight")
const std::string size_of("sizeof")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311
Definition nest_time.h:246