#include <RandomCellKiller.hpp>
Inherits AbstractCellKiller< DIM >.
Public Member Functions | |
RandomCellKiller (AbstractCellPopulation< DIM > *pCellPopulation, double probabilityOfDeathInAnHour) | |
double | GetDeathProbabilityInAnHour () const |
void | TestAndLabelSingleCellForApoptosis (CellPtr pCell) |
void | TestAndLabelCellsForApoptosisOrDeath () |
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 TestAndLabelCellsForApoptosis() is called.
Note this does take into account timesteps - 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 TestAndLabelSingleCellForApoptosis() this probability is used to calculate the probability that the cell is killed at a given time step.
Definition at line 52 of file RandomCellKiller.hpp.
RandomCellKiller< DIM >::RandomCellKiller | ( | AbstractCellPopulation< DIM > * | pCellPopulation, | |
double | probabilityOfDeathInAnHour | |||
) | [inline] |
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 32 of file RandomCellKiller.cpp.
References EXCEPTION, and RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour.
double RandomCellKiller< DIM >::GetDeathProbabilityInAnHour | ( | ) | const [inline] |
Definition at line 43 of file RandomCellKiller.cpp.
References RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour.
void RandomCellKiller< DIM >::OutputCellKillerParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputCellKillerParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellKiller< DIM >.
Definition at line 73 of file RandomCellKiller.cpp.
References RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour.
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 71 of file RandomCellKiller.hpp.
References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), and RandomNumberGenerator::Instance().
void RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath | ( | ) | [inline, virtual] |
Loop over cells and start apoptosis randomly, based on the user-set probability.
Implements AbstractCellKiller< DIM >.
Definition at line 62 of file RandomCellKiller.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), AbstractCellKiller< DIM >::mpCellPopulation, and RandomCellKiller< DIM >::TestAndLabelSingleCellForApoptosis().
void RandomCellKiller< DIM >::TestAndLabelSingleCellForApoptosis | ( | CellPtr | pCell | ) | [inline] |
Overridden method to test a given cell for apoptosis.
pCell | the cell to test for apoptosis |
Definition at line 49 of file RandomCellKiller.cpp.
References RandomNumberGenerator::Instance(), SimulationTime::Instance(), RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour, and RandomNumberGenerator::ranf().
Referenced by RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellKiller< DIM >.
Definition at line 63 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 60 of file RandomCellKiller.hpp.
Referenced by RandomCellKiller< DIM >::GetDeathProbabilityInAnHour(), RandomCellKiller< DIM >::OutputCellKillerParameters(), RandomCellKiller< DIM >::RandomCellKiller(), and RandomCellKiller< DIM >::TestAndLabelSingleCellForApoptosis().