NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nest::Connection< targetidentifierT > Class Template Reference

Base class for representing connections. More...

#include <connection.h>

Inheritance diagram for nest::Connection< targetidentifierT >:
nest::ContDelayConnection< targetidentifierT > nest::HTConnection< targetidentifierT > nest::Quantal_StpConnection< targetidentifierT > nest::StaticConnection< targetidentifierT > nest::StaticConnectionHomW< targetidentifierT > nest::STDPConnection< targetidentifierT > nest::STDPConnectionHom< targetidentifierT > nest::STDPDopaConnection< targetidentifierT > nest::STDPFACETSHWConnectionHom< targetidentifierT > nest::STDPPLConnectionHom< targetidentifierT > nest::Tsodyks2Connection< targetidentifierT > nest::TsodyksConnection< targetidentifierT >

Public Member Functions

 Connection ()
 
 Connection (const Connection< targetidentifierT > &rhs)
 
void get_status (DictionaryDatum &d) const
 Get all properties of this connection and put them into a dictionary. More...
 
void set_status (const DictionaryDatum &d, ConnectorModel &cm)
 Set properties of this connection from the values given in dictionary. More...
 
void calibrate (const TimeConverter &)
 Calibrate the delay of this connection to the desired resolution. More...
 
double_t get_delay () const
 Return the delay of the connection in ms. More...
 
long_t get_delay_steps () const
 Return the delay of the connection in steps. More...
 
void set_delay (const double_t delay)
 Set the delay of the connection. More...
 
void set_delay_steps (const long_t delay)
 Set the delay of the connection in steps. More...
 
void set_syn_id (synindex syn_id)
 Set the synapse id of the connection. More...
 
synindex get_syn_id () const
 Get the synapse id of the connection. More...
 
void trigger_update_weight (const thread, const std::vector< spikecounter > &, const double_t, const CommonSynapseProperties &)
 triggers an update of a synaptic weight this function is needed for neuromodulated synaptic plasticity More...
 
Nodeget_target (thread t) const
 
rport get_rport () const
 

Protected Member Functions

void check_connection_ (Node &dummy_target, Node &source, Node &target, rport 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. More...
 

Protected Attributes

targetidentifierT target_
 
SynIdDelay syn_id_delay_
 syn_id (char) and delay (24 bit) in timesteps of this connection More...
 

Detailed Description

template<typename targetidentifierT>
class nest::Connection< targetidentifierT >

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.

Constructor & Destructor Documentation

template<typename targetidentifierT>
nest::Connection< targetidentifierT >::Connection ( )
inline
template<typename targetidentifierT>
nest::Connection< targetidentifierT >::Connection ( const Connection< targetidentifierT > &  rhs)
inline

Member Function Documentation

template<typename targetidentifierT >
void nest::Connection< targetidentifierT >::calibrate ( const TimeConverter tc)
inline

Calibrate the delay of this connection to the desired resolution.

References nest::TimeConverter::from_old_steps(), and nest::Time::get_steps().

template<typename targetidentifierT >
void nest::Connection< targetidentifierT >::check_connection_ ( Node dummy_target,
Node source,
Node target,
rport  receptor_type 
)
inlineprotected
template<typename targetidentifierT>
double_t nest::Connection< targetidentifierT >::get_delay ( ) const
inline
template<typename targetidentifierT>
long_t nest::Connection< targetidentifierT >::get_delay_steps ( ) const
inline
template<typename targetidentifierT>
rport nest::Connection< targetidentifierT >::get_rport ( ) const
inline
template<typename targetidentifierT >
void nest::Connection< targetidentifierT >::get_status ( DictionaryDatum d) const
inline

Get all properties of this connection and put them into a dictionary.

References nest::names::d, and nest::names::delay.

template<typename targetidentifierT>
synindex nest::Connection< targetidentifierT >::get_syn_id ( ) const
inline

Get the synapse id of the connection.

References nest::SynIdDelay::syn_id, and nest::Connection< targetidentifierT >::syn_id_delay_.

template<typename targetidentifierT>
Node* nest::Connection< targetidentifierT >::get_target ( thread  t) const
inline
template<typename targetidentifierT>
void nest::Connection< targetidentifierT >::set_delay ( const double_t  delay)
inline
template<typename targetidentifierT>
void nest::Connection< targetidentifierT >::set_delay_steps ( const long_t  delay)
inline

Set the delay of the connection in steps.

References nest::SynIdDelay::delay, and nest::Connection< targetidentifierT >::syn_id_delay_.

template<typename targetidentifierT >
void nest::Connection< targetidentifierT >::set_status ( const DictionaryDatum d,
ConnectorModel cm 
)
inline

Set properties of this connection from the values given in dictionary.

Note
Target and Rport cannot be changed after a connection has been created.

References nest::ConnectorModel::assert_valid_delay_ms(), and nest::names::delay.

template<typename targetidentifierT>
void nest::Connection< targetidentifierT >::set_syn_id ( synindex  syn_id)
inline

Set the synapse id of the connection.

References nest::SynIdDelay::syn_id, and nest::Connection< targetidentifierT >::syn_id_delay_.

template<typename targetidentifierT >
void nest::Connection< targetidentifierT >::trigger_update_weight ( const thread  ,
const std::vector< spikecounter > &  ,
const double_t  ,
const CommonSynapseProperties  
)
inline

triggers an update of a synaptic weight this function is needed for neuromodulated synaptic plasticity

Member Data Documentation

template<typename targetidentifierT>
SynIdDelay nest::Connection< targetidentifierT >::syn_id_delay_
protected
template<typename targetidentifierT>
targetidentifierT nest::Connection< targetidentifierT >::target_
protected

The documentation for this class was generated from the following file: