Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <UniformCellCycleModel.hpp>
Protected Member Functions | |
UniformCellCycleModel (const UniformCellCycleModel &rModel) | |
Protected Member Functions inherited from AbstractSimpleCellCycleModel | |
AbstractSimpleCellCycleModel (const AbstractSimpleCellCycleModel &rModel) | |
Protected Member Functions inherited from AbstractCellCycleModel | |
AbstractCellCycleModel (const AbstractCellCycleModel &rModel) | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mMinCellCycleDuration |
double | mMaxCellCycleDuration |
Friends | |
class | TestSimpleCellCycleModels |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from AbstractSimpleCellCycleModel | |
double | mCellCycleDuration |
Protected Attributes inherited from AbstractCellCycleModel | |
CellPtr | mpCell |
double | mBirthTime |
bool | mReadyToDivide |
unsigned | mDimension |
A stochastic cell-cycle model where cells divide with a stochastic cell cycle duration with the length of the cell cycle drawn from a uniform distribution on [mMinCellCycleDuration, mMaxCellCycleDuration].
If the cell is differentiated, then the cell cycle duration is set to be infinite, so that the cell will never divide.
Definition at line 50 of file UniformCellCycleModel.hpp.
|
protected |
Protected copy-constructor for use by CreateCellCycleModel().
The only way for external code to create a copy of a cell cycle model is by calling that method, to ensure that a model of the correct subclass is created. This copy-constructor helps subclasses to ensure that all member variables are correctly copied when this happens.
This method is called by child classes to set member variables for a daughter cell upon cell division. Note that the parent cell cycle model will have had ResetForDivision() called just before CreateCellCycleModel() is called, so performing an exact copy of the parent is suitable behaviour. Any daughter-cell-specific initialisation can be done in InitialiseDaughterCell().
rModel | the cell cycle model to copy. |
Definition at line 46 of file UniformCellCycleModel.cpp.
UniformCellCycleModel::UniformCellCycleModel | ( | ) |
Constructor - just a default, mBirthTime is set in the AbstractCellCycleModel class.
Definition at line 39 of file UniformCellCycleModel.cpp.
Referenced by CreateCellCycleModel().
|
virtual |
Overridden builder method to create new copies of this cell-cycle model.
Implements AbstractCellCycleModel.
Definition at line 65 of file UniformCellCycleModel.cpp.
References UniformCellCycleModel().
|
virtual |
Overridden GetAverageStemCellCycleTime() method.
Implements AbstractCellCycleModel.
Definition at line 109 of file UniformCellCycleModel.cpp.
References mMaxCellCycleDuration, and mMinCellCycleDuration.
|
virtual |
Overridden GetAverageTransitCellCycleTime() method.
Implements AbstractCellCycleModel.
Definition at line 104 of file UniformCellCycleModel.cpp.
References mMaxCellCycleDuration, and mMinCellCycleDuration.
double UniformCellCycleModel::GetMaxCellCycleDuration | ( | ) |
Definition at line 94 of file UniformCellCycleModel.cpp.
References mMaxCellCycleDuration.
double UniformCellCycleModel::GetMinCellCycleDuration | ( | ) |
Definition at line 84 of file UniformCellCycleModel.cpp.
References mMinCellCycleDuration.
|
virtual |
Overridden OutputCellCycleModelParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractSimpleCellCycleModel.
Definition at line 114 of file UniformCellCycleModel.cpp.
References mMaxCellCycleDuration, mMinCellCycleDuration, and AbstractSimpleCellCycleModel::OutputCellCycleModelParameters().
|
inlineprivate |
Archive the cell-cycle model and random number generator, never used directly - boost uses this.
archive | the archive |
version | the current version of this class |
Definition at line 77 of file UniformCellCycleModel.hpp.
References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), RandomNumberGenerator::Instance(), mMaxCellCycleDuration, and mMinCellCycleDuration.
|
virtual |
Overridden SetCellCycleDuration() method to add stochastic cell cycle times
Implements AbstractSimpleCellCycleModel.
Definition at line 70 of file UniformCellCycleModel.cpp.
References RandomNumberGenerator::Instance(), AbstractSimpleCellCycleModel::mCellCycleDuration, mMaxCellCycleDuration, mMinCellCycleDuration, AbstractCellCycleModel::mpCell, and RandomNumberGenerator::ranf().
void UniformCellCycleModel::SetMaxCellCycleDuration | ( | double | maxCellCycleDuration | ) |
Set mMaxCellCycleDuration.
maxCellCycleDuration |
Definition at line 99 of file UniformCellCycleModel.cpp.
References mMaxCellCycleDuration.
void UniformCellCycleModel::SetMinCellCycleDuration | ( | double | minCellCycleDuration | ) |
Set mMinCellCycleDuration.
minCellCycleDuration |
Definition at line 89 of file UniformCellCycleModel.cpp.
References mMinCellCycleDuration.
|
friend |
Needed for serialization.
Definition at line 69 of file UniformCellCycleModel.hpp.
|
friend |
Definition at line 52 of file UniformCellCycleModel.hpp.
|
private |
The maximum cell cycle duration. Used to define the uniform distribution. Defaults to 14 hours.
Definition at line 66 of file UniformCellCycleModel.hpp.
Referenced by GetAverageStemCellCycleTime(), GetAverageTransitCellCycleTime(), GetMaxCellCycleDuration(), OutputCellCycleModelParameters(), serialize(), SetCellCycleDuration(), and SetMaxCellCycleDuration().
|
private |
The minimum cell cycle duration. Used to define the uniform distribution. Defaults to 12 hours.
Definition at line 60 of file UniformCellCycleModel.hpp.
Referenced by GetAverageStemCellCycleTime(), GetAverageTransitCellCycleTime(), GetMinCellCycleDuration(), OutputCellCycleModelParameters(), serialize(), SetCellCycleDuration(), and SetMinCellCycleDuration().