MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GapJunction.h
Go to the documentation of this file.
1 // GapJunction.h ---
2 //
3 // Filename: GapJunction.h
4 // Description:
5 // Author: Subhasis Ray
6 // Maintainer:
7 // Created: Tue Jul 2 11:22:05 2013 (+0530)
8 // Version:
9 // Last-Updated: Tue Jul 2 12:39:14 2013 (+0530)
10 // By: subha
11 // Update #: 27
12 // URL:
13 // Keywords:
14 // Compatibility:
15 //
16 //
17 
18 // Commentary:
19 //
20 // Implementation of simple gap junction
21 //
22 //
23 
24 // Change log:
25 //
26 //
27 //
28 //
29 // This program is free software; you can redistribute it and/or
30 // modify it under the terms of the GNU General Public License as
31 // published by the Free Software Foundation; either version 3, or
32 // (at your option) any later version.
33 //
34 // This program is distributed in the hope that it will be useful,
35 // but WITHOUT ANY WARRANTY; without even the implied warranty of
36 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37 // General Public License for more details.
38 //
39 // You should have received a copy of the GNU General Public License
40 // along with this program; see the file COPYING. If not, write to
41 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth
42 // Floor, Boston, MA 02110-1301, USA.
43 //
44 //
45 
46 // Code:
47 
48 class GapJunction {
49  public:
50  GapJunction();
51  ~GapJunction();
52  void setVm1(double Vm);
53  void setVm2(double Vm);
54  // Sometimes one may want to set g=0, i.e. R=inf - e.g. in Traub model
55  void setGk(double g);
56  double getGk() const;
57 
58  // Dest function definitions.
63  void process( const Eref& e, ProcPtr p );
64 
68  void reinit( const Eref& e, ProcPtr p );
69 
73  static const Cinfo* initCinfo();
74 
75  protected:
76  double Vm1_;
77  double Vm2_;
78  double Gk_;
79 };
80 //
81 // GapJunction.h ends here
void reinit(const Eref &e, ProcPtr p)
double Vm1_
Definition: GapJunction.h:76
void process(const Eref &e, ProcPtr p)
double getGk() const
double Gk_
Definition: GapJunction.h:78
double Vm2_
Definition: GapJunction.h:77
void setGk(double g)
static const Cinfo * initCinfo()
Definition: GapJunction.cpp:67
Definition: Eref.h:26
Definition: Cinfo.h:18
void setVm2(double Vm)
void setVm1(double Vm)