AbstractOdeBasedCellCycleModel Class Reference

#include <AbstractOdeBasedCellCycleModel.hpp>

Inherits AbstractCellCycleModel.

Inherited by AbstractOdeBasedCellCycleModelWithStoppingEvent.

Collaboration diagram for AbstractOdeBasedCellCycleModel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractOdeBasedCellCycleModel (double lastTime=SimulationTime::Instance()->GetTime())
 AbstractOdeBasedCellCycleModel (const AbstractOdeBasedCellCycleModel &rOtherModel)
virtual ~AbstractOdeBasedCellCycleModel ()
virtual void UpdateCellCyclePhase ()
virtual bool SolveOdeToTime (double currentTime)=0
virtual double GetOdeStopTime ()=0
void SetBirthTime (double birthTime)
std::vector< doubleGetProteinConcentrations () const
void SetProteinConcentrationsForTestsOnly (double lastTime, std::vector< double > proteinConcentrations)
virtual void ResetForDivision ()

Protected Attributes

AbstractOdeSystemmpOdeSystem
double mLastTime
double mDivideTime
bool mFinishedRunningOdes
double mG2PhaseStartTime

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Friends

class boost::serialization::access

Detailed Description

This class contains all the things common to standard cell cycle ODE models for intracellular protein concentrations (along the lines of Tyson & Novak), such as solving the ODEs until a stopping condition is met.

Definition at line 44 of file AbstractOdeBasedCellCycleModel.hpp.


Constructor & Destructor Documentation

AbstractOdeBasedCellCycleModel::AbstractOdeBasedCellCycleModel ( double  lastTime = SimulationTime::Instance()->GetTime()  ) 

Creates an AbstractOdeBasedCellCycleModel, calls SetBirthTime on the AbstractCellCycleModel to make sure that can be set 'back in time' for cells which did not divide at the current time.

Parameters:
lastTime The birth time of the cell / last time model was evaluated (defaults to the current SimulationTime)

Definition at line 31 of file AbstractOdeBasedCellCycleModel.cpp.

References SetBirthTime().

AbstractOdeBasedCellCycleModel::AbstractOdeBasedCellCycleModel ( const AbstractOdeBasedCellCycleModel rOtherModel  ) 

Copy constructor.

This is needed because we store and manage a pointer to an ODE system. Note that this class doesn't actually copy the ODE system, because each subclass will use a different type. Hence subclasses *must* copy their own ODE system in their copy constructor.

Parameters:
rOtherModel the cell cycle model being copied.

Definition at line 42 of file AbstractOdeBasedCellCycleModel.cpp.

AbstractOdeBasedCellCycleModel::~AbstractOdeBasedCellCycleModel (  )  [virtual]

This destructor deletes the mpOdeSystem.

Definition at line 53 of file AbstractOdeBasedCellCycleModel.cpp.

References mpOdeSystem.


Member Function Documentation

virtual double AbstractOdeBasedCellCycleModel::GetOdeStopTime (  )  [pure virtual]

This method must be implemented by each subclass

When the ODEs have reached a stopping event it returns the time at which the ODEs stopped running so a delay can be added in for S-G2-M phases if necessary.

Returns:
The time at which the ODE reached its stopping event.

Implemented in AbstractWntOdeBasedCellCycleModel, and TysonNovakCellCycleModel.

Referenced by UpdateCellCyclePhase().

std::vector< double > AbstractOdeBasedCellCycleModel::GetProteinConcentrations (  )  const

Returns the protein concentrations at the current time (useful for tests)

NB: Will copy the vector - you can't use this to modify the concentrations.

Definition at line 70 of file AbstractOdeBasedCellCycleModel.cpp.

References mpOdeSystem, and AbstractOdeSystem::rGetStateVariables().

void AbstractOdeBasedCellCycleModel::ResetForDivision (  )  [virtual]

For a naturally cycling model this does not need to be overridden in the subclasses. But most models should override this function and then call AbstractOdeBasedCellCycleModel::ResetForDivision() from inside their version.

Reimplemented from AbstractCellCycleModel.

Reimplemented in AbstractWntOdeBasedCellCycleModel, StochasticWntCellCycleModel, and TysonNovakCellCycleModel.

Definition at line 158 of file AbstractOdeBasedCellCycleModel.cpp.

References AbstractCellCycleModel::mBirthTime, mDivideTime, mFinishedRunningOdes, AbstractCellCycleModel::mG1Duration, and mLastTime.

template<class Archive >
void AbstractOdeBasedCellCycleModel::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]
void AbstractOdeBasedCellCycleModel::SetBirthTime ( double  birthTime  )  [virtual]

