#include <TargetedCellKiller.hpp>
Public Member Functions | |
TargetedCellKiller (AbstractCellPopulation< DIM > *pCellPopulation, unsigned targetedIndex, bool bloodLust=true) | |
unsigned | GetTargetIndex () const |
unsigned | GetBloodLust () const |
void | TestAndLabelCellsForApoptosisOrDeath () |
void | OutputCellKillerParameters (out_stream &rParamsFile) |
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 |
Definition at line 41 of file TargetedCellKiller.hpp.
TargetedCellKiller< DIM >::TargetedCellKiller | ( | AbstractCellPopulation< DIM > * | pCellPopulation, | |
unsigned | targetedIndex, | |||
bool | bloodLust = true | |||
) | [inline] |
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 31 of file TargetedCellKiller.cpp.
void TargetedCellKiller< 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 | the archive | |
version | the current version of this class |
Reimplemented from AbstractCellKiller< DIM >.
Definition at line 72 of file TargetedCellKiller.hpp.
unsigned TargetedCellKiller< DIM >::GetTargetIndex | ( | ) | const [inline] |
Definition at line 39 of file TargetedCellKiller.cpp.
References TargetedCellKiller< DIM >::mTargetIndex.
unsigned TargetedCellKiller< DIM >::GetBloodLust | ( | ) | const [inline] |
Definition at line 45 of file TargetedCellKiller.cpp.
References TargetedCellKiller< DIM >::mBloodLust.
void TargetedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath | ( | ) | [inline, virtual] |
Loop over cells and start apoptosis randomly, based on the user-set probability
Implements AbstractCellKiller< DIM >.
Definition at line 51 of file TargetedCellKiller.cpp.
References AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), AbstractCellPopulation< DIM >::GetNumRealCells(), TargetedCellKiller< DIM >::mBloodLust, AbstractCellKiller< DIM >::mpCellPopulation, and TargetedCellKiller< DIM >::mTargetIndex.
void TargetedCellKiller< DIM >::OutputCellKillerParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Outputs cell killer parameters to file
As this method is pure virtual, it must be overridden in subclasses.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellKiller< DIM >.
Definition at line 62 of file TargetedCellKiller.cpp.
References TargetedCellKiller< DIM >::mBloodLust, TargetedCellKiller< DIM >::mTargetIndex, and AbstractCellKiller< SPACE_DIM >::OutputCellKillerParameters().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellKiller< DIM >.
Definition at line 59 of file TargetedCellKiller.hpp.
unsigned TargetedCellKiller< DIM >::mTargetIndex [private] |
The index of the cell to kill
Definition at line 48 of file TargetedCellKiller.hpp.
Referenced by TargetedCellKiller< DIM >::GetTargetIndex(), TargetedCellKiller< DIM >::OutputCellKillerParameters(), and TargetedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath().
bool TargetedCellKiller< DIM >::mBloodLust [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 55 of file TargetedCellKiller.hpp.
Referenced by TargetedCellKiller< DIM >::GetBloodLust(), TargetedCellKiller< DIM >::OutputCellKillerParameters(), and TargetedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath().