32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int iaf_cond_exp_dynamics(
double,
const double*,
double*,
void* );
195void register_iaf_cond_exp(
const std::string& name );
197class iaf_cond_exp :
public ArchivingNode
202 iaf_cond_exp(
const iaf_cond_exp& );
203 ~iaf_cond_exp()
override;
211 using Node::handles_test_event;
213 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
215 void handle( SpikeEvent& )
override;
216 void handle( CurrentEvent& )
override;
217 void handle( DataLoggingRequest& )
override;
219 size_t handles_test_event( SpikeEvent&,
size_t )
override;
220 size_t handles_test_event( CurrentEvent&,
size_t )
override;
221 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
223 void get_status(
Dictionary& )
const override;
224 void set_status(
const Dictionary& )
override;
227 void init_buffers_()
override;
228 void pre_run_hook()
override;
229 void update( Time
const&,
const long,
const long )
override;
236 friend int iaf_cond_exp_dynamics(
double,
const double*,
double*,
void* );
239 friend class RecordablesMap< iaf_cond_exp >;
240 friend class UniversalDataLogger< iaf_cond_exp >;
285 double y_[ STATE_VEC_SIZE ];
288 State_(
const Parameters_& );
289 State_(
const State_& );
291 State_& operator=(
const State_& );
294 void set(
const Dictionary&,
const Parameters_&, Node* );
305 Buffers_( iaf_cond_exp& );
306 Buffers_(
const Buffers_&, iaf_cond_exp& );
309 UniversalDataLogger< iaf_cond_exp > logger_;
312 RingBuffer spike_exc_;
313 RingBuffer spike_inh_;
314 RingBuffer currents_;
318 gsl_odeiv_control* c_;
319 gsl_odeiv_evolve* e_;
320 gsl_odeiv_system sys_;
326 double IntegrationStep_;
345 int RefractoryCounts_;
351 template < State_::StateVecElems elem >
355 return S_.y_[ elem ];
366 static RecordablesMap< iaf_cond_exp > recordablesMap_;
371iaf_cond_exp::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
374 e.set_sender( *
this );
375 return target.handles_test_event( e, receptor_type );
379iaf_cond_exp::handles_test_event( SpikeEvent&,
size_t receptor_type )
381 if ( receptor_type != 0 )
383 throw UnknownReceptorType( receptor_type, get_name() );
389iaf_cond_exp::handles_test_event( CurrentEvent&,
size_t receptor_type )
391 if ( receptor_type != 0 )
393 throw UnknownReceptorType( receptor_type, get_name() );
399iaf_cond_exp::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
401 if ( receptor_type != 0 )
403 throw UnknownReceptorType( receptor_type, get_name() );
405 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
410iaf_cond_exp::get_status(
Dictionary& d )
const
420iaf_cond_exp::set_status(
const Dictionary& d )
422 Parameters_ ptmp = P_;
425 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 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 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