#include <StochasticWntCellCycleModel.hpp>
Public Member Functions | |
void | InitialiseDaughterCell () |
void | Initialise () |
void | ResetForDivision () |
double | GetG2Duration () |
StochasticWntCellCycleModel () | |
StochasticWntCellCycleModel (AbstractOdeSystem *pParentOdeSystem, CellMutationState mutationState, double birthTime, double lastTime, bool inSG2MPhase, bool readyToDivide, double divideTime, double g2Duration) | |
StochasticWntCellCycleModel (std::vector< double > parentProteinConcentrations, CellMutationState mutationState) | |
AbstractCellCycleModel * | CreateDaughterCellCycleModel () |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
void | SetG2Duration () |
Private Attributes | |
double | mG2Duration |
Friends | |
class | boost::serialization::access |
Note that this class uses C++'s default copying semantics, and so doesn't implement a copy constructor or operator=.
Definition at line 46 of file StochasticWntCellCycleModel.hpp.
StochasticWntCellCycleModel::StochasticWntCellCycleModel | ( | ) |
The standard constructor called in tests.
Definition at line 31 of file StochasticWntCellCycleModel.cpp.
Referenced by CreateDaughterCellCycleModel().
StochasticWntCellCycleModel::StochasticWntCellCycleModel | ( | AbstractOdeSystem * | pParentOdeSystem, | |
CellMutationState | mutationState, | |||
double | birthTime, | |||
double | lastTime, | |||
bool | inSG2MPhase, | |||
bool | readyToDivide, | |||
double | divideTime, | |||
double | g2Duration | |||
) |
A private constructor for daughter cells called by the CreateDaughterCellCycleModel function (which can be called by TissueCell::CommonCopy() and isn't necessarily being born.
pParentOdeSystem | to copy the state of | |
mutationState | the mutation state of the cell (used by ODEs) | |
birthTime | the simulation time when the cell divided (birth time of parent cell) | |
lastTime | last time the cell cycle model was evaluated | |
inSG2MPhase | whether the cell is in S-G2-M (not evaluating ODEs and just waiting) | |
readyToDivide | whether the cell is ready to divide | |
divideTime | if in the future this is the time at which the cell is going to divide | |
g2Duration | the duration of the cell's G2 phase |
Definition at line 37 of file StochasticWntCellCycleModel.cpp.
StochasticWntCellCycleModel::StochasticWntCellCycleModel | ( | std::vector< double > | parentProteinConcentrations, | |
CellMutationState | mutationState | |||
) |
A private constructor for archiving.
parentProteinConcentrations | a std::vector of doubles of the protein concentrations (see WntCellCycleOdeSystem) | |
mutationState | the mutation state of the cell (used by ODEs) |
Definition at line 50 of file StochasticWntCellCycleModel.cpp.
void StochasticWntCellCycleModel::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the cell cycle model and member variables. Used by boost, never directly by chaste code.
Serialization of singleton objects must be done with care. Before the object is serialized via a pointer, it *MUST* be serialized directly, or an assertion will trip when a second instance of the class is created on de-serialization.
archive | ||
version |
Reimplemented from WntCellCycleModel.
Definition at line 65 of file StochasticWntCellCycleModel.hpp.
References mG2Duration.
void StochasticWntCellCycleModel::SetG2Duration | ( | ) | [private] |
This method overrides that in WntCellCycleModel and introduces the stochastic element of this class.
We allow the duration of the G2 phase of the cell cycle to vary as a normal random deviate with a mean of its deterministic duration, a standard deviation of 0.9 hours, and a cutoff to ensure that it is greater than some minimum value.
Definition at line 57 of file StochasticWntCellCycleModel.cpp.
References CancerParameters::GetG2Duration(), CancerParameters::GetMinimumGapDuration(), CancerParameters::Instance(), and mG2Duration.
Referenced by Initialise(), InitialiseDaughterCell(), and ResetForDivision().
void StochasticWntCellCycleModel::InitialiseDaughterCell | ( | ) | [virtual] |
Set the duration of the G2 phase for the daughter cell.
Reimplemented from AbstractCellCycleModel.
Definition at line 77 of file StochasticWntCellCycleModel.cpp.
References SetG2Duration().
void StochasticWntCellCycleModel::Initialise | ( | void | ) | [virtual] |
Initialise the cell cycle model at the start of a simulation.
This overridden method sets up a new WntCellCycleOdeSystem, sets the cell type according to the current beta catenin level and sets a random G2 duration.
Reimplemented from WntCellCycleModel.
Definition at line 83 of file StochasticWntCellCycleModel.cpp.
References WntCellCycleModel::Initialise(), and SetG2Duration().
void StochasticWntCellCycleModel::ResetForDivision | ( | ) | [virtual] |
Reset cell cycle model by calling AbstractOdeBasedCellCycleModel::ResetForDivision() and setting a new random G2 duration.
Reimplemented from AbstractWntOdeBasedCellCycleModel.
Definition at line 90 of file StochasticWntCellCycleModel.cpp.
References AbstractWntOdeBasedCellCycleModel::ResetForDivision(), and SetG2Duration().
double StochasticWntCellCycleModel::GetG2Duration | ( | ) | [virtual] |
Get the duration of the G2 phase.
Reimplemented from AbstractCellCycleModel.
Definition at line 97 of file StochasticWntCellCycleModel.cpp.
References mG2Duration.
AbstractCellCycleModel * StochasticWntCellCycleModel::CreateDaughterCellCycleModel | ( | ) | [virtual] |
Returns a new StochasticWntCellCycleModel, created with the correct initial conditions.
This method should be called just after the parent cell cycle model has been reset.
Reimplemented from WntCellCycleModel.
Definition at line 103 of file StochasticWntCellCycleModel.cpp.
References TissueCell::GetMutationState(), AbstractCellCycleModel::mBirthTime, AbstractOdeBasedCellCycleModel::mDivideTime, AbstractOdeBasedCellCycleModel::mFinishedRunningOdes, mG2Duration, AbstractOdeBasedCellCycleModel::mLastTime, AbstractCellCycleModel::mpCell, AbstractOdeBasedCellCycleModel::mpOdeSystem, AbstractCellCycleModel::mReadyToDivide, and StochasticWntCellCycleModel().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from WntCellCycleModel.
Definition at line 51 of file StochasticWntCellCycleModel.hpp.
double StochasticWntCellCycleModel::mG2Duration [private] |
The duration of the G2 phase, set stochastically.
Definition at line 77 of file StochasticWntCellCycleModel.hpp.
Referenced by CreateDaughterCellCycleModel(), GetG2Duration(), serialize(), and SetG2Duration().