Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <BiasedBernoulliTrialCellCycleModel.hpp>
Protected Member Functions | |
BiasedBernoulliTrialCellCycleModel (const BiasedBernoulliTrialCellCycleModel &rModel) | |
Protected Member Functions inherited from AbstractCellCycleModel | |
AbstractCellCycleModel (const AbstractCellCycleModel &rModel) | |
Protected Attributes | |
double | mMaxDivisionProbability |
double | mMinimumDivisionAge |
Protected Attributes inherited from AbstractCellCycleModel | |
CellPtr | mpCell |
double | mBirthTime |
bool | mReadyToDivide |
unsigned | mDimension |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Simple cell-cycle model where mature non-differentiated cells have a probability of dividing per hour that is biased so that it varies linearly across an axis of the population through its centre, from zero up to a specified upper value.
The class includes two parameters: the first, mMaxDivisionProbability, defines the maximum probability of dividing per hour; the second, mMinimumDivisionAge, defines a minimum age at which cells may divide. The axis along which cell division probability is biased must be specified in the separate class DivisionBiasTrackingModifier.
Definition at line 52 of file BiasedBernoulliTrialCellCycleModel.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 BiasedBernoulliTrialCellCycleModel.cpp.
BiasedBernoulliTrialCellCycleModel::BiasedBernoulliTrialCellCycleModel | ( | ) |
Constructor.
Definition at line 39 of file BiasedBernoulliTrialCellCycleModel.cpp.
Referenced by CreateCellCycleModel().
|
virtual |
Overridden builder method to create new instances of the cell-cycle model.
Implements AbstractCellCycleModel.
Definition at line 83 of file BiasedBernoulliTrialCellCycleModel.cpp.
References BiasedBernoulliTrialCellCycleModel().
|
virtual |
Overridden GetAverageStemCellCycleTime() method.
Implements AbstractCellCycleModel.
Definition at line 115 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMaxDivisionProbability.
|
virtual |
Overridden GetAverageTransitCellCycleTime() method.
Implements AbstractCellCycleModel.
Definition at line 110 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMaxDivisionProbability.
double BiasedBernoulliTrialCellCycleModel::GetMaxDivisionProbability | ( | ) |
Get mMaxDivisionProbability.
Definition at line 94 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMaxDivisionProbability.
double BiasedBernoulliTrialCellCycleModel::GetMinimumDivisionAge | ( | ) |
Get mMinimumDivisionAge.
Definition at line 105 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMinimumDivisionAge.
|
virtual |
Overridden OutputCellCycleModelParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellCycleModel.
Definition at line 120 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMaxDivisionProbability, mMinimumDivisionAge, and AbstractCellCycleModel::OutputCellCycleModelParameters().
|
virtual |
Overridden ReadyToDivide() method.
If the cell's age is greater than mMinimumDivisionAge, then we draw a uniform random number r ~ U[0,1]. If r < p*dt, where p varies linearly from zero up to mMaxDivisionProbability dependent on the cell's location within the population, and dt is the simulation time step, then the cell is ready to divide and we return true. Otherwise, the cell is not yet ready to divide and we return false.
Implements AbstractCellCycleModel.
Definition at line 59 of file BiasedBernoulliTrialCellCycleModel.cpp.
References AbstractCellCycleModel::GetAge(), SimulationTime::GetTimeStep(), SimulationTime::Instance(), RandomNumberGenerator::Instance(), mMaxDivisionProbability, mMinimumDivisionAge, AbstractCellCycleModel::mpCell, AbstractCellCycleModel::mReadyToDivide, and RandomNumberGenerator::ranf().
|
inlineprivate |
Boost Serialization method for archiving/checkpointing
archive | The boost archive. |
version | The current version of this class. |
Definition at line 64 of file BiasedBernoulliTrialCellCycleModel.hpp.
References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), RandomNumberGenerator::Instance(), mMaxDivisionProbability, and mMinimumDivisionAge.
void BiasedBernoulliTrialCellCycleModel::SetMaxDivisionProbability | ( | double | maxDivisionProbability | ) |
Set the value of mMaxDivisionProbability.
maxDivisionProbability | the new value of mMaxDivisionProbability |
Definition at line 88 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMaxDivisionProbability.
void BiasedBernoulliTrialCellCycleModel::SetMinimumDivisionAge | ( | double | minimumDivisionAge | ) |
Set the value of mMinimumDivisionAge.
minimumDivisionAge | the new value of mMinimumDivisionAge |
Definition at line 99 of file BiasedBernoulliTrialCellCycleModel.cpp.
References mMinimumDivisionAge.
|
friend |
Definition at line 56 of file BiasedBernoulliTrialCellCycleModel.hpp.
|
protected |
Maximum probability of dividing per hour. Defaults to 0.1.
Definition at line 82 of file BiasedBernoulliTrialCellCycleModel.hpp.
Referenced by GetAverageStemCellCycleTime(), GetAverageTransitCellCycleTime(), GetMaxDivisionProbability(), OutputCellCycleModelParameters(), ReadyToDivide(), serialize(), and SetMaxDivisionProbability().
|
protected |
Minimum age of a cell at which it may divide. Defaults to 1 hour.
Definition at line 88 of file BiasedBernoulliTrialCellCycleModel.hpp.
Referenced by GetMinimumDivisionAge(), OutputCellCycleModelParameters(), ReadyToDivide(), serialize(), and SetMinimumDivisionAge().