23#ifndef CONT_DELAY_SYNAPSE_IMPL_H
24#define CONT_DELAY_SYNAPSE_IMPL_H
37template <
typename target
identifierT >
45template <
typename target
identifierT >
56template <
typename target
identifierT >
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 );
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:214
void get_status(Dictionary &d) const
void set_status(const Dictionary &d, ConnectorModel &cm)
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:208
static Time get_resolution()
Definition nest_time.h:325
static long delay_ms_to_steps(double ms)
Definition nest_time.h:539
double get_ms() const
Definition nest_time.h:490
double weight_
synaptic weight
Definition cont_delay_synapse.h:209
double get_delay_ms() const
Return the delay of the connection in ms.
Definition connection.h:262
void check_synapse_params(const Dictionary &d) const
Issue warning if delay is given in syn_spec.
Definition cont_delay_synapse_impl.h:93
void set_delay_steps(const long d)
Set the delay of the connection in steps.
Definition connection.h:289
cont_delay_synapse()
Default Constructor.
Definition cont_delay_synapse_impl.h:38
Connection< targetidentifierT, TotalDelay > ConnectionBase
Definition cont_delay_synapse.h:89
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
double delay_offset_
Definition cont_delay_synapse.h:210
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
@ WARNING
Definition logging.h:47