Base class for representing connections. More...
#include <connection.h>
Public Member Functions | |
| Connection () | |
| Connection (const Connection< targetidentifierT > &rhs)=default | |
| Connection & | operator= (const Connection< targetidentifierT > &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. | |
| double | get_delay () 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 (const double delay) |
| Set the delay of the connection. | |
| void | set_delay_steps (const long delay) |
| Set the delay of the connection in steps. | |
| void | set_syn_id (synindex syn_id) |
| Set the synapse id of the connection. | |
| synindex | get_syn_id () const |
| Get the synapse id of the connection. | |
| 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 connection. | |
| bool | is_disabled () const |
| Returns a flag denoting if the connection is disabled. | |
Static Public Attributes | |
| 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 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_ |
| SynIdDelay | syn_id_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 nest::TimeConverter::from_old_steps(), and nest::Time::get_steps().
|
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) |
Referenced by nest::bernoulli_synapse< targetidentifierT >::check_connection(), nest::clopath_synapse< targetidentifierT >::check_connection(), nest::cont_delay_synapse< targetidentifierT >::check_connection(), nest::ht_synapse< targetidentifierT >::check_connection(), nest::jonke_synapse< targetidentifierT >::check_connection(), nest::quantal_stp_synapse< targetidentifierT >::check_connection(), nest::static_synapse< targetidentifierT >::check_connection(), nest::static_synapse_hom_w< targetidentifierT >::check_connection(), nest::stdp_facetshw_synapse_hom< targetidentifierT >::check_connection(), nest::stdp_nn_pre_centered_synapse< targetidentifierT >::check_connection(), nest::stdp_nn_restr_synapse< targetidentifierT >::check_connection(), nest::stdp_nn_symm_synapse< targetidentifierT >::check_connection(), nest::stdp_pl_synapse_hom< targetidentifierT >::check_connection(), nest::stdp_synapse< targetidentifierT >::check_connection(), nest::stdp_synapse_hom< targetidentifierT >::check_connection(), nest::stdp_triplet_synapse< targetidentifierT >::check_connection(), nest::tsodyks2_synapse< targetidentifierT >::check_connection(), nest::tsodyks_synapse< targetidentifierT >::check_connection(), nest::tsodyks_synapse_hom< targetidentifierT >::check_connection(), nest::urbanczik_synapse< targetidentifierT >::check_connection(), nest::vogels_sprekeler_synapse< targetidentifierT >::check_connection(), and nest::stdp_dopamine_synapse< targetidentifierT >::check_connection().
|
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 |
Disables the connection.
References nest::SynIdDelay::disable(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Return the delay of the connection in ms.
References nest::SynIdDelay::get_delay_ms(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Return the delay of the connection in steps.
References nest::SynIdDelay::delay, and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
References nest::UNLABELED_CONNECTION.
|
inline |
References nest::Connection< targetidentifierT >::target_.
| std::unique_ptr< SecondaryEvent > nest::Connection< targetidentifierT >::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 |
Get all properties of this connection and put them into a dictionary.
References nest::names::delay().
|
inline |
Get the synapse id of the connection.
References nest::SynIdDelay::syn_id, and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
References nest::Connection< targetidentifierT >::target_.
|
inline |
Returns a flag denoting if the connection is disabled.
References nest::SynIdDelay::is_disabled(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
default |
|
inline |
Set the delay of the connection.
References nest::SynIdDelay::set_delay_ms(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Set the delay of the connection in steps.
References nest::SynIdDelay::delay, and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Sets a flag in the connection to signal that the following connection has the same source.
References nest::SynIdDelay::set_source_has_more_targets(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Set properties of this connection from the values given in dictionary.
References nest::DelayChecker::assert_valid_delay_ms(), nest::KernelManager::connection_manager, nest::names::delay(), nest::ConnectionManager::get_delay_checker(), and nest::kernel().
|
inline |
Set the synapse id of the connection.
References nest::SynIdDelay::syn_id, and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Returns a flag denoting whether the connection has source subsequent targets.
References nest::SynIdDelay::source_has_more_targets(), and nest::Connection< targetidentifierT >::syn_id_delay_.
|
inline |
Triggers an update of a synaptic weight.
This function is needed for neuromodulated synaptic plasticity
|
staticconstexpr |
|
staticconstexpr |
|
protected |
Referenced by nest::Connection< targetidentifierT >::disable(), nest::Connection< targetidentifierT >::get_delay(), nest::Connection< targetidentifierT >::get_delay_steps(), nest::Connection< targetidentifierT >::get_syn_id(), nest::Connection< targetidentifierT >::is_disabled(), nest::Connection< targetidentifierT >::set_delay(), nest::Connection< targetidentifierT >::set_delay_steps(), nest::Connection< targetidentifierT >::set_source_has_more_targets(), nest::Connection< targetidentifierT >::set_syn_id(), and nest::Connection< targetidentifierT >::source_has_more_targets().
|
protected |