Chaste
Release::2017.1
|
#include <TargetedCellKiller.hpp>
Public Member Functions | |
TargetedCellKiller (AbstractCellPopulation< DIM > *pCellPopulation, unsigned targetedIndex, bool bloodLust=true) | |
unsigned | GetTargetIndex () const |
unsigned | GetBloodLust () const |
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 | |
unsigned | mTargetIndex |
bool | mBloodLust |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from AbstractCellKiller< DIM > | |
AbstractCellPopulation< SPACE_DIM > * | mpCellPopulation |
Simple cell killer, which at the first timestep kills any cell whose corresponding location index is a given number.
Definition at line 49 of file TargetedCellKiller.hpp.
TargetedCellKiller< DIM >::TargetedCellKiller | ( | AbstractCellPopulation< DIM > * | pCellPopulation, |
unsigned | targetedIndex, | ||
bool | bloodLust = true |
||
) |
Default constructor.
pCellPopulation | pointer to the cell population |
targetedIndex | The index of the cell to kill |
bloodLust | Wether to kill cells or not defaults to true (used by load methods) |
Definition at line 39 of file TargetedCellKiller.cpp.
Referenced by TargetedCellKiller< DIM >::serialize().
|
virtual |
Loop over cells and start apoptosis randomly, based on the user-set probability.
Implements AbstractCellKiller< DIM >.
Definition at line 59 of file TargetedCellKiller.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellUsingLocationIndex(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNumRealCells(), TargetedCellKiller< DIM >::mBloodLust, AbstractCellKiller< DIM >::mpCellPopulation, and TargetedCellKiller< DIM >::mTargetIndex.
Referenced by TargetedCellKiller< DIM >::serialize().
unsigned TargetedCellKiller< DIM >::GetBloodLust | ( | ) | const |
Definition at line 53 of file TargetedCellKiller.cpp.
References TargetedCellKiller< DIM >::mBloodLust.
Referenced by TargetedCellKiller< DIM >::serialize().
unsigned TargetedCellKiller< DIM >::GetTargetIndex | ( | ) | const |
Definition at line 47 of file TargetedCellKiller.cpp.
References TargetedCellKiller< DIM >::mTargetIndex.
Referenced by TargetedCellKiller< DIM >::serialize().
|
virtual |
Overridden OutputCellKillerParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellKiller< DIM >.
Definition at line 70 of file TargetedCellKiller.cpp.
References EXPORT_TEMPLATE_CLASS_SAME_DIMS, TargetedCellKiller< DIM >::mBloodLust, TargetedCellKiller< DIM >::mTargetIndex, and AbstractCellKiller< SPACE_DIM >::OutputCellKillerParameters().
Referenced by TargetedCellKiller< DIM >::serialize().
|
inlineprivate |
Archive the object.
archive | the archive |
version | the current version of this class |
Definition at line 73 of file TargetedCellKiller.hpp.
References TargetedCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), EXPORT_TEMPLATE_CLASS_SAME_DIMS, TargetedCellKiller< DIM >::GetBloodLust(), AbstractCellKiller< DIM >::GetCellPopulation(), TargetedCellKiller< DIM >::GetTargetIndex(), TargetedCellKiller< DIM >::OutputCellKillerParameters(), and TargetedCellKiller< DIM >::TargetedCellKiller().
|
friend |
Needed for serialization.
Definition at line 65 of file TargetedCellKiller.hpp.
|
private |
Variable to reack when the cell has been killed. Once the cell has been called mBloodLust will stop the killer killing more cells.
Definition at line 62 of file TargetedCellKiller.hpp.
Referenced by TargetedCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), TargetedCellKiller< DIM >::GetBloodLust(), and TargetedCellKiller< DIM >::OutputCellKillerParameters().
|
private |
The index of the cell to kill
Definition at line 56 of file TargetedCellKiller.hpp.
Referenced by TargetedCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), TargetedCellKiller< DIM >::GetTargetIndex(), and TargetedCellKiller< DIM >::OutputCellKillerParameters().