Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LaubLoomisDictyNetworkEnsembleDirector.cpp

Go to the documentation of this file.
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         // expt. 1 - Roos 1977
00022         // networks and data
00023         m_vpNetworks.push_back(new CLaubLoomisDictyNetwork());
00024         m_vpExperiments.push_back(new Experiment(m_vpNetworks[cnt],"Roos et. al. 1977"));
00025         // put data files here
00026         m_vpExperiments[cnt]->AddDataFileToList("../DataFiles/TimeSeries/cAMPiRoos.dat");
00027         // mover and plotter
00028         m_vpMovers.push_back(new CQualityControlCashKarpMover(frequency,stepSize,moveTol));
00029         // minimizable
00030         m_vpMinimizables.push_back(new SingleNetworkMinimizable());
00031         // parameters
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         // attach observer
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         // allocate space to accumulate statistics
00042         SumAllocate();
00043 
00044         // Define runs
00045         DefineRuns();
00046 
00047         // Define experiments
00048         DefineExperiments();
00049 
00050         // Load in the ensemble info
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 }

Generated on Mon Nov 3 09:37:55 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002