MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CompartmentDataHolder.cpp
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 #include "header.h"
10 #include "CompartmentBase.h"
11 #include "CompartmentDataHolder.h"
12 // static func
13 
14 using namespace moose;
15 
17  :
18  Cm_( 1.0 ),
19  Ra_( 1.0 ),
20  Rm_( 1.0 ),
21  Em_( -0.06 ),
22  initVm_( -0.06 ),
23  inject_( 0.0 ),
24 
25  diameter_( 1.0e-6 ),
26  length_( 100.0e-6 ),
27  x0_( 0.0 ),
28  y0_( 0.0 ),
29  z0_( 0.0 ),
30  x_( 0.0 ),
31  y_( 0.0 ),
32  z_( 0.0 )
33 {;}
34 
36 {
37  Cm_ = cb->getCm( er );
38  Rm_ = cb->getRm( er );
39  Ra_ = cb->getRa( er );
40  Em_ = cb->getEm( er );
41  initVm_ = cb->getInitVm( er );
42  inject_ = cb->getInject( er );
43 
44  x0_ = cb->getX0();
45  y0_ = cb->getY0();
46  z0_ = cb->getZ0();
47  x_ = cb->getX();
48  y_ = cb->getY();
49  z_ = cb->getZ();
50  length_ = cb->getLength();
51  diameter_ = cb->getDiameter();
52 }
53 
54 
56 {
57  cb->setCm( er, Cm_ );
58  cb->setRm( er, Rm_ );
59  cb->setRa( er, Ra_ );
60  cb->setEm( er, Em_ );
61  cb->setInitVm( er, initVm_ );
62  cb->setInject( er, inject_ );
63 
64  cb->setX0( x0_ );
65  cb->setY0( y0_ );
66  cb->setZ0( z0_ );
67  cb->setX( x_ );
68  cb->setY( y_ );
69  cb->setZ( z_ );
70  cb->setLength( length_ );
71  cb->setDiameter( diameter_ );
72 }
void setX(double value)
double getInject(const Eref &e) const
void setZ(double value)
double getEm(const Eref &e) const
double getDiameter() const
void setLength(double length)
double getCm(const Eref &e) const
void setInitVm(const Eref &e, double initVm)
void setEm(const Eref &e, double Em)
double getInitVm(const Eref &e) const
void setCm(const Eref &e, double Cm)
void writeData(CompartmentBase *c, const Eref &e)
Definition: Eref.h:26
void setInject(const Eref &e, double Inject)
void setZ0(double value)
double getRa(const Eref &e) const
void setDiameter(double diameter)
void setRa(const Eref &e, double Ra)
void setX0(double value)
double getRm(const Eref &e) const
void readData(const CompartmentBase *c, const Eref &e)
void setRm(const Eref &e, double Rm)
void setY0(double value)
void setY(double value)