Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
RandomCellKiller< DIM > Class Template Reference

#include <RandomCellKiller.hpp>

+ Inheritance diagram for RandomCellKiller< DIM >:
+ Collaboration diagram for RandomCellKiller< DIM >:

Public Member Functions

 RandomCellKiller (AbstractCellPopulation< DIM > *pCellPopulation, double probabilityOfDeathInAnHour)
 
double GetDeathProbabilityInAnHour () const
 
void CheckAndLabelSingleCellForApoptosis (CellPtr pCell)
 
void CheckAndLabelCellsForApoptosisOrDeath ()
 
void OutputCellKillerParameters (out_stream &rParamsFile)
 
- Public Member Functions inherited from AbstractCellKiller< DIM >
 AbstractCellKiller (AbstractCellPopulation< SPACE_DIM > *pCellPopulation)
 
virtual ~AbstractCellKiller ()
 
const AbstractCellPopulation< SPACE_DIM > * GetCellPopulation () const
 
void OutputCellKillerInfo (out_stream &rParamsFile)
 
- Public Member Functions inherited from Identifiable
virtual ~Identifiable ()
 
std::string GetIdentifier () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)
 

Private Attributes

double mProbabilityOfDeathInAnHour
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Attributes inherited from AbstractCellKiller< DIM >
AbstractCellPopulation< SPACE_DIM > * mpCellPopulation
 

Detailed Description

template<unsigned DIM>
class RandomCellKiller< 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 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.

Constructor & Destructor Documentation

◆ RandomCellKiller()

template<unsigned DIM>
RandomCellKiller< DIM >::RandomCellKiller ( AbstractCellPopulation< DIM > *  pCellPopulation,
double  probabilityOfDeathInAnHour 
)

Default constructor.

Parameters
pCellPopulationpointer to the cell population
probabilityOfDeathInAnHourprobability 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.

Member Function Documentation

◆ CheckAndLabelCellsForApoptosisOrDeath()

template<unsigned DIM>
void RandomCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath ( )
virtual

Loop over cells and start apoptosis randomly, based on the user-set probability.

Implements AbstractCellKiller< DIM >.

Definition at line 82 of file RandomCellKiller.cpp.

◆ CheckAndLabelSingleCellForApoptosis()

template<unsigned DIM>
void RandomCellKiller< DIM >::CheckAndLabelSingleCellForApoptosis ( CellPtr  pCell)

Overridden method to test a given cell for apoptosis.

Parameters
pCellthe cell to test for apoptosis

Definition at line 56 of file RandomCellKiller.cpp.

References SimulationTime::Instance(), RandomNumberGenerator::Instance(), and RandomNumberGenerator::ranf().

◆ GetDeathProbabilityInAnHour()

template<unsigned DIM>
double RandomCellKiller< DIM >::GetDeathProbabilityInAnHour ( ) const
Returns
mProbabilityOfDeathInAnHour.

Definition at line 50 of file RandomCellKiller.cpp.

◆ OutputCellKillerParameters()

template<unsigned DIM>
void RandomCellKiller< DIM >::OutputCellKillerParameters ( out_stream &  rParamsFile)
virtual

Overridden OutputCellKillerParameters() method.

Parameters
rParamsFilethe file stream to which the parameters are output

Implements AbstractCellKiller< DIM >.

Definition at line 93 of file RandomCellKiller.cpp.

References AbstractCellKiller< SPACE_DIM >::OutputCellKillerParameters().

◆ serialize()

template<unsigned DIM>
template<class Archive >
void RandomCellKiller< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Archive the object.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 82 of file RandomCellKiller.hpp.

References SerializableSingleton< SINGLETON_CLASS >::GetSerializationWrapper(), and RandomNumberGenerator::Instance().

Friends And Related Symbol Documentation

◆ boost::serialization::access

template<unsigned DIM>
friend class boost::serialization::access
friend

Needed for serialization.

Definition at line 74 of file RandomCellKiller.hpp.

Member Data Documentation

◆ mProbabilityOfDeathInAnHour

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


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