23#ifndef HH_COND_BETA_GAP_TRAUB_H
24#define HH_COND_BETA_GAP_TRAUB_H
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>
60extern "C" int hh_cond_beta_gap_traub_dynamics(
double,
const double*,
double*,
void* );
189void register_hh_cond_beta_gap_traub(
const std::string& name );
197 hh_cond_beta_gap_traub();
198 hh_cond_beta_gap_traub(
const hh_cond_beta_gap_traub& );
199 ~hh_cond_beta_gap_traub()
override;
207 using Node::handles_test_event;
208 using Node::sends_secondary_event;
210 size_t send_test_event( Node& target,
size_t receptor_type, synindex,
bool )
override;
212 void handle( SpikeEvent& )
override;
213 void handle( CurrentEvent& )
override;
214 void handle( DataLoggingRequest& )
override;
215 void handle( GapJunctionEvent& )
override;
217 size_t handles_test_event( SpikeEvent&,
size_t )
override;
218 size_t handles_test_event( CurrentEvent&,
size_t )
override;
219 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
220 size_t handles_test_event( GapJunctionEvent&,
size_t )
override;
223 sends_secondary_event( GapJunctionEvent& )
override
227 void get_status( Dictionary& )
const override;
228 void set_status(
const Dictionary& )
override;
231 void init_buffers_()
override;
232 double get_normalisation_factor(
double,
double );
233 void pre_run_hook()
override;
238 bool update_( Time
const&,
const long,
const long,
const bool );
240 void update( Time
const&,
const long,
const long )
override;
241 bool wfr_update( Time
const&,
const long,
const long )
override;
248 friend int hh_cond_beta_gap_traub_dynamics(
double,
const double*,
double*,
void* );
251 friend class RecordablesMap< hh_cond_beta_gap_traub >;
252 friend class UniversalDataLogger< hh_cond_beta_gap_traub >;
281 void get( Dictionary& )
const;
282 void set(
const Dictionary&, Node* );
309 double y_[ STATE_VEC_SIZE ];
312 State_(
const Parameters_& p );
313 State_(
const State_& s );
315 State_& operator=(
const State_& );
317 void get( Dictionary& )
const;
318 void set(
const Dictionary&,
const Parameters_&, Node* );
342 int refractory_counts_;
353 Buffers_( hh_cond_beta_gap_traub& );
355 Buffers_(
const Buffers_&, hh_cond_beta_gap_traub& );
358 UniversalDataLogger< hh_cond_beta_gap_traub > logger_;
361 RingBuffer spike_exc_;
362 RingBuffer spike_inh_;
363 RingBuffer currents_;
367 gsl_odeiv_control* c_;
368 gsl_odeiv_evolve* e_;
369 gsl_odeiv_system sys_;
375 double IntegrationStep_;
381 std::vector< double > last_y_values;
387 std::vector< double > interpolation_coefficients;
402 template < State_::StateVecElems elem >
406 return S_.y_[ elem ];
415 static RecordablesMap< hh_cond_beta_gap_traub > recordablesMap_;
419hh_cond_beta_gap_traub::update(
Time const& origin,
const long from,
const long to )
421 update_( origin, from, to,
false );
425hh_cond_beta_gap_traub::wfr_update(
Time const& origin,
const long from,
const long to )
427 State_ old_state = S_;
428 const bool wfr_tol_exceeded = update_( origin, from, to,
true );
431 return not wfr_tol_exceeded;
435hh_cond_beta_gap_traub::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
438 e.set_sender( *
this );
440 return target.handles_test_event( e, receptor_type );
445hh_cond_beta_gap_traub::handles_test_event(
SpikeEvent&,
size_t receptor_type )
447 if ( receptor_type != 0 )
455hh_cond_beta_gap_traub::handles_test_event(
CurrentEvent&,
size_t receptor_type )
457 if ( receptor_type != 0 )
465hh_cond_beta_gap_traub::handles_test_event(
DataLoggingRequest& dlr,
size_t receptor_type )
467 if ( receptor_type != 0 )
475hh_cond_beta_gap_traub::handles_test_event(
GapJunctionEvent&,
size_t receptor_type )
477 if ( receptor_type != 0 )
485hh_cond_beta_gap_traub::get_status( Dictionary& d )
const
497hh_cond_beta_gap_traub::set_status(
const Dictionary& d )
499 Parameters_ ptmp = P_;
502 stmp.set( d, ptmp,
this );
A node which archives spike history for the purposes of spike-timing dependent plasticity (STDP).
Definition archiving_node.h:49
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition archiving_node.cpp:249
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:265
Event for electrical currents.
Definition event.h:608
Request data to be logged/logged data to be sent.
Definition event.h:675
Event for gap-junction information.
Definition secondary_event.h:299
Base class for all NEST network objects.
Definition node.h:99
Event for spike information.
Definition event.h:420
Definition nest_time.h:135
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
const std::string V_T("V_T")
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 tau_rise_in("tau_rise_in")
const std::string tau_decay_in("tau_decay_in")
const std::string g_K("g_K")
const std::string E_in("E_in")
const std::string tau_decay_ex("tau_decay_ex")
const std::string target("target")
const std::string t_spike("t_spike")
const std::string E_ex("E_ex")
const std::string tau_rise_ex("tau_rise_ex")
const std::string g_L("g_L")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
RecordablesMap< binary_neuron< TGainfunction > > binary_neuron< TGainfunction >::recordablesMap_
Definition binary_neuron.h:319
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121
const double e
Definition numerics.cpp:32
Declarations for base class Node.