32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
58extern "C" int aeif_psc_exp_dynamics(
double,
const double*,
double*,
void* );
186void register_aeif_psc_exp(
const std::string& name );
188class aeif_psc_exp :
public ArchivingNode
193 aeif_psc_exp(
const aeif_psc_exp& );
194 ~aeif_psc_exp()
override;
202 using Node::handles_test_event;
204 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
206 void handle( SpikeEvent& )
override;
207 void handle( CurrentEvent& )
override;
208 void handle( DataLoggingRequest& )
override;
210 size_t handles_test_event( SpikeEvent&,
size_t )
override;
211 size_t handles_test_event( CurrentEvent&,
size_t )
override;
212 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
214 void get_status(
Dictionary& )
const override;
215 void set_status(
const Dictionary& )
override;
218 void init_buffers_()
override;
219 void pre_run_hook()
override;
220 void update(
const Time&,
const long,
const long )
override;
227 friend int aeif_psc_exp_dynamics(
double,
const double*,
double*,
void* );
230 friend class RecordablesMap< aeif_psc_exp >;
231 friend class UniversalDataLogger< aeif_psc_exp >;
288 double y_[ STATE_VEC_SIZE ];
291 State_(
const Parameters_& );
292 State_(
const State_& );
294 State_& operator=(
const State_& );
297 void set(
const Dictionary&,
const Parameters_&, Node* );
307 Buffers_( aeif_psc_exp& );
308 Buffers_(
const Buffers_&, aeif_psc_exp& );
311 UniversalDataLogger< aeif_psc_exp > logger_;
314 RingBuffer spike_exc_;
315 RingBuffer spike_inh_;
316 RingBuffer currents_;
320 gsl_odeiv_control* c_;
321 gsl_odeiv_evolve* e_;
322 gsl_odeiv_system sys_;
328 double IntegrationStep_;
353 unsigned int refractory_counts_;
359 template < State_::StateVecElems elem >
363 return S_.y_[ elem ];
374 static RecordablesMap< aeif_psc_exp > recordablesMap_;
378aeif_psc_exp::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
381 e.set_sender( *
this );
383 return target.handles_test_event( e, receptor_type );
387aeif_psc_exp::handles_test_event( SpikeEvent&,
size_t receptor_type )
389 if ( receptor_type != 0 )
391 throw UnknownReceptorType( receptor_type, get_name() );
397aeif_psc_exp::handles_test_event( CurrentEvent&,
size_t receptor_type )
399 if ( receptor_type != 0 )
401 throw UnknownReceptorType( receptor_type, get_name() );
407aeif_psc_exp::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
409 if ( receptor_type != 0 )
411 throw UnknownReceptorType( receptor_type, get_name() );
413 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
417aeif_psc_exp::get_status(
Dictionary& d )
const
427aeif_psc_exp::set_status(
const Dictionary& d )
429 Parameters_ ptmp = P_;
432 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 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 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