23#ifndef CLOPATH_SYNAPSE_H
24#define CLOPATH_SYNAPSE_H
109template <
typename target
identifierT >
217template <
typename target
identifierT >
226template <
typename target
identifierT >
230 const double t_spike = e.get_stamp().get_ms();
237 std::deque< histentry_extended >::iterator start;
238 std::deque< histentry_extended >::iterator finish;
248 target->get_LTP_history(
t_lastspike_ - dendritic_delay, t_spike - dendritic_delay, &start, &finish );
249 while ( start != finish )
251 const double minus_dt =
t_lastspike_ - ( start->t_ + dendritic_delay );
262 e.set_receiver( *target );
279template <
typename target
identifierT >
291template <
typename target
identifierT >
304template <
typename target
identifierT >
318 throw BadProperty(
"Weight and Wmin must have same sign." );
324 throw BadProperty(
"Weight and Wmax must have same sign." );
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 dummy nodes used in connection testing.
Definition connection.h:70
double get_delay_ms() const
Definition connection.h:262
void get_status(Dictionary &d) const
size_t get_rport() const
Definition connection.h:316
long get_delay_steps() const
Definition connection.h:271
void set_status(const Dictionary &d, ConnectorModel &cm)
Connection()
Definition connection.h:124
Node * get_target(const size_t tid) const
Definition connection.h:311
void check_connection_(Node &dummy_target, Node &source, Node &target, const synindex syn_id, const size_t receptor_type)
Definition connector_model.h:69
Encapsulate information sent between nodes.
Definition event.h:103
Base class for all NEST network objects.
Definition node.h:99
virtual void register_stdp_connection(double, double, double)
Register a STDP connection.
Definition node.cpp:211
Event for spike information.
Definition event.h:420
Definition clopath_synapse.h:164
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition clopath_synapse.h:170
double tau_x_
Definition clopath_synapse.h:210
clopath_synapse(const clopath_synapse &)=default
Copy constructor.
size_t get_rport() const
Definition connection.h:316
double depress_(double w, double dw)
Definition clopath_synapse.h:194
double get_delay_ms() const
Return the delay of the connection in ms.
Definition connection.h:262
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition clopath_synapse.h:293
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:271
bool send(Event &e, size_t t, const CommonSynapseProperties &cp)
Send an event to the receiver of this connection.
Definition clopath_synapse.h:228
CommonSynapseProperties CommonPropertiesType
Definition clopath_synapse.h:114
double weight_
Definition clopath_synapse.h:208
Node * get_target(const size_t tid) const
Definition connection.h:311
double x_bar_
Definition clopath_synapse.h:209
double Wmax_
Definition clopath_synapse.h:212
double t_lastspike_
Definition clopath_synapse.h:214
clopath_synapse()
Default Constructor.
Definition clopath_synapse.h:280
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition clopath_synapse.h:306
double Wmin_
Definition clopath_synapse.h:211
Connection< targetidentifierT, TotalDelay > ConnectionBase
Definition clopath_synapse.h:115
void check_connection(Node &s, Node &t, const size_t receptor_type, const synindex syn_id, const CommonPropertiesType &)
Definition clopath_synapse.h:177
double facilitate_(double w, double dw, double x_bar)
Definition clopath_synapse.h:201
void set_weight(double w)
Definition clopath_synapse.h:187
static constexpr ConnectionModelProperties properties
Definition clopath_synapse.h:117
clopath_synapse & operator=(const clopath_synapse &)=default
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:282
const std::string x_bar("x_bar")
const std::string Wmin("Wmin")
const std::string tau_x("tau_x")
const std::string weight("weight")
const std::string size_of("sizeof")
const std::string Wmax("Wmax")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_clopath_synapse(const std::string &name)
Definition clopath_synapse.cpp:32
ConnectionModelProperties
Definition connector_model.h:49
@ HAS_DELAY
Definition connector_model.h:54
@ SUPPORTS_LBL
Definition connector_model.h:52
@ SUPPORTS_HPC
Definition connector_model.h:51
@ IS_PRIMARY
Definition connector_model.h:53
@ REQUIRES_CLOPATH_ARCHIVING
Definition connector_model.h:57
@ SUPPORTS_WFR
Definition connector_model.h:55
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:147
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121