WntConcentration< DIM > Class Template Reference

#include <WntConcentration.hpp>

Collaboration diagram for WntConcentration< DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~WntConcentration ()
double GetWntLevel (double height)
double GetWntLevel (TissueCell &rCell)
c_vector< double, DIM > GetWntGradient (c_vector< double, DIM > &rLocation)
c_vector< double, DIM > GetWntGradient (TissueCell &rCell)
void SetTissue (AbstractTissue< DIM > &rTissue)
WntConcentrationType GetType ()
void SetType (WntConcentrationType type)
void SetConstantWntValueForTesting (double value)
bool IsWntSetUp ()

Static Public Member Functions

static WntConcentrationInstance ()
static void Destroy ()

Protected Member Functions

 WntConcentration ()

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Private Attributes

TissueConfigmpTissueConfig
WntConcentrationType mWntType
AbstractTissue< DIM > * mpTissue
bool mTypeSet
double mConstantWntValueForTesting
bool mUseConstantWntValueForTesting

Static Private Attributes

static WntConcentrationmpInstance = NULL

Friends

class boost::serialization::access

Detailed Description

template<unsigned DIM>
class WntConcentration< DIM >

Singleton Wnt concentration object.

Definition at line 57 of file WntConcentration.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
WntConcentration< DIM >::WntConcentration (  )  [inline, protected]

Protected constuctor. Not to be called, use Instance() instead.

Definition at line 47 of file WntConcentration.cpp.

References WntConcentration< DIM >::mpInstance.

template<unsigned DIM>
WntConcentration< DIM >::~WntConcentration (  )  [inline, virtual]

Destructor - frees up the singleton instance.

Definition at line 60 of file WntConcentration.cpp.


Member Function Documentation

template<unsigned DIM>
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.

template<unsigned DIM>
WntConcentrationType WntConcentration< DIM >::GetType (  )  [inline]

Get the type of Wnt concentration.

Definition at line 127 of file WntConcentration.cpp.

References WntConcentration< DIM >::mWntType.

template<unsigned DIM>
c_vector< double, DIM > WntConcentration< DIM >::GetWntGradient ( TissueCell rCell  )  [inline]

Get the Wnt gradient at a given cell in the crypt. The crypt must be set for this. Note the TissueConfig::CryptLength() is used for this.

Parameters:
rCell the cell at which we want the Wnt gradient

Definition at line 104 of file WntConcentration.cpp.

References WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::mpTissue, WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mUseConstantWntValueForTesting.

template<unsigned DIM>
c_vector< double, DIM > WntConcentration< DIM >::GetWntGradient ( c_vector< double, DIM > &  rLocation  )  [inline]

Get the Wnt gradient at a given location in the crypt. Note the TissueConfig::CryptLength() is used for this.

Parameters:
rLocation the location at which we want the Wnt gradient

Definition at line 191 of file WntConcentration.cpp.

References TissueConfig::GetCryptLength(), TissueConfig::GetWntConcentrationParameter(), WntConcentration< DIM >::Instance(), WntConcentration< DIM >::mpTissueConfig, and WntConcentration< DIM >::mWntType.

Referenced by WntConcentration< DIM >::GetWntGradient().

template<unsigned DIM>
double WntConcentration< DIM >::GetWntLevel ( TissueCell rCell  )  [inline]

Get the Wnt level at a given cell in the crypt. The crypt must be set for this. Note the TissueConfig::CryptLength() is used for this.

Parameters:
rCell the cell at which we want the Wnt concentration
Returns:
the Wnt concentration at this cell

Definition at line 77 of file WntConcentration.cpp.

References WntConcentration< DIM >::GetWntLevel(), WntConcentration< DIM >::Instance(), WntConcentration< DIM >::mConstantWntValueForTesting, WntConcentration< DIM >::mpTissue, WntConcentration< DIM >::mTypeSet, WntConcentration< DIM >::mUseConstantWntValueForTesting, and WntConcentration< DIM >::mWntType.

