AbstractVanLeeuwen2009WntSwatCellCycleModel.hpp

00001 /*
00002 
00003 Copyright (C) University of Oxford, 2005-2010
00004 
00005 University of Oxford means the Chancellor, Masters and Scholars of the
00006 University of Oxford, having an administrative office at Wellington
00007 Square, Oxford OX1 2JD, UK.
00008 
00009 This file is part of Chaste.
00010 
00011 Chaste is free software: you can redistribute it and/or modify it
00012 under the terms of the GNU Lesser General Public License as published
00013 by the Free Software Foundation, either version 2.1 of the License, or
00014 (at your option) any later version.
00015 
00016 Chaste is distributed in the hope that it will be useful, but WITHOUT
00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00019 License for more details. The offer of Chaste under the terms of the
00020 License is subject to the License being interpreted in accordance with
00021 English Law and subject to any action against the University of Oxford
00022 being under the jurisdiction of the English Courts.
00023 
00024 You should have received a copy of the GNU Lesser General Public License
00025 along with Chaste. If not, see <http://www.gnu.org/licenses/>.
00026 
00027 */
00028 #ifndef ABSTRACTVANLEEUWEN2009WNTSWATCELLCYCLEMODEL_HPP_
00029 #define ABSTRACTVANLEEUWEN2009WNTSWATCELLCYCLEMODEL_HPP_
00030 
00031 #include "ChasteSerialization.hpp"
00032 #include "ClassIsAbstract.hpp"
00033 #include <boost/serialization/base_object.hpp>
00034 #include <boost/serialization/split_member.hpp>
00035 #include <boost/serialization/shared_ptr.hpp>
00036 
00037 #include <cfloat>
00038 
00039 #include "AbstractOdeSystem.hpp"
00040 #include "AbstractWntOdeBasedCellCycleModel.hpp"
00041 #include "VanLeeuwen2009WntSwatCellCycleOdeSystem.hpp"
00042 #include "AbstractCellMutationState.hpp"
00043 #include "Exception.hpp"
00044 
00045 
00052 class AbstractVanLeeuwen2009WntSwatCellCycleModel : public AbstractWntOdeBasedCellCycleModel
00053 {
00054 private:
00055 
00057     friend class boost::serialization::access;
00064     template<class Archive>
00065     void save(Archive & archive, const unsigned int version) const
00066     {
00067         assert(mpOdeSystem);
00068         archive & boost::serialization::base_object<AbstractWntOdeBasedCellCycleModel>(*this);
00069         boost::shared_ptr<AbstractCellMutationState> p_mutation_state = static_cast<VanLeeuwen2009WntSwatCellCycleOdeSystem*>(mpOdeSystem)->GetMutationState();
00070         archive & p_mutation_state;
00071     }
00072 
00079     template<class Archive>
00080     void load(Archive & archive, const unsigned int version)
00081     {
00082         /*
00083          * The ODE system is set up by the archiving constructor, so we can set the mutation state
00084          * here. This is a horrible hack, but avoids having to regenerate test archives.
00085          */
00086         boost::shared_ptr<AbstractCellMutationState> p_mutation_state;
00087         InitialiseOdeSystem(0.0, p_mutation_state);
00088         assert(mpOdeSystem);
00089         archive & boost::serialization::base_object<AbstractWntOdeBasedCellCycleModel>(*this);
00090         archive & p_mutation_state;
00091         static_cast<VanLeeuwen2009WntSwatCellCycleOdeSystem*>(mpOdeSystem)->SetMutationState(p_mutation_state);
00092     }
00093     BOOST_SERIALIZATION_SPLIT_MEMBER()
00094 
00095     
00103     void ChangeCellProliferativeTypeDueToCurrentBetaCateninLevel();
00104 
00105 public:
00106 
00110     AbstractVanLeeuwen2009WntSwatCellCycleModel();
00111 
00119     AbstractVanLeeuwen2009WntSwatCellCycleModel(const AbstractVanLeeuwen2009WntSwatCellCycleModel& rOtherModel);
00120 
00121 
00127     void Initialise();
00128 
00135     bool SolveOdeToTime(double currentTime);
00136 
00140     double GetMembraneBoundBetaCateninLevel();
00141 
00145     double GetCytoplasmicBetaCateninLevel();
00146 
00150     double GetNuclearBetaCateninLevel();
00151 
00160     virtual void InitialiseOdeSystem(double wntConcentration, boost::shared_ptr<AbstractCellMutationState> pMutationState)=0;
00161 };
00162 
00163 CLASS_IS_ABSTRACT(AbstractVanLeeuwen2009WntSwatCellCycleModel)
00164 
00165 #endif /*ABSTRACTVANLEEUWEN2009WNTSWATCELLCYCLEMODEL_HPP_*/
00166 

Generated by  doxygen 1.6.2