Chaste  Release::2017.1
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

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.

Referenced by RandomCellKiller< DIM >::serialize().

Member Function Documentation

template<unsigned DIM>
void RandomCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath ( )
virtual
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(), RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour, and RandomNumberGenerator::ranf().

Referenced by RandomCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), and RandomCellKiller< DIM >::serialize().

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

Definition at line 50 of file RandomCellKiller.cpp.

References RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour.

Referenced by RandomCellKiller< DIM >::serialize().

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 92 of file RandomCellKiller.cpp.

References EXPORT_TEMPLATE_CLASS_SAME_DIMS, RandomCellKiller< DIM >::mProbabilityOfDeathInAnHour, and AbstractCellKiller< SPACE_DIM >::OutputCellKillerParameters().

Referenced by RandomCellKiller< DIM >::serialize().

Friends And Related Function Documentation

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

Needed for serialization.

Definition at line 74 of file RandomCellKiller.hpp.

Member Data Documentation

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 >::CheckAndLabelSingleCellForApoptosis(), RandomCellKiller< DIM >::GetDeathProbabilityInAnHour(), RandomCellKiller< DIM >::OutputCellKillerParameters(), and RandomCellKiller< DIM >::RandomCellKiller().


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