#include <AbstractCaUpdateRule.hpp>
Inherits Identifiable.
Inherited by AdvectionCaUpdateRule< DIM >, and DiffusionCaUpdateRule< DIM >.
Public Member Functions | |
AbstractCaUpdateRule () | |
virtual | ~AbstractCaUpdateRule () |
virtual unsigned | GetNewLocationOfCell (unsigned currentLocationIndex, CaBasedCellPopulation< DIM > &rCellPopulation, double dt)=0 |
void | OutputUpdateRuleInfo (out_stream &rParamsFile) |
virtual void | OutputUpdateRuleParameters (out_stream &rParamsFile)=0 |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
An abstract CA update rule class.
Definition at line 44 of file AbstractCaUpdateRule.hpp.
AbstractCaUpdateRule< DIM >::AbstractCaUpdateRule | ( | ) | [inline] |
Default constructor.
Definition at line 32 of file AbstractCaUpdateRule.cpp.
AbstractCaUpdateRule< DIM >::~AbstractCaUpdateRule | ( | ) | [inline, virtual] |
Destructor.
Definition at line 37 of file AbstractCaUpdateRule.cpp.
virtual unsigned AbstractCaUpdateRule< DIM >::GetNewLocationOfCell | ( | unsigned | currentLocationIndex, | |
CaBasedCellPopulation< DIM > & | rCellPopulation, | |||
double | dt | |||
) | [pure virtual] |
Calculates the new location for a particular cell.
This method must be overridden in concrete classes.
currentLocationIndex | the current location index of a cell | |
rCellPopulation | reference to the cell population | |
dt | timestep of the simulation to calculate probability of movement in current timestep |
Implemented in AdvectionCaUpdateRule< DIM >, and DiffusionCaUpdateRule< DIM >.
void AbstractCaUpdateRule< DIM >::OutputUpdateRuleInfo | ( | out_stream & | rParamsFile | ) | [inline] |
Output update rule to file. Call OutputUpdateRuleParameters() to output all member variables to file.
rParamsFile | a file stream |
Definition at line 42 of file AbstractCaUpdateRule.cpp.
References Identifiable::GetIdentifier(), and AbstractCaUpdateRule< DIM >::OutputUpdateRuleParameters().
void AbstractCaUpdateRule< DIM >::OutputUpdateRuleParameters | ( | out_stream & | rParamsFile | ) | [inline, pure virtual] |
Output update rule parameters to file.
As this method is pure virtual, it must be overridden in subclasses.
rParamsFile | a file stream |
Implemented in AdvectionCaUpdateRule< DIM >, and DiffusionCaUpdateRule< DIM >.
Definition at line 52 of file AbstractCaUpdateRule.cpp.
Referenced by AbstractCaUpdateRule< DIM >::OutputUpdateRuleInfo().
void AbstractCaUpdateRule< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented in AdvectionCaUpdateRule< DIM >, and DiffusionCaUpdateRule< DIM >.
Definition at line 55 of file AbstractCaUpdateRule.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AdvectionCaUpdateRule< DIM >, and DiffusionCaUpdateRule< DIM >.
Definition at line 47 of file AbstractCaUpdateRule.hpp.