Chaste Release::3.1
|
#include <AbstractPottsUpdateRule.hpp>
Public Member Functions | |
AbstractPottsUpdateRule () | |
virtual | ~AbstractPottsUpdateRule () |
virtual double | EvaluateHamiltonianContribution (unsigned currentNodeIndex, unsigned targetNodeIndex, PottsBasedCellPopulation< DIM > &rCellPopulation)=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 Potts update rule class, for use in cell-based simulations using the cellular Potts model.
Definition at line 52 of file AbstractPottsUpdateRule.hpp.
AbstractPottsUpdateRule< DIM >::AbstractPottsUpdateRule | ( | ) |
Default constructor.
Definition at line 39 of file AbstractPottsUpdateRule.cpp.
AbstractPottsUpdateRule< DIM >::~AbstractPottsUpdateRule | ( | ) | [virtual] |
Destructor.
Definition at line 44 of file AbstractPottsUpdateRule.cpp.
virtual double AbstractPottsUpdateRule< DIM >::EvaluateHamiltonianContribution | ( | unsigned | currentNodeIndex, |
unsigned | targetNodeIndex, | ||
PottsBasedCellPopulation< DIM > & | rCellPopulation | ||
) | [pure virtual] |
Calculate the contribution to the Hamiltonian.
currentNodeIndex | The index of the current node/lattice site |
targetNodeIndex | The index of the target node/lattice site |
rCellPopulation | The cell population |
Implemented in AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
void AbstractPottsUpdateRule< DIM >::OutputUpdateRuleInfo | ( | out_stream & | rParamsFile | ) |
Output update rule to file. Call OutputUpdateRuleParameters() to output all member variables to file.
rParamsFile | a file stream |
Definition at line 49 of file AbstractPottsUpdateRule.cpp.
void AbstractPottsUpdateRule< DIM >::OutputUpdateRuleParameters | ( | out_stream & | rParamsFile | ) | [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 AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, DifferentialAdhesionPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
Definition at line 59 of file AbstractPottsUpdateRule.cpp.
Referenced by VolumeConstraintPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), SurfaceAreaConstraintPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), ChemotaxisPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), and AdhesionPottsUpdateRule< DIM >::OutputUpdateRuleParameters().
void AbstractPottsUpdateRule< DIM >::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Serialize the object.
archive | the archive |
version | the current version of this class |
Reimplemented in AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, DifferentialAdhesionPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
Definition at line 63 of file AbstractPottsUpdateRule.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, DifferentialAdhesionPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
Definition at line 55 of file AbstractPottsUpdateRule.hpp.