111template <
typename target
identifierT,
typename DelayTypeT >
182 const double t_spike_critical_interval_end,
183 const double t_post_spike,
192 return delay_.get_dendritic_delay_ms();
201 return delay_.get_dendritic_delay_steps();
210 delay_.set_dendritic_delay_ms( d );
219 delay_.set_dendritic_delay_steps( d );
228 delay_.set_axonal_delay_ms( d );
237 return delay_.get_axonal_delay_ms();
246 delay_.set_axonal_delay_steps( d );
255 return delay_.get_axonal_delay_steps();
264 return delay_.get_delay_ms();
273 return delay_.get_delay_steps();
291 delay_.set_delay_steps( d );
306 const std::vector< spikecounter >&,
313 return target_.get_target_ptr( tid );
381 const size_t receptor_type );
401template <
typename target
identifierT,
typename DelayTypeT >
404template <
typename target
identifierT,
typename DelayTypeT >
410 const size_t receptor_type )
414 source.send_test_event( dummy_target, receptor_type, syn_id,
true );
419 target_.set_rport( source.send_test_event( target, receptor_type, syn_id,
false ) );
424 if ( not( source.sends_signal() & target.receives_signal() ) )
426 throw IllegalConnection(
"Source and target neuron are not compatible (e.g., spiking vs binary neuron)." );
432template <
typename target
identifierT,
typename DelayTypeT >
440template <
typename target
identifierT,
typename DelayTypeT >
444 delay_.set_status( d, cm );
448template <
typename target
identifierT,
typename DelayTypeT >
454template <
typename target
identifierT,
typename DelayTypeT >
461template <
typename target
identifierT,
typename DelayTypeT >
469 throw IllegalConnection(
"Connection does not support correction in case of STDP with predominantly axonal delays." );
472template <
typename target
identifierT,
typename DelayTypeT >
475 const std::vector< spikecounter >&,
479 throw IllegalConnection(
"Connection does not support updates that are triggered by a volume transmitter." );
482template <
typename target
identifierT,
typename DelayTypeT >
483std::unique_ptr< SecondaryEvent >
486 assert(
false and
"Non-primary connections have to provide get_secondary_event()" );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
Base class for dummy nodes used in connection testing.
Definition connection.h:70
void update(const Time &, long, long) override
Advance the state of the node in time through the given interval.
Definition connection.h:76
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition connection.h:72
void init_buffers_() override
Configure persistent internal data structures.
Definition connection.h:92
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition connection.h:84
void init_state_() override
Configure state variables depending on runtime information.
Definition connection.h:88
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition connection.h:80
Base class for representing connections.
Definition connection.h:113
double get_delay_ms() const
Return the delay of the connection in ms.
Definition connection.h:262
bool source_has_more_targets() const
Returns a flag denoting whether the connection has source subsequent targets.
Definition connection.h:340
void set_delay_ms(const double d)
Set the delay of the connection.
Definition connection.h:280
void set_axonal_delay_ms(const double d)
Set the proportion of the transmission delay attributed to the axon.
Definition connection.h:226
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition connection.h:434
void set_dendritic_delay_ms(const double d)
Set the proportion of the transmission delay attributed to the dendrite.
Definition connection.h:208
static constexpr bool supports_flush_event
Definition connection.h:122
void correct_weight_stdp_ax_delay(const size_t tid, CorrectionEntrySTDPAxDelay &entry, const double t_spike_critical_interval_end, const double t_post_spike, const CommonSynapseProperties &)
Framework for STDP with predominantly axonal delays: Correct this synapse and the corresponding previ...
Definition connection.h:463
size_t get_rport() const
Definition connection.h:316
void set_delay_steps(const long d)
Set the delay of the connection in steps.
Definition connection.h:289
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:271
void trigger_update_weight(const size_t, const std::vector< spikecounter > &, const double, const CommonSynapseProperties &)
Triggers an update of a synaptic weight.
Definition connection.h:474
void set_source_has_more_targets(const bool more_targets)
Sets a flag in the connection to signal that the following connection has the same source.
Definition connection.h:328
TotalDelay delay_
Definition connection.h:386
Connection(const Connection< targetidentifierT, DelayTypeT > &rhs)=default
void disable()
Disables the synapse.
Definition connection.h:351
Connection & operator=(const Connection< targetidentifierT, DelayTypeT > &rhs)=default
double get_axonal_delay_ms() const
Get the proportion of the transmission delay attributed to the axon.
Definition connection.h:235
long get_label() const
Definition connection.h:295
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition connection.h:442
void calibrate(const TimeConverter &)
Calibrate the delay of this connection to the desired resolution.
Definition connection.h:456
void set_dendritic_delay_steps(const long d)
Set the proportion of the transmission delay attributed to the dendrite.
Definition connection.h:217
void check_synapse_params(const Dictionary &d) const
Check syn_spec dictionary for parameters that are not allowed with the given connection.
Definition connection.h:450
static constexpr ConnectionModelProperties properties
Definition connection.h:119
long get_dendritic_delay_steps() const
Return the proportion of the transmission delay attributed to the dendrite.
Definition connection.h:199
static constexpr bool requires_axonal_delay_correction
Definition connection.h:116
Connection()
Definition connection.h:124
Node * get_target(const size_t tid) const
Definition connection.h:311
void set_axonal_delay_steps(const long d)
Set the proportion of the transmission delay attributed to the axon.
Definition connection.h:244
double get_axonal_delay_steps() const
Get the proportion of the transmission delay attributed to the axon.
Definition connection.h:253
double get_dendritic_delay_ms() const
Return the proportion of the transmission delay attributed to the dendrite.
Definition connection.h:190
bool disabled_
Definition connection.h:385
bool more_targets_
Definition connection.h:384
bool is_disabled() const
Returns a flag denoting if the synapse is disabled.
Definition connection.h:362
targetidentifierT target_
Definition connection.h:383
std::unique_ptr< SecondaryEvent > get_secondary_event()
Get a pointer to an instance of a SecondaryEvent if this connection supports secondary events.
Definition connection.h:484
void check_connection_(Node &dummy_target, Node &source, Node &target, const synindex syn_id, const size_t receptor_type)
This function calls check_connection() on the sender to check if the receiver accepts the event type ...
Definition connection.h:406
Definition connector_model.h:69
Information on a received pre-synaptic spike which is buffered by an AxonalDelayArchivingNode,...
Definition axonal_delay_archiving_node.h:46
To be thrown if a connection is not possible.
Definition exceptions.h:490
Base class for all NEST network objects.
Definition node.h:99
Node()
Definition node.cpp:36
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
StaticAssert< sizeof(Connection< TargetIdentifierPtrRport, TotalDelay >)==24 >::success success_connection_target_ptr_size
Definition connection.h:392
StaticAssert< sizeof(Connection< TargetIdentifierIndex, TotalDelay >)==8 >::success success_connection_target_idx_size
Definition connection.h:394
static const long UNLABELED_CONNECTION
Connections are unlabeled by default.
Definition connection_label.h:38
ConnectionModelProperties
Definition connector_model.h:49
@ NONE
Definition connector_model.h:50
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121
Declarations for base class Node.
Compile time assertions.
Definition static_assert.h:47