23#ifndef HH_PSC_ALPHA_CLOPATH_H
24#define HH_PSC_ALPHA_CLOPATH_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
35#include <gsl/gsl_sf_exp.h>
58extern "C" int hh_psc_alpha_clopath_dynamics(
double,
const double*,
double*,
void* );
185void register_hh_psc_alpha_clopath(
const std::string& name );
191 hh_psc_alpha_clopath();
192 hh_psc_alpha_clopath(
const hh_psc_alpha_clopath& );
193 ~hh_psc_alpha_clopath()
override;
201 using Node::handles_test_event;
203 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
205 void handle( SpikeEvent& )
override;
206 void handle( CurrentEvent& )
override;
207 void handle( DataLoggingRequest& )
override;
209 size_t handles_test_event( SpikeEvent&,
size_t )
override;
210 size_t handles_test_event( CurrentEvent&,
size_t )
override;
211 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
213 void get_status( Dictionary& )
const override;
214 void set_status(
const Dictionary& )
override;
217 void init_buffers_()
override;
218 void pre_run_hook()
override;
219 void update( Time
const&,
const long,
const long )
override;
226 friend int hh_psc_alpha_clopath_dynamics(
double,
const double*,
double*,
void* );
229 friend class RecordablesMap< hh_psc_alpha_clopath >;
230 friend class UniversalDataLogger< hh_psc_alpha_clopath >;
255 void get( Dictionary& )
const;
256 void set(
const Dictionary&, Node* node );
292 double y_[ STATE_VEC_SIZE ];
295 State_(
const Parameters_& );
296 State_(
const State_& );
298 State_& operator=(
const State_& );
300 void get( Dictionary& )
const;
301 void set(
const Dictionary&, Node* node );
312 Buffers_( hh_psc_alpha_clopath& );
313 Buffers_(
const Buffers_&, hh_psc_alpha_clopath& );
316 UniversalDataLogger< hh_psc_alpha_clopath > logger_;
319 RingBuffer spike_exc_;
320 RingBuffer spike_inh_;
321 RingBuffer currents_;
325 gsl_odeiv_control* c_;
326 gsl_odeiv_evolve* e_;
327 gsl_odeiv_system sys_;
333 double IntegrationStep_;
353 double PSCurrInit_E_;
356 double PSCurrInit_I_;
358 int RefractoryCounts_;
364 template < State_::StateVecElems elem >
368 return S_.y_[ elem ];
379 static RecordablesMap< hh_psc_alpha_clopath > recordablesMap_;
384hh_psc_alpha_clopath::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
387 e.set_sender( *
this );
389 return target.handles_test_event( e, receptor_type );
394hh_psc_alpha_clopath::handles_test_event(
SpikeEvent&,
size_t receptor_type )
396 if ( receptor_type != 0 )
404hh_psc_alpha_clopath::handles_test_event(
CurrentEvent&,
size_t receptor_type )
406 if ( receptor_type != 0 )
414hh_psc_alpha_clopath::handles_test_event(
DataLoggingRequest& dlr,
size_t receptor_type )
416 if ( receptor_type != 0 )
424hh_psc_alpha_clopath::get_status( Dictionary& d )
const
434hh_psc_alpha_clopath::set_status(
const Dictionary& d )
436 Parameters_ ptmp = P_;
An archiving node which additionally archives parameters and buffers needed for the Clopath plasticit...
Definition clopath_archiving_node.h:45
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition clopath_archiving_node.cpp:77
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition clopath_archiving_node.cpp:91
Event for electrical currents.
Definition event.h:608
Request data to be logged/logged data to be sent.
Definition event.h:675
Base class for all NEST network objects.
Definition node.h:99
Event for spike information.
Definition event.h:420
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
const std::string tau_u_bar_plus("tau_u_bar_plus")
const std::string E_L("E_L")
const std::string I_e("I_e")
const std::string E_K("E_K")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string g_Na("g_Na")
const std::string E_Na("E_Na")
const std::string g_K("g_K")
const std::string target("target")
const std::string tau_u_bar_minus("tau_u_bar_minus")
const std::string tau_u_bar_bar("tau_u_bar_bar")
const std::string g_L("g_L")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
RecordablesMap< binary_neuron< TGainfunction > > binary_neuron< TGainfunction >::recordablesMap_
Definition binary_neuron.h:319
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121
const double e
Definition numerics.cpp:32