23#ifndef AEIF_COND_ALPHA_MULTISYNAPSE_H
24#define AEIF_COND_ALPHA_MULTISYNAPSE_H
33#include <gsl/gsl_errno.h>
34#include <gsl/gsl_matrix.h>
35#include <gsl/gsl_odeiv.h>
195extern "C" int aeif_cond_alpha_multisynapse_dynamics(
double,
const double*,
double*,
void* );
197void register_aeif_cond_alpha_multisynapse(
const std::string& name );
199class aeif_cond_alpha_multisynapse :
public ArchivingNode
203 aeif_cond_alpha_multisynapse();
204 aeif_cond_alpha_multisynapse(
const aeif_cond_alpha_multisynapse& );
205 ~aeif_cond_alpha_multisynapse()
override;
207 friend int aeif_cond_alpha_multisynapse_dynamics(
double,
const double*,
double*,
void* );
215 using Node::handles_test_event;
217 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
219 void handle( SpikeEvent& )
override;
220 void handle( CurrentEvent& )
override;
221 void handle( DataLoggingRequest& )
override;
223 size_t handles_test_event( SpikeEvent&,
size_t )
override;
224 size_t handles_test_event( CurrentEvent&,
size_t )
override;
225 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
227 void get_status(
Dictionary& )
const override;
228 void set_status(
const Dictionary& )
override;
231 void init_buffers_()
override;
232 void pre_run_hook()
override;
233 void update( Time
const&,
const long,
const long )
override;
236 friend class DynamicRecordablesMap< aeif_cond_alpha_multisynapse >;
237 friend class DynamicUniversalDataLogger< aeif_cond_alpha_multisynapse >;
238 friend class DataAccessFunctor< aeif_cond_alpha_multisynapse >;
261 std::vector< double >
E_rev;
268 bool has_connections_;
305 STATE_VECTOR_MIN_SIZE
308 static const size_t NUMBER_OF_FIXED_STATES_ELEMENTS = 2;
309 static const size_t NUM_STATE_ELEMENTS_PER_RECEPTOR = 2;
311 std::vector< double > y_;
314 State_(
const Parameters_& );
328 Buffers_( aeif_cond_alpha_multisynapse& );
329 Buffers_(
const Buffers_&, aeif_cond_alpha_multisynapse& );
332 DynamicUniversalDataLogger< aeif_cond_alpha_multisynapse > logger_;
335 std::vector< RingBuffer > spikes_;
336 RingBuffer currents_;
340 gsl_odeiv_control* c_;
341 gsl_odeiv_evolve* e_;
342 gsl_odeiv_system sys_;
348 double IntegrationStep_;
369 std::vector< double > g0_;
377 unsigned int refractory_counts_;
397 DynamicRecordablesMap< aeif_cond_alpha_multisynapse > recordablesMap_;
400 DataAccessFunctor< aeif_cond_alpha_multisynapse > get_data_access_functor(
size_t elem );
402 get_state_element(
size_t elem )
404 return S_.y_[ elem ];
410 std::string get_g_receptor_name(
size_t receptor );
411 void insert_conductance_recordables(
size_t first = 0 );
415aeif_cond_alpha_multisynapse::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
418 e.set_sender( *
this );
420 return target.handles_test_event( e, receptor_type );
424aeif_cond_alpha_multisynapse::handles_test_event( CurrentEvent&,
size_t receptor_type )
426 if ( receptor_type != 0 )
428 throw UnknownReceptorType( receptor_type, get_name() );
434aeif_cond_alpha_multisynapse::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
436 if ( receptor_type != 0 )
438 throw UnknownReceptorType( receptor_type, get_name() );
440 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
444aeif_cond_alpha_multisynapse::get_status(
Dictionary& d )
const
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 archiving_node.cpp:220
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 gsl_error_tol("gsl_error_tol")
const std::string V_th("V_th")
const std::string tau_syn("tau_syn")
const std::string V_peak("V_peak")
const std::string n_receptors("n_receptors")
const std::string target("target")
const std::string tau_w("tau_w")
const std::string Delta_T("Delta_T")
const std::string E_rev("E_rev")
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