32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
35#include <gsl/gsl_sf_exp.h>
58extern "C" int hh_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
148void register_hh_psc_alpha(
const std::string& name );
150class hh_psc_alpha :
public ArchivingNode
155 hh_psc_alpha(
const hh_psc_alpha& );
156 ~hh_psc_alpha()
override;
164 using Node::handles_test_event;
166 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
168 void handle( SpikeEvent& )
override;
169 void handle( CurrentEvent& )
override;
170 void handle( DataLoggingRequest& )
override;
172 size_t handles_test_event( SpikeEvent&,
size_t )
override;
173 size_t handles_test_event( CurrentEvent&,
size_t )
override;
174 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
176 void get_status(
Dictionary& )
const override;
177 void set_status(
const Dictionary& )
override;
180 void init_buffers_()
override;
181 void pre_run_hook()
override;
182 void update( Time
const&,
const long,
const long )
override;
189 friend int hh_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
192 friend class RecordablesMap< hh_psc_alpha >;
193 friend class UniversalDataLogger< hh_psc_alpha >;
249 double y_[ STATE_VEC_SIZE ];
252 State_(
const Parameters_& );
253 State_(
const State_& );
255 State_& operator=(
const State_& );
269 Buffers_( hh_psc_alpha& );
270 Buffers_(
const Buffers_&, hh_psc_alpha& );
273 UniversalDataLogger< hh_psc_alpha > logger_;
276 RingBuffer spike_exc_;
277 RingBuffer spike_inh_;
278 RingBuffer currents_;
282 gsl_odeiv_control* c_;
283 gsl_odeiv_evolve* e_;
284 gsl_odeiv_system sys_;
290 double IntegrationStep_;
310 double PSCurrInit_E_;
313 double PSCurrInit_I_;
315 int RefractoryCounts_;
321 template < State_::StateVecElems elem >
325 return S_.y_[ elem ];
336 static RecordablesMap< hh_psc_alpha > recordablesMap_;
341hh_psc_alpha::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
344 e.set_sender( *
this );
346 return target.handles_test_event( e, receptor_type );
351hh_psc_alpha::handles_test_event( SpikeEvent&,
size_t receptor_type )
353 if ( receptor_type != 0 )
355 throw UnknownReceptorType( receptor_type, get_name() );
361hh_psc_alpha::handles_test_event( CurrentEvent&,
size_t receptor_type )
363 if ( receptor_type != 0 )
365 throw UnknownReceptorType( receptor_type, get_name() );
371hh_psc_alpha::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
373 if ( receptor_type != 0 )
375 throw UnknownReceptorType( receptor_type, get_name() );
377 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
381hh_psc_alpha::get_status(
Dictionary& d )
const
391hh_psc_alpha::set_status(
const Dictionary& d )
393 Parameters_ ptmp = P_;
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 E_K("E_K")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string g_Na("g_Na")
const std::string E_Na("E_Na")
const std::string g_K("g_K")
const std::string target("target")
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