This overrides the AbstractCellCycleModel::SetBirthTime(double birthTime) because an ODE based cell cycle model has more to reset...

Parameters:
birthTime the simulation time when the cell was born

Reimplemented from AbstractCellCycleModel.

Definition at line 62 of file AbstractOdeBasedCellCycleModel.cpp.

References mDivideTime, and mLastTime.

Referenced by AbstractOdeBasedCellCycleModel().

void AbstractOdeBasedCellCycleModel::SetProteinConcentrationsForTestsOnly ( double  lastTime,
std::vector< double proteinConcentrations 
)

Sets the protein concentrations and time when the model was last evaluated - should only be called by tests

Parameters:
lastTime the SimulationTime at which the protein concentrations apply
proteinConcentrations a standard vector of doubles of protein concentrations

Definition at line 77 of file AbstractOdeBasedCellCycleModel.cpp.

References mLastTime, mpOdeSystem, AbstractOdeSystem::rGetStateVariables(), and AbstractOdeSystem::SetStateVariables().

virtual bool AbstractOdeBasedCellCycleModel::SolveOdeToTime ( double  currentTime  )  [pure virtual]

This method must be implemented by each subclass - solves the ODEs to a given time.

Parameters:
currentTime the current time
Returns:
Whether a stopping event occurred.

Implemented in AbstractVanLeeuwen2009WntSwatCellCycleModel, WntCellCycleModel, and TysonNovakCellCycleModel.

Referenced by UpdateCellCyclePhase().

void AbstractOdeBasedCellCycleModel::UpdateCellCyclePhase (  )  [virtual]

Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Member Data Documentation

The time at which the cell should divide - Set this to DBL_MAX in constructor.

Definition at line 77 of file AbstractOdeBasedCellCycleModel.hpp.

Referenced by ResetForDivision(), serialize(), SetBirthTime(), and UpdateCellCyclePhase().

Whether the cell cycle model is currently in a delay (not solving ODEs).

Definition at line 80 of file AbstractOdeBasedCellCycleModel.hpp.

Referenced by ResetForDivision(), serialize(), and UpdateCellCyclePhase().

The start time for the G2 phase

Definition at line 83 of file AbstractOdeBasedCellCycleModel.hpp.

Referenced by serialize(), and UpdateCellCyclePhase().

The system of ODEs for the cell cycle model.

Definition at line 71 of file AbstractOdeBasedCellCycleModel.hpp.

Referenced by AbstractVanLeeuwen2009WntSwatCellCycleModel::AbstractVanLeeuwen2009WntSwatCellCycleModel(), WntCellCycleModel::ChangeCellProliferativeTypeDueToCurrentBetaCateninLevel(), AbstractVanLeeuwen2009WntSwatCellCycleModel::ChangeCellProliferativeTypeDueToCurrentBetaCateninLevel(), AbstractVanLeeuwen2009WntSwatCellCycleModel::GetCytoplasmicBetaCateninLevel(), AbstractVanLeeuwen2009WntSwatCellCycleModel::GetMembraneBoundBetaCateninLevel(), AbstractVanLeeuwen2009WntSwatCellCycleModel::GetNuclearBetaCateninLevel(), GetProteinConcentrations(), WntCellCycleModel::Initialise(), AbstractVanLeeuwen2009WntSwatCellCycleModel::Initialise(), VanLeeuwen2009WntSwatCellCycleModelHypothesisTwo::InitialiseOdeSystem(), VanLeeuwen2009WntSwatCellCycleModelHypothesisOne::InitialiseOdeSystem(), WntCellCycleModel::load(), AbstractVanLeeuwen2009WntSwatCellCycleModel::load(), TysonNovakCellCycleModel::ResetForDivision(), AbstractWntOdeBasedCellCycleModel::ResetForDivision(), WntCellCycleModel::save(), AbstractVanLeeuwen2009WntSwatCellCycleModel::save(), serialize(), SetProteinConcentrationsForTestsOnly(), TysonNovakCellCycleModel::SolveOdeToTime(), WntCellCycleModel::SolveOdeToTime(), AbstractVanLeeuwen2009WntSwatCellCycleModel::SolveOdeToTime(), TysonNovakCellCycleModel::TysonNovakCellCycleModel(), UpdateCellCyclePhase(), AbstractWntOdeBasedCellCycleModel::UpdateCellProliferativeType(), WntCellCycleModel::WntCellCycleModel(), and ~AbstractOdeBasedCellCycleModel().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2