NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Public Attributes | List of all members
nest::iaf_cond_alpha_mc::Parameters_ Struct Reference

Independent parameters of the model. More...

Public Member Functions

 Parameters_ ()
 Sets default parameter values. More...
 
 Parameters_ (const Parameters_ &)
 needed to copy C-arrays More...
 
Parameters_operator= (const Parameters_ &)
 needed to copy C-arrays More...
 
void get (DictionaryDatum &) const
 Store current values in dictionary. More...
 
void set (const DictionaryDatum &)
 Set values from dicitonary. More...
 

Public Attributes

double_t V_th
 Threshold Potential in mV. More...
 
double_t V_reset
 Reset Potential in mV. More...
 
double_t t_ref
 Refractory period in ms. More...
 
double_t g_conn [NCOMP-1]
 Conductances connecting compartments, in nS. More...
 
double_t g_L [NCOMP]
 Leak Conductance in nS. More...
 
double_t C_m [NCOMP]
 Membrane Capacitance in pF. More...
 
double_t E_ex [NCOMP]
 Excitatory reversal Potential in mV. More...
 
double_t E_in [NCOMP]
 Inhibitory reversal Potential in mV. More...
 
double_t E_L [NCOMP]
 Leak reversal Potential (aka resting potential) in mV. More...
 
double_t tau_synE [NCOMP]
 Synaptic Time Constant Excitatory Synapse in ms. More...
 
double_t tau_synI [NCOMP]
 Synaptic Time Constant for Inhibitory Synapse in ms. More...
 
double_t I_e [NCOMP]
 Constant Current in pA. More...
 

Detailed Description

Independent parameters of the model.

These parameters must be passed to the iteration function that is passed to the GSL ODE solvers. Since the iteration function is a C++ function with C linkage, the parameters can be stored in a C++ struct with member functions, as long as we just pass it by void* from C++ to C++ function. The struct must be public, though, since the iteration function is a function with C-linkage, whence it cannot be a member function of iaf_cond_alpha_mc.

Note
One could achieve proper encapsulation by an extra level of indirection: Define the iteration function as a member function, plus an additional wrapper function with C linkage. Then pass a struct containing a pointer to the node and a pointer-to-member-function to the iteration function as void* to the wrapper function. The wrapper function can then invoke the iteration function on the node (Stroustrup, p 418). But this appears to involved, and the extra indirections cost.

Constructor & Destructor Documentation

nest::iaf_cond_alpha_mc::Parameters_::Parameters_ ( )
nest::iaf_cond_alpha_mc::Parameters_::Parameters_ ( const Parameters_ p)

needed to copy C-arrays

References C_m, E_ex, E_in, E_L, g_conn, g_L, I_e, nest::names::n, nest::iaf_cond_alpha_mc::NCOMP, tau_synE, and tau_synI.

Member Function Documentation

void nest::iaf_cond_alpha_mc::Parameters_::get ( DictionaryDatum d) const
nest::iaf_cond_alpha_mc::Parameters_ & nest::iaf_cond_alpha_mc::Parameters_::operator= ( const Parameters_ p)
void nest::iaf_cond_alpha_mc::Parameters_::set ( const DictionaryDatum d)

Member Data Documentation

double_t nest::iaf_cond_alpha_mc::Parameters_::C_m[NCOMP]

Membrane Capacitance in pF.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::E_ex[NCOMP]

Excitatory reversal Potential in mV.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::E_in[NCOMP]

Inhibitory reversal Potential in mV.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::E_L[NCOMP]

Leak reversal Potential (aka resting potential) in mV.

Referenced by operator=(), Parameters_(), and nest::iaf_cond_alpha_mc::State_::State_().

double_t nest::iaf_cond_alpha_mc::Parameters_::g_conn[NCOMP-1]

Conductances connecting compartments, in nS.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::g_L[NCOMP]

Leak Conductance in nS.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::I_e[NCOMP]

Constant Current in pA.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::t_ref

Refractory period in ms.

Referenced by operator=().

double_t nest::iaf_cond_alpha_mc::Parameters_::tau_synE[NCOMP]

Synaptic Time Constant Excitatory Synapse in ms.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::tau_synI[NCOMP]

Synaptic Time Constant for Inhibitory Synapse in ms.

Referenced by operator=(), and Parameters_().

double_t nest::iaf_cond_alpha_mc::Parameters_::V_reset

Reset Potential in mV.

Referenced by operator=().

double_t nest::iaf_cond_alpha_mc::Parameters_::V_th

Threshold Potential in mV.

Referenced by operator=().


The documentation for this struct was generated from the following files: