36 #ifndef CHECKREADYTODIVIDEANDPHASEISUPDATED_HPP_
37 #define CHECKREADYTODIVIDEANDPHASEISUPDATED_HPP_
39 #include <cxxtest/TestSuite.h>
41 #include "AbstractCellCycleModel.hpp"
42 #include "DifferentiatedCellProliferativeType.hpp"
57 double g2Duration=DBL_MAX)
59 if (g2Duration==DBL_MAX)
64 double age = pModel->
GetAge();
66 const double G1TOL = 1e-5;
74 std::cout <<
"G1 duration mismatch: actual = " << pModel->
GetG1Duration()
75 <<
", expected = " << g1Duration
85 else if (age < pModel->GetMDuration())
91 else if (age < pModel->GetMDuration() + g1Duration - G1TOL)
101 std::cout <<
"Expected G1: " << g1Duration
104 <<
"; G1-S transition = " << pModel->
GetMDuration() + g1Duration
108 else if (age < pModel->GetMDuration() + g1Duration + pModel->
GetSDuration() - G1TOL)
115 else if (age < pModel->GetMDuration() + g1Duration + pModel->
GetSDuration() + g2Duration - G1TOL)
virtual double GetSDuration()
virtual double GetMDuration()
const double DOUBLE_UNSET
virtual bool ReadyToDivide()
CellCyclePhase GetCurrentCellCyclePhase()
virtual double GetG1Duration()
virtual double GetG2Duration()