23#ifndef HH_PSC_ALPHA_GAP_H
24#define HH_PSC_ALPHA_GAP_H
31#include <gsl/gsl_errno.h>
32#include <gsl/gsl_matrix.h>
33#include <gsl/gsl_odeiv.h>
34#include <gsl/gsl_sf_exp.h>
59extern "C" int hh_psc_alpha_gap_dynamics(
double,
const double*,
double*,
void* );
157void register_hh_psc_alpha_gap(
const std::string& name );
166 hh_psc_alpha_gap(
const hh_psc_alpha_gap& );
167 ~hh_psc_alpha_gap()
override;
175 using Node::handles_test_event;
176 using Node::sends_secondary_event;
178 size_t send_test_event( Node& target,
size_t receptor_type, synindex,
bool )
override;
180 void handle( SpikeEvent& )
override;
181 void handle( CurrentEvent& )
override;
182 void handle( DataLoggingRequest& )
override;
183 void handle( GapJunctionEvent& )
override;
185 size_t handles_test_event( SpikeEvent&,
size_t )
override;
186 size_t handles_test_event( CurrentEvent&,
size_t )
override;
187 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
188 size_t handles_test_event( GapJunctionEvent&,
size_t )
override;
191 sends_secondary_event( GapJunctionEvent& )
override
195 void get_status( Dictionary& )
const override;
196 void set_status(
const Dictionary& )
override;
199 void init_buffers_()
override;
200 void pre_run_hook()
override;
205 bool update_( Time
const&,
const long,
const long,
const bool );
207 void update( Time
const&,
const long,
const long )
override;
208 bool wfr_update( Time
const&,
const long,
const long )
override;
215 friend int hh_psc_alpha_gap_dynamics(
double,
const double*,
double*,
void* );
218 friend class RecordablesMap< hh_psc_alpha_gap >;
219 friend class UniversalDataLogger< hh_psc_alpha_gap >;
242 void get( Dictionary& )
const;
243 void set(
const Dictionary&, Node* node );
276 double y_[ STATE_VEC_SIZE ];
279 State_(
const Parameters_& );
280 State_(
const State_& );
282 State_& operator=(
const State_& );
284 void get( Dictionary& )
const;
285 void set(
const Dictionary&, Node* node );
296 Buffers_( hh_psc_alpha_gap& );
298 Buffers_(
const Buffers_&, hh_psc_alpha_gap& );
301 UniversalDataLogger< hh_psc_alpha_gap > logger_;
304 RingBuffer spike_exc_;
305 RingBuffer spike_inh_;
306 RingBuffer currents_;
310 gsl_odeiv_control* c_;
311 gsl_odeiv_evolve* e_;
312 gsl_odeiv_system sys_;
318 double IntegrationStep_;
323 std::vector< double > last_y_values;
327 std::vector< double > interpolation_coefficients;
347 double PSCurrInit_E_;
350 double PSCurrInit_I_;
352 int RefractoryCounts_;
358 template < State_::StateVecElems elem >
362 return S_.y_[ elem ];
373 static RecordablesMap< hh_psc_alpha_gap > recordablesMap_;
377hh_psc_alpha_gap::update(
Time const& origin,
const long from,
const long to )
379 update_( origin, from, to,
false );
383hh_psc_alpha_gap::wfr_update(
Time const& origin,
const long from,
const long to )
385 State_ old_state = S_;
386 const bool wfr_tol_exceeded = update_( origin, from, to,
true );
389 return not wfr_tol_exceeded;
393hh_psc_alpha_gap::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
397 return target.handles_test_event( se, receptor_type );
402hh_psc_alpha_gap::handles_test_event(
SpikeEvent&,
size_t receptor_type )
404 if ( receptor_type != 0 )
412hh_psc_alpha_gap::handles_test_event(
CurrentEvent&,
size_t receptor_type )
414 if ( receptor_type != 0 )
424 if ( receptor_type != 0 )
432hh_psc_alpha_gap::handles_test_event(
GapJunctionEvent&,
size_t receptor_type )
434 if ( receptor_type != 0 )
442hh_psc_alpha_gap::get_status( Dictionary& d )
const
452hh_psc_alpha_gap::set_status(
const Dictionary& d )
454 Parameters_ ptmp = P_;
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
void set_sender(Node &)
Change pointer to sending Node.
Definition event.h:959
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 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_Kv3("g_Kv3")
const std::string target("target")
const std::string g_Kv1("g_Kv1")
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
Declarations for base class Node.