23#ifndef DIFFUSION_CONNECTION_H
24#define DIFFUSION_CONNECTION_H
88template <
typename target
identifierT >
157 "Please use the parameters drift_factor and "
158 "diffusion_factor to specifiy the weights." );
164 throw BadProperty(
"diffusion_connection has no delay." );
173template <
typename target
identifierT >
176template <
typename target
identifierT >
180 ConnectionBase::get_status( d );
187template <
typename target
identifierT >
194 throw BadProperty(
"diffusion_connection has no delay." );
200 "Please use the parameters drift_factor and "
201 "diffusion_factor to specifiy the weights." );
204 ConnectionBase::set_status( d, cm );
210template <
typename target
identifierT >
211std::unique_ptr< SecondaryEvent >
214 return std::make_unique< DiffusionConnectionEvent >();
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition exceptions.h:680
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
Base class for representing connections.
Definition connection.h:110
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:181
Node * get_target(const size_t tid) const
Definition connection.h:239
size_t get_rport() const
Definition connection.h:244
Definition connector_model.h:69
Event for diffusion connections (rate model connections for the siegert_neuron).
Definition secondary_event.h:348
Encapsulate information sent between nodes.
Definition event.h:103
void set_sender(Node &)
Change pointer to sending Node.
Definition event.h:920
Base class for all NEST network objects.
Definition node.h:99
Definition diffusion_connection.h:90
void set_weight(double)
Definition diffusion_connection.h:154
Node * get_target(const size_t tid) const
Definition connection.h:239
double diffusion_factor_
Definition diffusion_connection.h:170
Connection< targetidentifierT > ConnectionBase
Definition diffusion_connection.h:94
size_t get_rport() const
Definition connection.h:244
void check_connection(Node &s, Node &t, size_t receptor_type, const CommonPropertiesType &)
Definition diffusion_connection.h:122
std::unique_ptr< SecondaryEvent > get_secondary_event()
Definition diffusion_connection.h:212
double drift_factor_
Definition diffusion_connection.h:169
static constexpr ConnectionModelProperties properties
Definition diffusion_connection.h:96
diffusion_connection()
Default Constructor.
Definition diffusion_connection.h:102
CommonSynapseProperties CommonPropertiesType
Definition diffusion_connection.h:93
bool send(Event &e, size_t t, const CommonSynapseProperties &)
Send an event to the receiver of this connection.
Definition diffusion_connection.h:138
void set_status(const Dictionary &d, ConnectorModel &cm)
Definition diffusion_connection.h:189
void set_delay(double)
Definition diffusion_connection.h:162
void get_status(Dictionary &d) const
Definition diffusion_connection.h:178
double weight_
Definition diffusion_connection.h:168
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:271
virtual void sends_secondary_event(GapJunctionEvent &ge)
Required to check, if source neuron may send a SecondaryEvent.
Definition node.cpp:381
const std::string delay("delay")
const std::string drift_factor("drift_factor")
const std::string weight("weight")
const std::string diffusion_factor("diffusion_factor")
const std::string size_of("sizeof")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_diffusion_connection(const std::string &name)
Definition diffusion_connection.cpp:32
ConnectionModelProperties
Definition connector_model.h:49