36#ifndef CHECKREADYTODIVIDEANDPHASEISUPDATED_HPP_
37#define CHECKREADYTODIVIDEANDPHASEISUPDATED_HPP_
39#include <cxxtest/TestSuite.h>
41#include "AbstractSimpleCellCycleModel.hpp"
42#include "AbstractPhaseBasedCellCycleModel.hpp"
43#include "DifferentiatedCellProliferativeType.hpp"
58 double g2Duration=DBL_MAX)
60 if (g2Duration==DBL_MAX)
65 double age = pModel->
GetAge();
67 const double G1TOL = 1e-5;
75 std::cout <<
"G1 duration mismatch: actual = " << pModel->
GetG1Duration()
76 <<
", expected = " << g1Duration
86 else if (age < pModel->GetMDuration())
92 else if (age < pModel->GetMDuration() + g1Duration - G1TOL)
102 std::cout <<
"Expected G1: " << g1Duration
105 <<
"; G1-S transition = " << pModel->
GetMDuration() + g1Duration
109 else if (age < pModel->GetMDuration() + g1Duration + pModel->
GetSDuration() - G1TOL)
116 else if (age < pModel->GetMDuration() + g1Duration + pModel->
GetSDuration() + g2Duration - G1TOL)
141 double cellCycleDuration)
143 double age = pModel->
GetAge();
145 const double CCDTOL = 1e-5;
152 <<
", expected = " << cellCycleDuration
162 else if (age < cellCycleDuration)
const double DOUBLE_UNSET
virtual double GetSDuration() const
CellCyclePhase GetCurrentCellCyclePhase() const
virtual double GetG1Duration() const
virtual double GetG2Duration() const
virtual bool ReadyToDivide()
virtual double GetMDuration() const
double GetCellCycleDuration() const
virtual bool ReadyToDivide()