RandomCellKiller< SPACE_DIM > Class Template Reference

#include <RandomCellKiller.hpp>

Inheritance diagram for RandomCellKiller< SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for RandomCellKiller< SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

template<unsigned SPACE_DIM>
class RandomCellKiller< SPACE_DIM >

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 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.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
RandomCellKiller< SPACE_DIM >::RandomCellKiller ( AbstractTissue< SPACE_DIM > *  pTissue,
double  probabilityOfDeath 
) [inline]

Default constructor.

Parameters:
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.


Member Function Documentation

template<unsigned SPACE_DIM>
template<class Archive>
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.

Parameters:
archive 
version 

Reimplemented from AbstractCellKiller< SPACE_DIM >.

Definition at line 69 of file RandomCellKiller.hpp.

template<unsigned SPACE_DIM>
double RandomCellKiller< SPACE_DIM >::GetDeathProbability (  )  const [inline]

Returns:
mProbabilityOfDeath.

Definition at line 44 of file RandomCellKiller.cpp.

References RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath.

template<unsigned SPACE_DIM>
void RandomCellKiller< SPACE_DIM >::TestAndLabelSingleCellForApoptosis ( TissueCell rCell  )  [inline]

Overridden method to test a given cell for apoptosis.

Parameters:
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().

template<unsigned SPACE_DIM>
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().


Friends And Related Function Documentation

template<unsigned SPACE_DIM>
friend class boost::serialization::access [friend]

Needed for serialization.

Reimplemented from AbstractCellKiller< SPACE_DIM >.

Definition at line 57 of file RandomCellKiller.hpp.


Member Data Documentation

template<unsigned SPACE_DIM>
double RandomCellKiller< SPACE_DIM >::mProbabilityOfDeath [private]


The documentation for this class was generated from the following files:

Generated on Wed Mar 18 12:52:48 2009 for Chaste by  doxygen 1.5.5