Base class for representing connections. More...
#include <connection.h>
Public Member Functions | |
| Connection () | |
| Connection (const Connection< targetidentifierT, DelayTypeT > &rhs)=default | |
| Connection & | operator= (const Connection< targetidentifierT, DelayTypeT > &rhs)=default |
| std::unique_ptr< SecondaryEvent > | get_secondary_event () |
| Get a pointer to an instance of a SecondaryEvent if this connection supports secondary events. | |
| void | get_status (Dictionary &d) const |
| Get all properties of this connection and put them into a dictionary. | |
| void | set_status (const Dictionary &d, ConnectorModel &cm) |
| Set properties of this connection from the values given in dictionary. | |
| void | check_synapse_params (const Dictionary &d) const |
| Check syn_spec dictionary for parameters that are not allowed with the given connection. | |
| void | calibrate (const TimeConverter &) |
| Calibrate the delay of this connection to the desired resolution. | |
| 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 previously sent spike taking into account a new post-synaptic spike. | |
| double | get_dendritic_delay_ms () const |
| Return the proportion of the transmission delay attributed to the dendrite. | |
| long | get_dendritic_delay_steps () const |
| Return the proportion of the transmission delay attributed to the dendrite. | |
| void | set_dendritic_delay_ms (const double d) |
| Set the proportion of the transmission delay attributed to the dendrite. | |
| void | set_dendritic_delay_steps (const long d) |
| Set the proportion of the transmission delay attributed to the dendrite. | |
| void | set_axonal_delay_ms (const double d) |
| Set the proportion of the transmission delay attributed to the axon. | |
| double | get_axonal_delay_ms () const |
| Get the proportion of the transmission delay attributed to the axon. | |
| void | set_axonal_delay_steps (const long d) |
| Set the proportion of the transmission delay attributed to the axon. | |
| double | get_axonal_delay_steps () const |
| Get the proportion of the transmission delay attributed to the axon. | |
| double | get_delay_ms () const |
| Return the delay of the connection in ms. | |
| long | get_delay_steps () const |
| Return the delay of the connection in steps. | |
| void | set_delay_ms (const double d) |
| Set the delay of the connection. | |
| void | set_delay_steps (const long d) |
| Set the delay of the connection in steps. | |
| long | get_label () const |
| void | trigger_update_weight (const size_t, const std::vector< spikecounter > &, const double, const CommonSynapseProperties &) |
| Triggers an update of a synaptic weight. | |
| Node * | get_target (const size_t tid) const |
| size_t | get_rport () const |
| 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. | |
| bool | source_has_more_targets () const |
| Returns a flag denoting whether the connection has source subsequent targets. | |
| void | disable () |
| Disables the synapse. | |
| bool | is_disabled () const |
| Returns a flag denoting if the synapse is disabled. | |
Static Public Attributes | |
| static constexpr bool | requires_axonal_delay_correction = std::is_same< DelayTypeT, AxonalDendriticDelay >::value |
| static constexpr ConnectionModelProperties | properties = ConnectionModelProperties::NONE |
| static constexpr bool | supports_flush_event = false |
Protected Member Functions | |
| 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 and receptor type requested by the sender. | |
Protected Attributes | |
| targetidentifierT | target_ |
| bool | more_targets_: 1 |
| bool | disabled_: 1 |
| DelayTypeT | delay_ |
Base class for representing connections.
It provides the mandatory properties receiver port and target, as well as the functions get_status() and set_status() to read and write them. A suitable Connector containing these connections can be obtained from the template GenericConnector.
|
inline |
|
default |
|
inline |
Calibrate the delay of this connection to the desired resolution.
References delay_.
|
inlineprotected |
This function calls check_connection() on the sender to check if the receiver accepts the event type and receptor type requested by the sender.
| s | The source node |
| r | The target node |
| receptor | The ID of the requested receptor type |
| the | last spike produced by the presynaptic neuron (for STDP and maturing connections) |
References target_.
|
inline |
Check syn_spec dictionary for parameters that are not allowed with the given connection.
Will issue warning or throw error if an illegal parameter is found. The method does nothing if no illegal parameter is found.
|
inline |
Framework for STDP with predominantly axonal delays: Correct this synapse and the corresponding previously sent spike taking into account a new post-synaptic spike.
The new weight of the synapse is recorded in the correction entry.
|
inline |
Disables the synapse.
|
inline |
Get the proportion of the transmission delay attributed to the axon.
|
inline |
Get the proportion of the transmission delay attributed to the axon.
|
inline |
Return the delay of the connection in ms.
|
inline |
Return the delay of the connection in steps.
|
inline |
Return the proportion of the transmission delay attributed to the dendrite.
|
inline |
Return the proportion of the transmission delay attributed to the dendrite.
|
inline |
|
inline |
| std::unique_ptr< SecondaryEvent > nest::Connection< targetidentifierT, DelayTypeT >::get_secondary_event | ( | ) |
Get a pointer to an instance of a SecondaryEvent if this connection supports secondary events.
To prevent erronous calls of this function on primary connections, the base class implementation below just contains assert(false).
|
inline |
|
inline |
|
inline |
Returns a flag denoting if the synapse is disabled.
|
default |
|
inline |
Set the proportion of the transmission delay attributed to the axon.
|
inline |
Set the proportion of the transmission delay attributed to the axon.
|
inline |
Set the delay of the connection.
|
inline |
Set the delay of the connection in steps.
|
inline |
Set the proportion of the transmission delay attributed to the dendrite.
|
inline |
Set the proportion of the transmission delay attributed to the dendrite.
|
inline |
Sets a flag in the connection to signal that the following connection has the same source.
|
inline |
|
inline |
Returns a flag denoting whether the connection has source subsequent targets.
|
inline |
Triggers an update of a synaptic weight.
This function is needed for neuromodulated synaptic plasticity
|
protected |
Referenced by calibrate(), get_status(), and set_status().
|
protected |
|
protected |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
protected |
Referenced by nest::diffusion_connection< targetidentifierT >::check_connection(), nest::eprop_learning_signal_connection< targetidentifierT >::check_connection(), nest::eprop_learning_signal_connection_bsshslm_2020< targetidentifierT >::check_connection(), nest::gap_junction< targetidentifierT >::check_connection(), nest::rate_connection_delayed< targetidentifierT >::check_connection(), nest::rate_connection_instantaneous< targetidentifierT >::check_connection(), nest::sic_connection< targetidentifierT >::check_connection(), check_connection_(), and get_status().