Homogeneous connector, contains synapses of one particular type (syn_id_). More...
#include <connector_base.h>
Public Member Functions | |
| Connector (const synindex syn_id) | |
| ~Connector () override | |
| synindex | get_syn_id () const override |
| Return syn_id_ of the synapse type of this Connector (size_t in list of synapse prototypes). | |
| size_t | size () const override |
| Return the number of connections in this Connector. | |
| void | get_synapse_status (const size_t tid, const size_t lcid, Dictionary &dict) const override |
| Write status of the connection at position lcid to the dictionary dict. | |
| void | set_synapse_status (const size_t lcid, const Dictionary &dict, ConnectorModel &cm) override |
| Set status of the connection at position lcid according to the dictionary dict. | |
| void | push_back (const ConnectionT &c) |
| void | push_back (ConnectionT &&c) |
| void | get_connection (const size_t source_node_id, const size_t target_node_id, const size_t tid, const size_t lcid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add ConnectionID with given source_node_id and lcid to conns. | |
| void | get_connection_with_specified_targets (const size_t source_node_id, const NodeCollectionPTR &target, const size_t tid, const size_t lcid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add Connections with given source_node_id and lcid to conns. | |
| void | get_all_connections (const size_t source_node_id, const size_t target_node_id, const size_t tid, const long synapse_label, std::deque< ConnectionID > &conns) const override |
| Add ConnectionIDs with given source_node_id to conns, looping over all lcids. | |
| void | get_source_lcids (const size_t tid, const size_t target_node_id, std::vector< size_t > &source_lcids) const override |
| For a given target_node_id add lcids of all connections with matching node ID of target to source_lcids. | |
| void | get_target_node_ids (const size_t tid, const size_t start_lcid, const std::string &post_synaptic_element, std::vector< size_t > &target_node_ids) const override |
| For a given start_lcid add node IDs of all targets that belong to the same source to target_node_ids. | |
| size_t | get_target_node_id (const size_t tid, const unsigned int lcid) const override |
| For a given lcid return the node ID of the target of the connection. | |
| void | send_to_all (const size_t tid, const std::vector< ConnectorModel * > &cm, Event &e) override |
| Send the event e to all connections of this Connector. | |
| size_t | send (const size_t tid, const size_t lcid, const std::vector< ConnectorModel * > &cm, Event &e) override |
| Send the event e to the connection at position lcid. | |
| void | correct_weight_stdp_ax_delay (const size_t tid, CorrectionEntrySTDPAxDelay &entry, const double t_spike_critical_interval_end, const double t_post_spike) override |
| On occurrence of a post-synaptic spike, correct the weight update of a previous pre-synaptic spike which was processed before the current post-synaptic spike, but had to be processed after it, if it was known at this point in time. | |
| void | send_weight_event (const size_t tid, const unsigned int lcid, Event &e, const CommonSynapseProperties &cp) override |
| void | trigger_update_weight (const long vt_node_id, const size_t tid, const std::vector< spikecounter > &dopa_spikes, const double t_trig, const std::vector< ConnectorModel * > &cm) override |
| Update weights of dopamine modulated STDP connections. | |
| void | sort_connections (BlockVector< Source > &sources) override |
| Sort connections according to source node IDs. | |
| void | set_source_has_more_targets (const size_t lcid, const bool has_more_targets) override |
| Set a flag in the connection indicating whether the following connection belongs to the same source. | |
| size_t | find_first_target (const size_t tid, const size_t start_lcid, const size_t target_node_id) const override |
| Return lcid of the first connection after start_lcid (inclusive) where the node_id of the target matches target_node_id. | |
| size_t | find_enabled_connection (const size_t tid, const size_t syn_id, const size_t source_node_id, const size_t target_node_id, const SourceTable &source_table) const override |
| Return lcid of first connection matching source and target node id and that is not disabled. | |
| void | disable_connection (const size_t lcid) override |
| Disable the transfer of events through the connection at position lcid. | |
| void | remove_disabled_connections (const size_t first_disabled_index) override |
| Remove disabled connections from the connector. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| void | disable_connection (const size_t lcid) |
| Disable the transfer of events through the connection at position lcid. | |
| ~Connector () | |
| ~Connector () | |
| Public Member Functions inherited from nest::ConnectorBase | |
| virtual | ~ConnectorBase () |
Private Member Functions | |
| void | register_axonal_delay_correction_required_ (const ConnectionT &c) |
| Fold a newly added or modified connection into axonal_delay_correction_required_ and the kernel-wide predominant axonal delay flag. | |
Private Attributes | |
| BlockVector< ConnectionT > | C_ |
| const synindex | syn_id_ |
| bool | axonal_delay_correction_required_ |
| Whether any connection held here can ever require a retrospective correction. | |
Homogeneous connector, contains synapses of one particular type (syn_id_).
|
inlineexplicit |
References axonal_delay_correction_required_, and syn_id_.
Referenced by disable_connection(), and ~Connector().
|
inlineoverride |
| nest::Connector< eprop_synapse< TargetIdentifierIndex > >::~Connector | ( | ) |
| nest::Connector< eprop_synapse< TargetIdentifierIndex > >::~Connector | ( | ) |
|
overridevirtual |
On occurrence of a post-synaptic spike, correct the weight update of a previous pre-synaptic spike which was processed before the current post-synaptic spike, but had to be processed after it, if it was known at this point in time.
The new weight of the synapse is recorded in the correction entry.
| tid | The thread storing the synapse. |
| entry | Correction entry of the pre-synaptic spike which needs a correction. It identifies the synapse (synapse type and local connection index) and holds the data required for the correction. |
| t_spike_critical_interval_end | End of the critical interval of the pre-synaptic spike which needs a correction. |
| t_post_spike | Time of the current post-synaptic spike. |
Implements nest::ConnectorBase.
References C_, nest::ModelManager::get_connection_models(), nest::CorrectionEntrySTDPAxDelay::get_lcid(), nest::CorrectionEntrySTDPAxDelay::get_syn_id(), nest::kernel(), and nest::KernelManager::model_manager.
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References C_, Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References C_, Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References C_, Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References C_, Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References Connector(), and disable_connection().
|
virtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References Connector(), and disable_connection().
|
inlineoverridevirtual |
Disable the transfer of events through the connection at position lcid.
Implements nest::ConnectorBase.
References C_.
Referenced by disable_connection().
|
inlineoverridevirtual |
Return lcid of first connection matching source and target node id and that is not disabled.
Intended for use with unsorted (uncompressed) connections.
Implements nest::ConnectorBase.
References C_, and nest::SourceTable::get_node_id().
|
inlineoverridevirtual |
Return lcid of the first connection after start_lcid (inclusive) where the node_id of the target matches target_node_id.
If there are no matches, the function returns invalid_index.
Implements nest::ConnectorBase.
References C_.
|
inlineoverridevirtual |
Add ConnectionIDs with given source_node_id to conns, looping over all lcids.
If target_node_id is given, only add connection if target_node_id matches the node ID of the target of the connection.
Implements nest::ConnectorBase.
References C_, and get_connection().
|
inlineoverridevirtual |
Add ConnectionID with given source_node_id and lcid to conns.
If target_node_id is given, only add connection if target_node_id matches the node_id of the target of the connection.
Implements nest::ConnectorBase.
References C_, syn_id_, and nest::UNLABELED_CONNECTION.
Referenced by get_all_connections().
|
inlineoverridevirtual |
Add Connections with given source_node_id and lcid to conns.
If target is given, only add connection if target contains the node ID of the target of the connection.
Implements nest::ConnectorBase.
References C_, syn_id_, and nest::UNLABELED_CONNECTION.
|
inlineoverridevirtual |
For a given target_node_id add lcids of all connections with matching node ID of target to source_lcids.
Implements nest::ConnectorBase.
References C_.
|
inlineoverridevirtual |
Return syn_id_ of the synapse type of this Connector (size_t in list of synapse prototypes).
Implements nest::ConnectorBase.
References syn_id_.
|
inlineoverridevirtual |
Write status of the connection at position lcid to the dictionary dict.
Implements nest::ConnectorBase.
References C_, and nest::names::target().
|
inlineoverridevirtual |
For a given lcid return the node ID of the target of the connection.
Implements nest::ConnectorBase.
References C_.
|
inlineoverridevirtual |
For a given start_lcid add node IDs of all targets that belong to the same source to target_node_ids.
Implements nest::ConnectorBase.
References C_.
|
inline |
References C_, and register_axonal_delay_correction_required_().
|
inline |
References C_, and register_axonal_delay_correction_required_().
Referenced by nest::GenericConnectorModel< ConnectionT >::add_connection().
|
private |
Fold a newly added or modified connection into axonal_delay_correction_required_ and the kernel-wide predominant axonal delay flag.
Implemented in connector_base_impl.h.
References axonal_delay_correction_required_, nest::KernelManager::connection_manager, nest::kernel(), and nest::ConnectionManager::register_predominant_axonal_delay().
Referenced by push_back(), push_back(), and set_synapse_status().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Send the event e to the connection at position lcid.
Return bool indicating whether the following connection belongs to the same source.
Implements nest::ConnectorBase.
References axonal_delay_correction_required_, C_, send_weight_event(), and syn_id_.
|
inlineoverridevirtual |
Send the event e to all connections of this Connector.
Implements nest::ConnectorBase.
|
overridevirtual |
Implements nest::ConnectorBase.
References nest::CommonSynapseProperties::get_weight_recorder(), nest::kernel(), nest::Event::set_delay_steps(), nest::Event::set_port(), nest::Event::set_receiver(), nest::WeightRecorderEvent::set_receiver_node_id(), nest::Event::set_rport(), nest::Event::set_sender_node_id(), nest::Event::set_stamp(), nest::Event::set_weight(), and syn_id_.
Referenced by send().
|
inlineoverridevirtual |
Set a flag in the connection indicating whether the following connection belongs to the same source.
Implements nest::ConnectorBase.
References C_.
|
inlineoverridevirtual |
Set status of the connection at position lcid according to the dictionary dict.
Implements nest::ConnectorBase.
References C_, and register_axonal_delay_correction_required_().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Sort connections according to source node IDs.
Implements nest::ConnectorBase.
References C_, and nest::sort().
|
inlineoverridevirtual |
Update weights of dopamine modulated STDP connections.
Implements nest::ConnectorBase.
|
private |
Whether any connection held here can ever require a retrospective correction.
Only a connection whose axonal delay is at least its dendritic delay can be reached by a correction, and only such a connection needs the receiving neuron to be able to find its way back to it. Keeping this as a flag on the Connector rather than testing each connection keeps the check out of the per-connection send loop.
Referenced by Connector(), register_axonal_delay_correction_required_(), and send().
|
private |
Referenced by correct_weight_stdp_ax_delay(), disable_connection(), disable_connection(), find_enabled_connection(), find_first_target(), get_all_connections(), get_connection(), get_connection_with_specified_targets(), get_source_lcids(), get_synapse_status(), get_target_node_id(), get_target_node_ids(), push_back(), push_back(), remove_disabled_connections(), send(), send_to_all(), set_source_has_more_targets(), set_synapse_status(), size(), sort_connections(), trigger_update_weight(), ~Connector(), and ~Connector().
|
private |