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* );
124void register_iaf_cond_alpha(
const std::string& name );
126class iaf_cond_alpha :
public ArchivingNode
133 iaf_cond_alpha(
const iaf_cond_alpha& );
134 ~iaf_cond_alpha()
override;
143 using Node::handles_test_event;
145 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
override;
147 size_t handles_test_event( SpikeEvent&,
size_t )
override;
148 size_t handles_test_event( CurrentEvent&,
size_t )
override;
149 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
151 void handle( SpikeEvent& )
override;
152 void handle( CurrentEvent& )
override;
153 void handle( DataLoggingRequest& )
override;
155 void get_status(
Dictionary& )
const override;
156 void set_status(
const Dictionary& )
override;
159 void init_buffers_()
override;
160 void pre_run_hook()
override;
161 void update( Time
const&,
const long,
const long )
override;
168 friend int iaf_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
171 friend class RecordablesMap< iaf_cond_alpha >;
172 friend class UniversalDataLogger< iaf_cond_alpha >;
224 double y[ STATE_VEC_SIZE ];
229 State_(
const Parameters_& );
230 State_(
const State_& );
232 State_& operator=(
const State_& );
240 void set(
const Dictionary&,
const Parameters_&, Node* );
254 Buffers_( iaf_cond_alpha& );
255 Buffers_(
const Buffers_&, iaf_cond_alpha& );
258 UniversalDataLogger< iaf_cond_alpha > logger_;
261 RingBuffer spike_exc_;
262 RingBuffer spike_inh_;
263 RingBuffer currents_;
267 gsl_odeiv_control* c_;
268 gsl_odeiv_evolve* e_;
269 gsl_odeiv_system sys_;
275 double IntegrationStep_;
308 int RefractoryCounts;
314 template < State_::StateVecElems elem >
325 return Time::get_resolution().get_ms() * S_.r;
337 static RecordablesMap< iaf_cond_alpha > recordablesMap_;
344iaf_cond_alpha::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
347 e.set_sender( *
this );
348 return target.handles_test_event( e, receptor_type );
352iaf_cond_alpha::handles_test_event( SpikeEvent&,
size_t receptor_type )
354 if ( receptor_type != 0 )
356 throw UnknownReceptorType( receptor_type, get_name() );
362iaf_cond_alpha::handles_test_event( CurrentEvent&,
size_t receptor_type )
364 if ( receptor_type != 0 )
366 throw UnknownReceptorType( receptor_type, get_name() );
372iaf_cond_alpha::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
374 if ( receptor_type != 0 )
376 throw UnknownReceptorType( receptor_type, get_name() );
378 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
382iaf_cond_alpha::get_status(
Dictionary& d )
const
392iaf_cond_alpha::set_status(
const Dictionary& d )
394 Parameters_ ptmp = P_;
397 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