00001 #include "LaubLoomisDictyNetworkEnsembleDirector.h"
00002
00003 CLaubLoomisDictyNetworkEnsembleDirector::CLaubLoomisDictyNetworkEnsembleDirector(int ensembleSize)
00004 :CEnsembleCombinationDirector(ensembleSize)
00005 {
00006 double maxSimTime = 91.0;
00007 int intTime = (int) (maxSimTime + 2);
00008 double stepSize = 0.0001;
00009 double frequency = 1.0;
00010 double moveTol = 1.0e-6;
00011 bool rateFlag = true;
00012 bool chemFlag = false;
00013 bool logsFlag = false;
00014 double timeWeight = 1.0;
00015 double rateWeight = 0.0;
00016 double chemWeight = 0.0;
00017 int nCells = 1;
00018
00019 int cnt = 0;
00020
00021
00022
00023 m_vpNetworks.push_back(new CLaubLoomisDictyNetwork());
00024 m_vpExperiments.push_back(new Experiment(m_vpNetworks[cnt],"Roos et. al. 1977"));
00025
00026 m_vpExperiments[cnt]->AddDataFileToList("../DataFiles/TimeSeries/cAMPiRoos.dat");
00027
00028 m_vpMovers.push_back(new CQualityControlCashKarpMover(frequency,stepSize,moveTol));
00029
00030 m_vpMinimizables.push_back(new SingleNetworkMinimizable());
00031
00032 m_vpMinimizables[cnt]->Initialize(m_vpExperiments[cnt],m_vpMovers[cnt],nCells,rateFlag,chemFlag,logsFlag,timeWeight,rateWeight,chemWeight);
00033 m_vpMinimizables[cnt]->SetRateConstantsWeight(0.0);
00034
00035 m_vpEnsembleDataPlotters.push_back(new GnuPlotterEnsembleDataDirectorObserver());
00036 m_vpEnsembleDataPlotters[0]->SetTitle("D. discoideum cAMP Production : Roos et. al. 1977 : ODE");
00037 m_vpEnsembleDataPlotters[0]->FixMinimizable(0);
00038 this->Attach(m_vpEnsembleDataPlotters[0]);
00039 cnt++;
00040
00041
00042 SumAllocate();
00043
00044
00045 DefineRuns();
00046
00047
00048 DefineExperiments();
00049
00050
00051 LoadEnsembleInfo("ensemble.par");
00052 }
00053
00054 CLaubLoomisDictyNetworkEnsembleDirector::~CLaubLoomisDictyNetworkEnsembleDirector(void)
00055 {
00056 for(int i = 0; i < m_vpEnsembleRunPlotters.size(); i++)
00057 {
00058 this->Detach(m_vpEnsembleRunPlotters[i]);
00059 }
00060 for(i = 0; i < m_vpEnsembleDataPlotters.size(); i++)
00061 {
00062 this->Detach(m_vpEnsembleDataPlotters[i]);
00063 }
00064 }
00065
00066 void CLaubLoomisDictyNetworkEnsembleDirector::DefineRuns()
00067 {
00068 return;
00069 }
00070
00071 void CLaubLoomisDictyNetworkEnsembleDirector::DefineExperiments()
00072 {
00073 return;
00074 }