MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NMDAChan.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2007 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 #ifndef _NMDACHAN_H
11 #define _NMDACHAN_H
12 
21 class NMDAChan: public SynChan
22 {
23  public:
24  NMDAChan();
25  ~NMDAChan();
26 
28  // Value field access function definitions
30 
31  // Mg-block fields
32  void setKMg_A( double Gbar );
33  double getKMg_A() const;
34  void setKMg_B( double Ek );
35  double getKMg_B() const;
36  void setCMg( double CMg );
37  double getCMg() const;
38 
39  // GHK fields
40  void setTemperature( double temperature );
41  double getTemperature() const;
42  void setExtCa( double conc );
43  double getExtCa() const;
44  void setIntCa( double conc );
45  double getIntCa() const;
46  double getICa() const;
47  void setPermeability( double permeability );
48  double getPermeability() const;
49  void setIntCaScale( double v );
50  double getIntCaScale() const;
51  void setIntCaOffset( double v );
52  double getIntCaOffset() const;
53  void setCondFraction( double v );
54  double getCondFraction() const;
55 
57 // Dest function definitions
59 
60  void vProcess( const Eref& e, ProcPtr p );
61  void vReinit( const Eref& e, ProcPtr p );
62 
63  void assignIntCa( double v );
65  static const Cinfo* initCinfo();
66  private:
68  double KMg_A_;
70  double KMg_B_;
72  double CMg_;
77  double temperature_;
78  double Cout_; // External Ca concentration
79  double Cin_; // Internal Ca concentration
80  double intCaScale_; // Scale factor for assignIntCa msg.
81  double intCaOffset_; // Offset for assignIntCa msg.
82  double condFraction_; // Offset for assignIntCa msg.
83  double ICa_; // Current carried by Ca ions.
84  double const_; // Scaling factor used in GHK calculations, actually
85  // not a const but depends on temperature
86  // const_ = F*valency/RT
87  static const double valency_; // Always +2.
88 
90 // Utility function
92 
93 };
94 
95 
96 #endif // _NMDACHAN_H
void setIntCaOffset(double v)
Definition: NMDAChan.cpp:264
void setCondFraction(double v)
Definition: NMDAChan.cpp:274
void vReinit(const Eref &e, ProcPtr p)
Definition: NMDAChan.cpp:449
double condFraction_
Definition: NMDAChan.h:82
double intCaOffset_
Definition: NMDAChan.h:81
static const Cinfo * initCinfo()
Definition: NMDAChan.cpp:27
double getIntCaOffset() const
Definition: NMDAChan.cpp:269
double getTemperature() const
Definition: NMDAChan.cpp:289
double getExtCa() const
Set external conc.
Definition: NMDAChan.cpp:235
double getKMg_A() const
Definition: NMDAChan.cpp:198
double intCaScale_
Definition: NMDAChan.h:80
double getCMg() const
Definition: NMDAChan.cpp:222
void setExtCa(double conc)
Definition: NMDAChan.cpp:227
void setKMg_B(double Ek)
Definition: NMDAChan.cpp:202
double temperature_
Definition: NMDAChan.h:77
static SrcFinfo1< double > * permeability()
Definition: ChanBase.cpp:14
double getCondFraction() const
Definition: NMDAChan.cpp:279
void setIntCaScale(double v)
Definition: NMDAChan.cpp:254
double getIntCaScale() const
Definition: NMDAChan.cpp:259
double getICa() const
Definition: NMDAChan.cpp:284
Definition: Eref.h:26
double Cout_
Definition: NMDAChan.h:78
void assignIntCa(double v)
Definition: NMDAChan.cpp:306
void setIntCa(double conc)
Definition: NMDAChan.cpp:240
void setCMg(double CMg)
Definition: NMDAChan.cpp:214
void setKMg_A(double Gbar)
Definition: NMDAChan.cpp:190
double getIntCa() const
Set external conc.
Definition: NMDAChan.cpp:249
double CMg_
[Mg] in mM
Definition: NMDAChan.h:72
double Cin_
Definition: NMDAChan.h:79
double ICa_
Definition: NMDAChan.h:83
double getPermeability() const
double const_
Definition: NMDAChan.h:84
double KMg_B_
1/gamma
Definition: NMDAChan.h:70
double KMg_A_
1/eta
Definition: NMDAChan.h:68
static const double valency_
Definition: NMDAChan.h:87
void setPermeability(double permeability)
Definition: Cinfo.h:18
void setTemperature(double temperature)
Definition: NMDAChan.cpp:293
void vProcess(const Eref &e, ProcPtr p)
Definition: NMDAChan.cpp:330
double getKMg_B() const
Definition: NMDAChan.cpp:210