#include <AbstractPottsUpdateRule.hpp>
Inherits Identifiable.
Inherited by AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
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 45 of file AbstractPottsUpdateRule.hpp.
AbstractPottsUpdateRule< DIM >::AbstractPottsUpdateRule | ( | ) | [inline] |
Default constructor.
Definition at line 32 of file AbstractPottsUpdateRule.cpp.
AbstractPottsUpdateRule< DIM >::~AbstractPottsUpdateRule | ( | ) | [inline, virtual] |
Destructor.
Definition at line 37 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 | ) | [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 AbstractPottsUpdateRule.cpp.
References Identifiable::GetIdentifier(), and AbstractPottsUpdateRule< DIM >::OutputUpdateRuleParameters().
void AbstractPottsUpdateRule< 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 AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, DifferentialAdhesionPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.
Definition at line 52 of file AbstractPottsUpdateRule.cpp.
Referenced by AbstractPottsUpdateRule< DIM >::OutputUpdateRuleInfo().
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 56 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 48 of file AbstractPottsUpdateRule.hpp.