23#ifndef IAF_COND_ALPHA_H
24#define IAF_COND_ALPHA_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int iaf_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
207void register_iaf_cond_alpha(
const std::string& name );
209class iaf_cond_alpha :
public ArchivingNode
216 iaf_cond_alpha(
const iaf_cond_alpha& );
217 ~iaf_cond_alpha()
override;
226 using Node::handles_test_event;
228 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
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 handle( SpikeEvent& )
override;
235 void handle( CurrentEvent& )
override;
236 void handle( DataLoggingRequest& )
override;
238 void get_status(
Dictionary& )
const override;
239 void set_status(
const Dictionary& )
override;
242 void init_buffers_()
override;
243 void pre_run_hook()
override;
244 void update( Time
const&,
const long,
const long )
override;
251 friend int iaf_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
254 friend class RecordablesMap< iaf_cond_alpha >;
255 friend class UniversalDataLogger< iaf_cond_alpha >;
307 double y[ STATE_VEC_SIZE ];
312 State_(
const Parameters_& );
313 State_(
const State_& );
315 State_& operator=(
const State_& );
323 void set(
const Dictionary&,
const Parameters_&, Node* );
337 Buffers_( iaf_cond_alpha& );
338 Buffers_(
const Buffers_&, iaf_cond_alpha& );
341 UniversalDataLogger< iaf_cond_alpha > logger_;
344 RingBuffer spike_exc_;
345 RingBuffer spike_inh_;
346 RingBuffer currents_;
350 gsl_odeiv_control* c_;
351 gsl_odeiv_evolve* e_;
352 gsl_odeiv_system sys_;
358 double IntegrationStep_;
391 int RefractoryCounts;
397 template < State_::StateVecElems elem >
408 return Time::get_resolution().get_ms() * S_.r;
420 static RecordablesMap< iaf_cond_alpha > recordablesMap_;
427iaf_cond_alpha::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
430 e.set_sender( *
this );
431 return target.handles_test_event( e, receptor_type );
435iaf_cond_alpha::handles_test_event( SpikeEvent&,
size_t receptor_type )
437 if ( receptor_type != 0 )
439 throw UnknownReceptorType( receptor_type, get_name() );
445iaf_cond_alpha::handles_test_event( CurrentEvent&,
size_t receptor_type )
447 if ( receptor_type != 0 )
449 throw UnknownReceptorType( receptor_type, get_name() );
455iaf_cond_alpha::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
457 if ( receptor_type != 0 )
459 throw UnknownReceptorType( receptor_type, get_name() );
461 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
465iaf_cond_alpha::get_status(
Dictionary& d )
const
475iaf_cond_alpha::set_status(
const Dictionary& d )
477 Parameters_ ptmp = P_;
480 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 archiving_node.cpp:220
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:236
const std::string t_ref("t_ref")
const std::string E_L("E_L")
const std::string I_e("I_e")
const std::string V_reset("V_reset")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string V_th("V_th")
const std::string E_in("E_in")
const std::string target("target")
const std::string E_ex("E_ex")
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