EcoliSimulator  2.0.1a
simulation_2MultiT.hpp
Go to the documentation of this file.
1 //
2 // simulation_2MultiT.hpp
3 // Ecoli_4.1.5
4 //
5 // Created by Stefano Belloni on 24/05/16.
6 // Copyright © 2016 Stefano Belloni. All rights reserved.
7 //
8 
9 #ifndef simulation_2MultiT_hpp
10 #define simulation_2MultiT_hpp
11 
12 #include <stdio.h>
13 #include <string>
14 
15 #include "Funz_C.h"
16 #include "E_Coli.h"
17 #include "LoadBar.hpp"
18 
19 int Stima_tempo(int n_c, int n_val_termine, int &j_cel_finale, int &j_cel_inizio, time_t timer1);
20 int initial_position(int j,double *x, double *x0, double Raggio, int num_dist, int &cont_dist_5, int delta_dist_cont, double Delta_delta_dist);
21 void timestamp ( );
22 //void loadbar(unsigned int x, unsigned int n, int time_, unsigned int w);
23 
24 void funz_clear();
25 int simulation_2(E_coli *batterio, double T_f,Funz_C *f,double *x0,double dt,int n_c,double Raggio,int delta_dist, int num_dist,int const_salv, std::string *names_files_Ecoli_mod, std::string names_indice_mod, std::string *names_files_tau_mod, std::string names_file_dyn_mod, std::string *names_info_mod, int n_sim, int cont_gen_sim, int tot_bacteria, int n_thread = 1);
26 
27 void startThreadSimulation(E_coli *batterio, double T_f,Funz_C *f,array<double,2> x0,double dt,int n_c,double Raggio,int delta_dist, int num_dist,int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread, int& dim_colonne);
28 
29 string setNametempFiles(string name, int n_thread);
30 
31 int simulation_2MultiT(E_coli *batterio, double T_f,Funz_C *f,double *x0,double dt,int n_c,double Raggio,int delta_dist, int num_dist,int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread);
32 
33 void makeDuplicate(E_coli* batterio, vector<E_coli*>& batterioCopy, Funz_C* f, vector<Funz_C*>& fCopy, int n_thread);
34 
35 int mergeFilesSimulation(int n_thread, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod);
36 
37 #endif /* simulation_2MultiT_hpp */
string setNametempFiles(string name, int n_thread)
set the name of the temporary files ...
Definition: simulation_2MultiT.cpp:159
void makeDuplicate(E_coli *batterio, vector< E_coli * > &batterioCopy, Funz_C *f, vector< Funz_C * > &fCopy, int n_thread)
This function create a duplicate of the base bacterium and f_c:
Definition: simulation_2MultiT.cpp:421
int simulation_2MultiT(E_coli *batterio, double T_f, Funz_C *f, double *x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread)
Function that performs the actual simulation of independent population.
Definition: simulation_2MultiT.cpp:67
Base Class for a bacterium: It implements the virtual function to evolve the dynamic of the bacterium...
Definition: E_Coli.h:63
int mergeFilesSimulation(int n_thread, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod)
This function merges the files together.
Definition: simulation_2MultiT.cpp:536
int simulation_2(E_coli *batterio, double T_f, Funz_C *f, double *x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, std::string *names_files_Ecoli_mod, std::string names_indice_mod, std::string *names_files_tau_mod, std::string names_file_dyn_mod, std::string *names_info_mod, int n_sim, int cont_gen_sim, int tot_bacteria, int n_thread=1)
int initial_position(int j, double *x, double *x0, double Raggio, int num_dist, int &cont_dist_5, int delta_dist_cont, double Delta_delta_dist)
Definition: initial_distribution.cpp:22
#define n_val_termine
Definition: simulation_2.cpp:48
int Stima_tempo(int n_c, int n_val_termine, int &j_cel_finale, int &j_cel_inizio, time_t timer1)
Definition: Stima_tempo.cpp:19
Base class for the function describing the ligand concentration.
Definition: Funz_C.h:76
void funz_clear()
Definition: clear_Bild.cpp:9
void startThreadSimulation(E_coli *batterio, double T_f, Funz_C *f, array< double, 2 > x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread, int &dim_colonne)
Definition: simulation_2MultiT.cpp:171
void timestamp()
Definition: timestamp.cpp:13