36 #include "RandomCellKiller.hpp"
38 template<
unsigned DIM>
41 mProbabilityOfDeathInAnHour(probabilityOfDeathInAnHour)
45 EXCEPTION(
"Probability of death must be between zero and one");
49 template<
unsigned DIM>
52 return mProbabilityOfDeathInAnHour;
55 template<
unsigned DIM>
71 double death_prob_this_timestep = 1.0 - pow((1.0 - mProbabilityOfDeathInAnHour),
SimulationTime::Instance()->GetTimeStep());
73 if (!pCell->HasApoptosisBegun() &&
76 pCell->StartApoptosis();
80 template<
unsigned DIM>
84 cell_iter != this->mpCellPopulation->End();
87 CheckAndLabelSingleCellForApoptosis(*cell_iter);
91 template<
unsigned DIM>
94 *rParamsFile <<
"\t\t\t<ProbabilityOfDeathInAnHour>" << mProbabilityOfDeathInAnHour <<
"</ProbabilityOfDeathInAnHour>\n";
double mProbabilityOfDeathInAnHour
#define EXCEPTION(message)
double GetDeathProbabilityInAnHour() const
static SimulationTime * Instance()
void OutputCellKillerParameters(out_stream &rParamsFile)
RandomCellKiller(AbstractCellPopulation< DIM > *pCellPopulation, double probabilityOfDeathInAnHour)
void CheckAndLabelSingleCellForApoptosis(CellPtr pCell)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
static RandomNumberGenerator * Instance()
virtual void OutputCellKillerParameters(out_stream &rParamsFile)=0
void CheckAndLabelCellsForApoptosisOrDeath()