23#ifndef AEIF_PSC_DELTA_CLOPATH_H
24#define AEIF_PSC_DELTA_CLOPATH_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
59extern "C" int aeif_psc_delta_clopath_dynamics(
double,
const double*,
double*,
void* );
206void register_aeif_psc_delta_clopath(
const std::string& name );
208class aeif_psc_delta_clopath :
public ClopathArchivingNode
212 aeif_psc_delta_clopath();
213 aeif_psc_delta_clopath(
const aeif_psc_delta_clopath& );
214 ~aeif_psc_delta_clopath()
override;
222 using Node::handles_test_event;
224 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
226 void handle( SpikeEvent& )
override;
227 void handle( CurrentEvent& )
override;
228 void handle( DataLoggingRequest& )
override;
230 size_t handles_test_event( SpikeEvent&,
size_t )
override;
231 size_t handles_test_event( CurrentEvent&,
size_t )
override;
232 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
234 void get_status(
Dictionary& )
const override;
235 void set_status(
const Dictionary& )
override;
238 void init_buffers_()
override;
239 void pre_run_hook()
override;
240 void update(
const Time&,
const long,
const long )
override;
247 friend int aeif_psc_delta_clopath_dynamics(
double,
const double*,
double*,
void* );
250 friend class RecordablesMap< aeif_psc_delta_clopath >;
251 friend class UniversalDataLogger< aeif_psc_delta_clopath >;
320 double y_[ STATE_VEC_SIZE ];
322 unsigned int clamp_r_;
324 State_(
const Parameters_& );
325 State_(
const State_& );
327 State_& operator=(
const State_& );
330 void set(
const Dictionary&,
const Parameters_&, Node* );
340 Buffers_( aeif_psc_delta_clopath& );
341 Buffers_(
const Buffers_&, aeif_psc_delta_clopath& );
344 UniversalDataLogger< aeif_psc_delta_clopath > logger_;
348 RingBuffer currents_;
352 gsl_odeiv_control* c_;
353 gsl_odeiv_evolve* e_;
354 gsl_odeiv_system sys_;
360 double IntegrationStep_;
385 unsigned int refractory_counts_;
386 unsigned int clamp_counts_;
392 template < State_::StateVecElems elem >
396 return S_.y_[ elem ];
407 static RecordablesMap< aeif_psc_delta_clopath > recordablesMap_;
411aeif_psc_delta_clopath::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
414 e.set_sender( *
this );
416 return target.handles_test_event( e, receptor_type );
420aeif_psc_delta_clopath::handles_test_event( SpikeEvent&,
size_t receptor_type )
422 if ( receptor_type != 0 )
424 throw UnknownReceptorType( receptor_type, get_name() );
430aeif_psc_delta_clopath::handles_test_event( CurrentEvent&,
size_t receptor_type )
432 if ( receptor_type != 0 )
434 throw UnknownReceptorType( receptor_type, get_name() );
440aeif_psc_delta_clopath::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
442 if ( receptor_type != 0 )
444 throw UnknownReceptorType( receptor_type, get_name() );
446 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
450aeif_psc_delta_clopath::get_status(
Dictionary& d )
const
460aeif_psc_delta_clopath::set_status(
const Dictionary& d )
462 Parameters_ ptmp = P_;
465 stmp.set( d, ptmp,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
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
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 recordables("recordables")
const std::string C_m("C_m")
const std::string V_th_max("V_th_max")
const std::string gsl_error_tol("gsl_error_tol")
const std::string tau_z("tau_z")
const std::string V_th_rest("V_th_rest")
const std::string target("target")
const std::string I_sp("I_sp")
const std::string tau_w("tau_w")
const std::string tau_u_bar_minus("tau_u_bar_minus")
const std::string Delta_T("Delta_T")
const std::string tau_V_th("tau_V_th")
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
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
const double e
Definition numerics.cpp:32