00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef ABSTRACTCELLCENTREBASEDCELLPOPULATION_HPP_
00029 #define ABSTRACTCELLCENTREBASEDCELLPOPULATION_HPP_
00030
00031 #include "AbstractCellPopulation.hpp"
00032
00033
00034 #include "WildTypeCellMutationState.hpp"
00035
00040 template<unsigned DIM>
00041 class AbstractCentreBasedCellPopulation : public AbstractCellPopulation<DIM>
00042 {
00043 private:
00045 friend class boost::serialization::access;
00052 template<class Archive>
00053 void serialize(Archive & archive, const unsigned int version)
00054 {
00055
00056
00057 archive & boost::serialization::base_object<AbstractCellPopulation<DIM> >(*this);
00058 archive & mMeinekeDivisionSeparation;
00059 }
00060
00061 protected:
00062
00067 double mMeinekeDivisionSeparation;
00068
00072 AbstractCentreBasedCellPopulation();
00073
00074 public:
00075
00082 AbstractCentreBasedCellPopulation(std::vector<CellPtr>& rCells,
00083 const std::vector<unsigned> locationIndices=std::vector<unsigned>());
00084
00093 c_vector<double, DIM> GetLocationOfCellCentre(CellPtr pCell);
00094
00102 Node<DIM>* GetNodeCorrespondingToCell(CellPtr pCell);
00103
00113 CellPtr AddCell(CellPtr pNewCell, const c_vector<double,DIM>& rCellDivisionVector, CellPtr pParentCell=CellPtr());
00114
00122 bool IsCellAssociatedWithADeletedLocation(CellPtr pCell);
00123
00130 virtual void UpdateNodeLocations(const std::vector< c_vector<double, DIM> >& rNodeForces, double dt);
00131
00148 virtual double GetDampingConstant(unsigned nodeIndex);
00149
00158 void GenerateCellResults(unsigned locationIndex,
00159 std::vector<unsigned>& rCellProliferativeTypeCounter,
00160 std::vector<unsigned>& rCellCyclePhaseCounter);
00161
00165 virtual void GenerateCellResultsAndWriteToFiles();
00166
00170 virtual void WriteTimeAndNodeResultsToFiles();
00171
00180 virtual bool IsGhostNode(unsigned index);
00181
00185 double GetMeinekeDivisionSeparation();
00186
00192 void SetMeinekeDivisionSeparation(double divisionSeparation);
00193
00199 virtual void OutputCellPopulationParameters(out_stream& rParamsFile);
00200 };
00201
00202 #endif