template<unsigned DIM>
double WntConcentration< DIM >::GetWntLevel ( double  height  )  [inline]

Get the Wnt level at a given height in the crypt. Note the TissueConfig::CryptLength() is used for this.

Parameters:
height the height of the cell at which we want the Wnt concentration
Returns:
the Wnt concentration at this height in the crypt (dimensionless)

Definition at line 146 of file WntConcentration.cpp.

References TissueConfig::GetCryptLength(), TissueConfig::GetWntConcentrationParameter(), WntConcentration< DIM >::mpTissueConfig, and WntConcentration< DIM >::mWntType.

Referenced by WntConcentration< DIM >::GetWntLevel().

template<unsigned DIM>
WntConcentration< DIM > * WntConcentration< DIM >::Instance (  )  [inline, static]

Return a pointer to the WntConcentration object. The first time this is called, the object is created.

Returns:
A pointer to the singleton WntConcentration object.

Definition at line 37 of file WntConcentration.cpp.

References WntConcentration< DIM >::mpInstance.

Referenced by WntConcentration< DIM >::GetWntGradient(), WntConcentration< DIM >::GetWntLevel(), and WntConcentration< DIM >::serialize().

template<unsigned DIM>
bool WntConcentration< DIM >::IsWntSetUp (  )  [inline]

Whether a Wnt concentration has been set up.

For archiving, and to let a TissueSimulation find out whether whether a WntConcentration has been set up or not, i.e. whether stem cells should be motile.

Returns:
whether the Wnt concentration is set up

Definition at line 236 of file WntConcentration.cpp.

References WntConcentration< DIM >::mpTissue, WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mWntType.

template<unsigned DIM>
template<class Archive >
void WntConcentration< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]
template<unsigned DIM>
void WntConcentration< DIM >::SetConstantWntValueForTesting ( double  value  )  [inline]

Force the Wnt concentration to return a given value for all cells. Only for testing.

Parameters:
value the constant value to set the Wnt concentration to be

Definition at line 248 of file WntConcentration.cpp.

References WntConcentration< DIM >::mConstantWntValueForTesting, WntConcentration< DIM >::mTypeSet, WntConcentration< DIM >::mUseConstantWntValueForTesting, and WntConcentration< DIM >::mWntType.

template<unsigned DIM>
void WntConcentration< DIM >::SetTissue ( AbstractTissue< DIM > &  rTissue  )  [inline]

Set the crypt. Must be called before GetWntLevel().

Parameters:
rTissue reference to the tissue

Definition at line 120 of file WntConcentration.cpp.

References WntConcentration< DIM >::mpTissue.

template<unsigned DIM>
void WntConcentration< DIM >::SetType ( WntConcentrationType  type  )  [inline]

Set the type of Wnt concentration. Must be called before GetWntLevel().

Parameters:
type the type of Wnt concentration

Definition at line 134 of file WntConcentration.cpp.

References WntConcentration< DIM >::mTypeSet, and WntConcentration< DIM >::mWntType.


Friends And Related Function Documentation

template<unsigned DIM>
friend class boost::serialization::access [friend]

Needed for serialization.

Definition at line 97 of file WntConcentration.hpp.


Member Data Documentation

template<unsigned DIM>
double WntConcentration< DIM >::mConstantWntValueForTesting [private]
template<unsigned DIM>
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().

template<unsigned DIM>
AbstractTissue<DIM>* WntConcentration< DIM >::mpTissue [private]
template<unsigned DIM>
TissueConfig* WntConcentration< DIM >::mpTissueConfig [private]
template<unsigned DIM>
bool WntConcentration< DIM >::mTypeSet [private]
template<unsigned DIM>
bool WntConcentration< DIM >::mUseConstantWntValueForTesting [private]
template<unsigned DIM>
WntConcentrationType WntConcentration< DIM >::mWntType [private]

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

Generated by  doxygen 1.6.2