#include <WntConcentration.hpp>
Public Member Functions | |
virtual | ~WntConcentration () |
double | GetWntLevel (double height) |
double | GetWntLevel (CellPtr pCell) |
c_vector< double, DIM > | GetWntGradient (c_vector< double, DIM > &rLocation) |
c_vector< double, DIM > | GetWntGradient (CellPtr pCell) |
void | SetCellPopulation (AbstractCellPopulation< DIM > &rCellPopulation) |
double | GetCryptLength () |
void | SetCryptLength (double cryptLength) |
WntConcentrationType | GetType () |
void | SetType (WntConcentrationType type) |
void | SetConstantWntValueForTesting (double value) |
bool | IsWntSetUp () |
double | GetWntConcentrationParameter () |
void | SetWntConcentrationParameter (double wntConcentrationParameter) |
double | GetCryptProjectionParameterA () |
double | GetCryptProjectionParameterB () |
void | SetCryptProjectionParameterA (double cryptProjectionParameterA) |
void | SetCryptProjectionParameterB (double cryptProjectionParameterB) |
Static Public Member Functions | |
static WntConcentration * | Instance () |
static void | Destroy () |
Protected Member Functions | |
WntConcentration () | |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mCryptLength |
bool | mLengthSet |
WntConcentrationType | mWntType |
AbstractCellPopulation< DIM > * | mpCellPopulation |
bool | mTypeSet |
double | mConstantWntValueForTesting |
bool | mUseConstantWntValueForTesting |
double | mWntConcentrationParameter |
double | mCryptProjectionParameterA |
double | mCryptProjectionParameterB |
Static Private Attributes | |
static WntConcentration * | mpInstance = NULL |
Friends | |
class | boost::serialization::access |
Definition at line 57 of file WntConcentration.hpp.
WntConcentration< DIM >::WntConcentration | ( | ) | [inline, protected] |
Protected constuctor. Not to be called, use Instance() instead.
Definition at line 45 of file WntConcentration.cpp.
References WntConcentration< DIM >::mpInstance.
WntConcentration< DIM >::~WntConcentration | ( | ) | [inline, virtual] |
Destructor - frees up the singleton instance.
Definition at line 61 of file WntConcentration.cpp.
void WntConcentration< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the object and its member variables.
archive | the archive | |
version | the current version of this class |
Definition at line 137 of file WntConcentration.hpp.
References WntConcentration< DIM >::mConstantWntValueForTesting, WntConcentration< DIM >::mCryptLength, WntConcentration< DIM >::mCryptProjectionParameterA, WntConcentration< DIM >::mCryptProjectionParameterB, WntConcentration< DIM >::mLengthSet, WntConcentration< DIM >::mpCellPopulation, WntConcentration< DIM >::mTypeSet, WntConcentration< DIM >::mUseConstantWntValueForTesting, WntConcentration< DIM >::mWntConcentrationParameter, and WntConcentration< DIM >::mWntType.
WntConcentration< DIM > * WntConcentration< DIM >::Instance | ( | ) | [inline, static] |
Return a pointer to the WntConcentration object. The first time this is called, the object is created.
Definition at line 35 of file WntConcentration.cpp.
References WntConcentration< DIM >::mpInstance.
Referenced by CryptProjectionForce::AddForceContribution(), VertexCryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation1d::ApplyCellPopulationBoundaryConditions(), VertexCryptSimulation2d::CalculateCellDivisionVector(), CryptProjectionForce::CryptProjectionForce(), SimpleWntCellCycleModel::GetWntLevel(), AbstractWntOdeBasedCellCycleModel::GetWntLevel(), SimpleWntCellCycleModel::GetWntType(), CryptSimulationArchiver< DIM, SIM >::Load(), and CryptSimulationArchiver< DIM, SIM >::Save().
void WntConcentration< DIM >::Destroy | ( | ) | [inline, static] |
Destroy the current WntConcentration instance. Should be called at the end of a simulation.
Definition at line 66 of file WntConcentration.cpp.
References WntConcentration< DIM >::mpInstance.
Referenced by VertexCryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation1d::ApplyCellPopulationBoundaryConditions(), and VertexCryptSimulation2d::CalculateCellDivisionVector().
double WntConcentration< DIM >::GetWntLevel | ( | double | height | ) | [inline] |
Get the Wnt level at a given height in the crypt.
height | the height of the cell at which we want the Wnt concentration |
Definition at line 161 of file WntConcentration.cpp.
References WntConcentration< DIM >::GetCryptLength(), WntConcentration< DIM >::mLengthSet, WntConcentration< DIM >::mWntConcentrationParameter, and WntConcentration< DIM >::mWntType.
Referenced by WntConcentration< DIM >::GetWntLevel(), SimpleWntCellCycleModel::GetWntLevel(), and AbstractWntOdeBasedCellCycleModel::GetWntLevel().
double WntConcentration< DIM >::GetWntLevel | ( | CellPtr | pCell | ) | [inline] |
Get the Wnt level at a given cell in the crypt. The crypt must be set for this.
pCell | the cell at which we want the Wnt concentration |
Definition at line 76 of file WntConcentration.cpp.
References WntConcentration< DIM >::GetCryptProjectionParameterA(), WntConcentration< DIM >::GetCryptProjectionParameterB(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::mConstantWntValueForTesting, WntConcentration< DIM >::mLengthSet, WntConcentration< DIM >::mpCellPopulation, WntConcentration< DIM >::mTypeSet, WntConcentration< DIM >::mUseConstantWntValueForTesting, and WntConcentration< DIM >::mWntType.
c_vector< double, DIM > WntConcentration< DIM >::GetWntGradient | ( | c_vector< double, DIM > & | rLocation | ) | [inline] |
Get the Wnt gradient at a given location in the crypt.
rLocation | the location at which we want the Wnt gradient |
Definition at line 204 of file WntConcentration.cpp.
References EXCEPTION, WntConcentration< DIM >::GetCryptLength(), WntConcentration< DIM >::GetCryptProjectionParameterA(), WntConcentration< DIM >::GetCryptProjectionParameterB(), WntConcentration< DIM >::mWntConcentrationParameter, and WntConcentration< DIM >::mWntType.
Referenced by CryptProjectionForce::AddForceContribution(), and WntConcentration< DIM >::GetWntGradient().
c_vector< double, DIM > WntConcentration< DIM >::GetWntGradient | ( | CellPtr | pCell | ) | [inline] |
Get the Wnt gradient at a given cell in the crypt.
pCell | the cell at which we want the Wnt gradient |
Definition at line 104 of file WntConcentration.cpp.
References WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::mLengthSet, WntConcentration< DIM >::mpCellPopulation, WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mUseConstantWntValueForTesting.
void WntConcentration< DIM >::SetCellPopulation | ( | AbstractCellPopulation< DIM > & | rCellPopulation | ) | [inline] |
Set the crypt. Must be called before GetWntLevel().
rCellPopulation | reference to the cell population |
Definition at line 120 of file WntConcentration.cpp.
References WntConcentration< DIM >::mpCellPopulation.
double WntConcentration< DIM >::GetCryptLength | ( | ) | [inline] |
Definition at line 126 of file WntConcentration.cpp.
References WntConcentration< DIM >::mCryptLength.
Referenced by WntConcentration< DIM >::GetWntGradient(), and WntConcentration< DIM >::GetWntLevel().
void WntConcentration< DIM >::SetCryptLength | ( | double | cryptLength | ) | [inline] |
Set mCryptLength. Must be called before GetWntLevel().
cryptLength | the new value of mCryptLength |
Definition at line 132 of file WntConcentration.cpp.
References EXCEPTION, WntConcentration< DIM >::mCryptLength, and WntConcentration< DIM >::mLengthSet.
WntConcentrationType WntConcentration< DIM >::GetType | ( | ) | [inline] |
Get the type of Wnt concentration.
Definition at line 144 of file WntConcentration.cpp.
References WntConcentration< DIM >::mWntType.
Referenced by SimpleWntCellCycleModel::GetWntType().
void WntConcentration< DIM >::SetType | ( | WntConcentrationType | type | ) | [inline] |
Set the type of Wnt concentration. Must be called before GetWntLevel().
type | the type of Wnt concentration |
Definition at line 150 of file WntConcentration.cpp.
References EXCEPTION, WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mWntType.
void WntConcentration< DIM >::SetConstantWntValueForTesting | ( | double | value | ) | [inline] |
Force the Wnt concentration to return a given value for all cells. Only for testing.
value | the constant value to set the Wnt concentration to be |
Definition at line 256 of file WntConcentration.cpp.
References EXCEPTION, WntConcentration< DIM >::mConstantWntValueForTesting, WntConcentration< DIM >::mTypeSet, WntConcentration< DIM >::mUseConstantWntValueForTesting, and WntConcentration< DIM >::mWntType.
bool WntConcentration< DIM >::IsWntSetUp | ( | ) | [inline] |
Whether a Wnt concentration has been set up.
For archiving, and to let a CellBasedSimulation find out whether whether a WntConcentration has been set up or not, i.e. whether stem cells should be motile.
Definition at line 245 of file WntConcentration.cpp.
References WntConcentration< DIM >::mLengthSet, WntConcentration< DIM >::mpCellPopulation, WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mWntType.
Referenced by VertexCryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation2d::ApplyCellPopulationBoundaryConditions(), CryptSimulation1d::ApplyCellPopulationBoundaryConditions(), VertexCryptSimulation2d::CalculateCellDivisionVector(), and CryptSimulationArchiver< DIM, SIM >::Save().
double WntConcentration< DIM >::GetWntConcentrationParameter | ( | ) | [inline] |
Definition at line 271 of file WntConcentration.cpp.
References WntConcentration< DIM >::mWntConcentrationParameter.
void WntConcentration< DIM >::SetWntConcentrationParameter | ( | double | wntConcentrationParameter | ) | [inline] |
Set mWntConcentrationParameter.
wntConcentrationParameter | the new value of mWntConcentrationParameter |
Definition at line 277 of file WntConcentration.cpp.
References WntConcentration< DIM >::mWntConcentrationParameter.
double WntConcentration< DIM >::GetCryptProjectionParameterA | ( | ) | [inline] |
Definition at line 284 of file WntConcentration.cpp.
References WntConcentration< DIM >::mCryptProjectionParameterA.
Referenced by CryptProjectionForce::CryptProjectionForce(), WntConcentration< DIM >::GetWntGradient(), and WntConcentration< DIM >::GetWntLevel().
double WntConcentration< DIM >::GetCryptProjectionParameterB | ( | ) | [inline] |
Definition at line 290 of file WntConcentration.cpp.
References WntConcentration< DIM >::mCryptProjectionParameterB.
Referenced by CryptProjectionForce::CryptProjectionForce(), WntConcentration< DIM >::GetWntGradient(), and WntConcentration< DIM >::GetWntLevel().
void WntConcentration< DIM >::SetCryptProjectionParameterA | ( | double | cryptProjectionParameterA | ) | [inline] |
Set mCryptProjectionParameterA.
cryptProjectionParameterA | the new value of mCryptProjectionParameterA |
Definition at line 296 of file WntConcentration.cpp.
References WntConcentration< DIM >::mCryptProjectionParameterA.
void WntConcentration< DIM >::SetCryptProjectionParameterB | ( | double | cryptProjectionParameterB | ) | [inline] |
Set mCryptProjectionParameterB.
cryptProjectionParameterB | the new value of mCryptProjectionParameterB |
Definition at line 303 of file WntConcentration.cpp.
References WntConcentration< DIM >::mCryptProjectionParameterB.
friend class boost::serialization::access [friend] |
Needed for serialization.
Definition at line 129 of file WntConcentration.hpp.
WntConcentration< DIM > * WntConcentration< DIM >::mpInstance = NULL [inline, static, private] |
Pointer to the singleton instance of WntConcentration
Pointer to the single instance
Definition at line 62 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::Destroy(), WntConcentration< DIM >::Instance(), and WntConcentration< DIM >::WntConcentration().
double WntConcentration< DIM >::mCryptLength [private] |
The length of the crypt.
Definition at line 67 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetCryptLength(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetCryptLength().
bool WntConcentration< DIM >::mLengthSet [private] |
Whether this WntConcentration object has had its crypt length set.
Definition at line 72 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::IsWntSetUp(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetCryptLength().
WntConcentrationType WntConcentration< DIM >::mWntType [private] |
The type of WntConcentration current options are NONE - returns zero everywhere LINEAR - decreases from 1 to zero at height specified by mWntConcentrationParameter RADIAL - decreases from 1 to zero at height specified by mWntConcentrationParameter
Definition at line 80 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetType(), WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::IsWntSetUp(), WntConcentration< DIM >::serialize(), WntConcentration< DIM >::SetConstantWntValueForTesting(), and WntConcentration< DIM >::SetType().
AbstractCellPopulation<DIM>* WntConcentration< DIM >::mpCellPopulation [private] |
The cell population in which the WntConcentration occurs.
Definition at line 85 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::IsWntSetUp(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetCellPopulation().
bool WntConcentration< DIM >::mTypeSet [private] |
Whether this WntConcentration object has had its type set.
Definition at line 90 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::IsWntSetUp(), WntConcentration< DIM >::serialize(), WntConcentration< DIM >::SetConstantWntValueForTesting(), and WntConcentration< DIM >::SetType().
double WntConcentration< DIM >::mConstantWntValueForTesting [private] |
A value to return for testing purposes.
Definition at line 95 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetConstantWntValueForTesting().
bool WntConcentration< DIM >::mUseConstantWntValueForTesting [private] |
Whether to return the testing value (when false WntConcentration works with CellPopulation).
Definition at line 101 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetConstantWntValueForTesting().
double WntConcentration< DIM >::mWntConcentrationParameter [private] |
For LINEAR or RADIAL Wnt type: The proportion of the crypt that has a Wnt gradient. The Wnt concentration goes from one at the base to zero at this height up the crypt.
For EXPONENTIAL Wnt type: The parameter lambda in the Wnt concentration Wnt = exp(-height/lambda)
Definition at line 112 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetWntConcentrationParameter(), WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetWntConcentrationParameter().
double WntConcentration< DIM >::mCryptProjectionParameterA [private] |
Parameter a, for use in crypt projection simulations, in which the crypt surface is given in cylindrical polar coordinates by z = a*r^b. mCryptProjectionParameterA has no units
Definition at line 119 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetCryptProjectionParameterA(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetCryptProjectionParameterA().
double WntConcentration< DIM >::mCryptProjectionParameterB [private] |
Parameter b, for use in crypt projection simulations, in which the crypt surface is given in cylindrical polar coordinates by z = a*r^b. mCryptProjectionParameterB has no units
Definition at line 126 of file WntConcentration.hpp.
Referenced by WntConcentration< DIM >::GetCryptProjectionParameterB(), WntConcentration< DIM >::serialize(), and WntConcentration< DIM >::SetCryptProjectionParameterB().