Chaste Release::3.1
|
#include <RandomCellKiller.hpp>
Public Member Functions | |
RandomCellKiller (AbstractCellPopulation< DIM > *pCellPopulation, double probabilityOfDeathInAnHour) | |
double | GetDeathProbabilityInAnHour () const |
void | CheckAndLabelSingleCellForApoptosis (CellPtr pCell) |
void | CheckAndLabelCellsForApoptosisOrDeath () |
void | OutputCellKillerParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mProbabilityOfDeathInAnHour |
Friends | |
class | boost::serialization::access |
A cell killer that randomly kills cells based on the user set probability.
The probability passed into the constructor will be the probability of any cell dying whenever CheckAndLabelCellsForApoptosis() is called.
Note this does take into account time steps - the input probability is the probability that in an hour's worth of trying, the cell killer will have successfully killed a given cell. In the method CheckAndLabelSingleCellForApoptosis() this probability is used to calculate the probability that the cell is killed at a given time step.
We assume a constant time step and that there are an integer number (n = 1/dt) of time steps per hour. We also assume that this method is called every time step and that the probabilities of dying at different times are independent.
Definition at line 63 of file RandomCellKiller.hpp.
RandomCellKiller< DIM >::RandomCellKiller | ( | AbstractCellPopulation< DIM > * | pCellPopulation, |
double | probabilityOfDeathInAnHour | ||
) |
Default constructor.
pCellPopulation | pointer to the cell population |
probabilityOfDeathInAnHour | probability that a cell is labelled for apoptosis in one hour's worth of trying |
Definition at line 39 of file RandomCellKiller.cpp.
References EXCEPTION, and RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour.
void RandomCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath | ( | ) | [virtual] |
Loop over cells and start apoptosis randomly, based on the user-set probability.
Implements AbstractCellKiller< DIM >.
Definition at line 81 of file RandomCellKiller.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin().
void RandomCellKiller< DIM >::CheckAndLabelSingleCellForApoptosis | ( | CellPtr | pCell | ) |
Overridden method to test a given cell for apoptosis.
pCell | the cell to test for apoptosis |
Definition at line 56 of file RandomCellKiller.cpp.
References RandomNumberGenerator::Instance(), SimulationTime::Instance(), and RandomNumberGenerator::ranf().
double RandomCellKiller< DIM >::GetDeathProbabilityInAnHour | ( | ) | const |
Definition at line 50 of file RandomCellKiller.cpp.
void RandomCellKiller< DIM >::OutputCellKillerParameters | ( | out_stream & | rParamsFile | ) | [virtual] |
Overridden OutputCellKillerParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellKiller< DIM >.
Definition at line 92 of file RandomCellKiller.cpp.
References AbstractCellKiller< SPACE_DIM >::OutputCellKillerParameters().
void RandomCellKiller< DIM >::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Archive the object.
archive | the archive |
version | the current version of this class |
Reimplemented from AbstractCellKiller< DIM >.
Definition at line 82 of file RandomCellKiller.hpp.
References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), and RandomNumberGenerator::Instance().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellKiller< DIM >.
Definition at line 74 of file RandomCellKiller.hpp.
double RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour [private] |
Probability that in an hour's worth of trying, the cell killer will have successfully killed a given cell.
Definition at line 71 of file RandomCellKiller.hpp.
Referenced by RandomCellKiller< DIM >::RandomCellKiller().