SimpleWntCellCycleModel.hpp

00001 /*
00002 
00003 Copyright (C) University of Oxford, 2005-2011
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 
00029 #ifndef SIMPLEWNTCELLCYCLEMODEL_HPP_
00030 #define SIMPLEWNTCELLCYCLEMODEL_HPP_
00031 
00032 #include "AbstractSimpleCellCycleModel.hpp"
00033 #include "RandomNumberGenerator.hpp"
00034 #include "WntConcentration.hpp"
00035 
00036 // Needed here to avoid serialization errors
00037 #include "WildTypeCellMutationState.hpp"
00038 #include "CellLabel.hpp"
00039 #include "ApcOneHitCellMutationState.hpp"
00040 #include "ApcTwoHitCellMutationState.hpp"
00041 #include "BetaCateninOneHitCellMutationState.hpp"
00042 
00043 
00047 class SimpleWntCellCycleModel : public AbstractSimpleCellCycleModel
00048 {
00049 private:
00050 
00052     friend class boost::serialization::access;
00059     template<class Archive>
00060     void serialize(Archive & archive, const unsigned int version)
00061     {
00062         archive & boost::serialization::base_object<AbstractSimpleCellCycleModel>(*this);
00063 
00064         RandomNumberGenerator* p_gen = RandomNumberGenerator::Instance();
00065         archive & *p_gen;
00066 
00067         archive & mUseCellProliferativeTypeDependentG1Duration;
00068         archive & mWntStemThreshold;
00069         archive & mWntTransitThreshold;
00070         archive & mWntLabelledThreshold;
00071     }
00072 
00073 protected:
00074 
00079     bool mUseCellProliferativeTypeDependentG1Duration;
00080 
00084     double mWntStemThreshold;
00085 
00089     double mWntTransitThreshold;
00090 
00094     double mWntLabelledThreshold;
00095 
00099     double GetWntLevel();
00100 
00105     WntConcentrationType GetWntType();
00106 
00116     void SetG1Duration();
00117 
00118 public:
00119 
00124     SimpleWntCellCycleModel();
00125 
00129     virtual void UpdateCellCyclePhase();
00130 
00134     virtual void InitialiseDaughterCell();
00135 
00140     virtual AbstractCellCycleModel* CreateCellCycleModel();
00141 
00146     void SetUseCellProliferativeTypeDependentG1Duration(bool useCellProliferativeTypeDependentG1Duration=true);
00147 
00151     virtual bool CanCellTerminallyDifferentiate();
00152 
00156     double GetWntStemThreshold();
00157 
00163     void SetWntStemThreshold(double wntStemThreshold);
00164 
00168     double GetWntTransitThreshold();
00169 
00175     void SetWntTransitThreshold(double wntTransitThreshold);
00176 
00180     double GetWntLabelledThreshold();
00181 
00187     void SetWntLabelledThreshold(double wntLabelledThreshold);
00188 
00194     virtual void OutputCellCycleModelParameters(out_stream& rParamsFile);
00195 };
00196 
00197 #include "SerializationExportWrapper.hpp"
00198 // Declare identifier for the serializer
00199 CHASTE_CLASS_EXPORT(SimpleWntCellCycleModel)
00200 
00201 #endif /*SIMPLEWNTCELLCYCLEMODEL_HPP_*/
Generated on Thu Dec 22 13:00:05 2011 for Chaste by  doxygen 1.6.3