#include <RandomCellKiller.hpp>
Public Member Functions | |
RandomCellKiller (AbstractTissue< SPACE_DIM > *pTissue, double probabilityOfDeath) | |
double | GetDeathProbability () const |
void | TestAndLabelSingleCellForApoptosis (TissueCell &rCell) |
void | TestAndLabelCellsForApoptosisOrDeath () |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mProbabilityOfDeath |
Friends | |
class | boost::serialization::access |
The probability passed into the constructor will be the probability of any cell dying whenever TestAndLabelCellsForApoptosis() is called.
Note this does NOT take into account current times or timesteps, so if more timesteps are used, and TestAndLabelCellsForApoptosis() is called at each timestep, more cells will die.
Definition at line 49 of file RandomCellKiller.hpp.
RandomCellKiller< SPACE_DIM >::RandomCellKiller | ( | AbstractTissue< SPACE_DIM > * | pTissue, | |
double | probabilityOfDeath | |||
) | [inline] |
Default constructor.
pTissue | pointer to the tissue | |
probabilityOfDeath | probability that a cell is labelled for apoptosis |
Definition at line 32 of file RandomCellKiller.cpp.
References RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath.
void RandomCellKiller< SPACE_DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the object and its member variables.
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 AbstractCellKiller< SPACE_DIM >.
Definition at line 69 of file RandomCellKiller.hpp.
double RandomCellKiller< SPACE_DIM >::GetDeathProbability | ( | ) | const [inline] |
Definition at line 44 of file RandomCellKiller.cpp.
References RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath.
void RandomCellKiller< SPACE_DIM >::TestAndLabelSingleCellForApoptosis | ( | TissueCell & | rCell | ) | [inline] |
Overridden method to test a given cell for apoptosis.
rCell | the cell to test for apoptosis |
Definition at line 51 of file RandomCellKiller.cpp.
References TissueCell::HasApoptosisBegun(), RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath, and TissueCell::StartApoptosis().
Referenced by RandomCellKiller< SPACE_DIM >::TestAndLabelCellsForApoptosisOrDeath().
void RandomCellKiller< SPACE_DIM >::TestAndLabelCellsForApoptosisOrDeath | ( | ) | [inline, virtual] |
Loop over cells and start apoptosis randomly, based on the user-set probability
Implements AbstractCellKiller< SPACE_DIM >.
Definition at line 61 of file RandomCellKiller.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), AbstractCellKiller< SPACE_DIM >::mpTissue, and RandomCellKiller< SPACE_DIM >::TestAndLabelSingleCellForApoptosis().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellKiller< SPACE_DIM >.
Definition at line 57 of file RandomCellKiller.hpp.
double RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath [private] |
Probability that a tested cell is labelled for apoptosis
Definition at line 54 of file RandomCellKiller.hpp.
Referenced by RandomCellKiller< SPACE_DIM >::GetDeathProbability(), RandomCellKiller< SPACE_DIM >::RandomCellKiller(), and RandomCellKiller< SPACE_DIM >::TestAndLabelSingleCellForApoptosis().