23#ifndef AEIF_COND_EXP_H
24#define AEIF_COND_EXP_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int aeif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
69extern "C" int aeif_cond_exp_dynamics_DT0(
double,
const double*,
double*,
void* );
199void register_aeif_cond_exp(
const std::string& name );
201class aeif_cond_exp :
public ArchivingNode
206 aeif_cond_exp(
const aeif_cond_exp& );
207 ~aeif_cond_exp()
override;
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(
const Time&,
const long,
const long )
override;
240 friend int aeif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
243 friend class RecordablesMap< aeif_cond_exp >;
244 friend class UniversalDataLogger< aeif_cond_exp >;
303 double y_[ STATE_VEC_SIZE ];
306 State_(
const Parameters_& );
307 State_(
const State_& );
309 State_& operator=(
const State_& );
312 void set(
const Dictionary&,
const Parameters_&, Node* );
322 Buffers_( aeif_cond_exp& );
323 Buffers_(
const Buffers_&, aeif_cond_exp& );
326 UniversalDataLogger< aeif_cond_exp > logger_;
329 RingBuffer spike_exc_;
330 RingBuffer spike_inh_;
331 RingBuffer currents_;
335 gsl_odeiv_control* c_;
336 gsl_odeiv_evolve* e_;
337 gsl_odeiv_system sys_;
343 double IntegrationStep_;
368 unsigned int refractory_counts_;
374 template < State_::StateVecElems elem >
378 return S_.y_[ elem ];
389 static RecordablesMap< aeif_cond_exp > recordablesMap_;
393aeif_cond_exp::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
396 e.set_sender( *
this );
398 return target.handles_test_event( e, receptor_type );
402aeif_cond_exp::handles_test_event( SpikeEvent&,
size_t receptor_type )
404 if ( receptor_type != 0 )
406 throw UnknownReceptorType( receptor_type, get_name() );
412aeif_cond_exp::handles_test_event( CurrentEvent&,
size_t receptor_type )
414 if ( receptor_type != 0 )
416 throw UnknownReceptorType( receptor_type, get_name() );
422aeif_cond_exp::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
424 if ( receptor_type != 0 )
426 throw UnknownReceptorType( receptor_type, get_name() );
428 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
432aeif_cond_exp::get_status(
Dictionary& d )
const
442aeif_cond_exp::set_status(
const Dictionary& d )
444 Parameters_ ptmp = P_;
447 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 tau_syn_in("tau_syn_in")
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 V_peak("V_peak")
const std::string E_in("E_in")
const std::string target("target")
const std::string tau_syn_ex("tau_syn_ex")
const std::string tau_w("tau_w")
const std::string Delta_T("Delta_T")
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