Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <GammaG1CellCycleModel.hpp>
Protected Member Functions | |
GammaG1CellCycleModel (const GammaG1CellCycleModel &rModel) | |
Protected Member Functions inherited from AbstractSimplePhaseBasedCellCycleModel | |
AbstractSimplePhaseBasedCellCycleModel (const AbstractSimplePhaseBasedCellCycleModel &rModel) | |
Protected Member Functions inherited from AbstractPhaseBasedCellCycleModel | |
AbstractPhaseBasedCellCycleModel (const AbstractPhaseBasedCellCycleModel &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 | mShape |
double | mScale |
Friends | |
class | TestSimpleCellCycleModels |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from AbstractPhaseBasedCellCycleModel | |
CellCyclePhase | mCurrentCellCyclePhase |
double | mG1Duration |
double | mMinimumGapDuration |
double | mStemCellG1Duration |
double | mTransitCellG1Duration |
double | mSDuration |
double | mG2Duration |
double | mMDuration |
Protected Attributes inherited from AbstractCellCycleModel | |
CellPtr | mpCell |
double | mBirthTime |
bool | mReadyToDivide |
unsigned | mDimension |
A stochastic cell-cycle model where cells keep dividing with a stochastic G1 duration drawn from a gamma distribution with specified shape and scale parameters.
Definition at line 46 of file GammaG1CellCycleModel.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 48 of file GammaG1CellCycleModel.cpp.
GammaG1CellCycleModel::GammaG1CellCycleModel | ( | ) |
Constructor.
Definition at line 41 of file GammaG1CellCycleModel.cpp.
Referenced by CreateCellCycleModel().
|
virtual |
Overridden builder method to create new copies of this cell-cycle model.
Implements AbstractCellCycleModel.
Definition at line 69 of file GammaG1CellCycleModel.cpp.
References GammaG1CellCycleModel().
double GammaG1CellCycleModel::GetScale | ( | ) | const |
double GammaG1CellCycleModel::GetShape | ( | ) | const |
|
virtual |
Overridden OutputCellCycleModelParameters() method.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from AbstractSimplePhaseBasedCellCycleModel.
Definition at line 112 of file GammaG1CellCycleModel.cpp.
References mScale, mShape, and AbstractSimplePhaseBasedCellCycleModel::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 67 of file GammaG1CellCycleModel.hpp.
References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), RandomNumberGenerator::Instance(), mScale, and mShape.
|
virtual |
Overridden SetG1Duration().
Reimplemented from AbstractSimplePhaseBasedCellCycleModel.
Definition at line 74 of file GammaG1CellCycleModel.cpp.
References RandomNumberGenerator::GammaRandomDeviate(), RandomNumberGenerator::Instance(), AbstractCellProperty::IsType(), AbstractPhaseBasedCellCycleModel::mG1Duration, AbstractCellCycleModel::mpCell, mScale, mShape, and NEVER_REACHED.
void GammaG1CellCycleModel::SetScale | ( | double | scale | ) |
scale | the value of the scale parameter |
Definition at line 97 of file GammaG1CellCycleModel.cpp.
References mScale.
void GammaG1CellCycleModel::SetShape | ( | double | shape | ) |
Set mShape.
shape | the value of the shape parameter |
Definition at line 92 of file GammaG1CellCycleModel.cpp.
References mShape.
|
friend |
Needed for serialization.
Definition at line 59 of file GammaG1CellCycleModel.hpp.
|
friend |
Definition at line 48 of file GammaG1CellCycleModel.hpp.
|
private |
The scale parameter of the gamma distribution. This must be a positive real number.
Definition at line 56 of file GammaG1CellCycleModel.hpp.
Referenced by GetScale(), OutputCellCycleModelParameters(), serialize(), SetG1Duration(), and SetScale().
|
private |
The shape parameter of the gamma distribution. This must be a positive real number.
Definition at line 53 of file GammaG1CellCycleModel.hpp.
Referenced by GetShape(), OutputCellCycleModelParameters(), serialize(), SetG1Duration(), and SetShape().