DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
biomodule2.h
Go to the documentation of this file.
1 
2 // --------------------------------------------------------------------------
3 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
4 // AND EFFORT DISPLACEMENT
5 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
6 
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 
17 // You should have received a copy of the GNU General Public License along
18 // with this program; if not, write to the Free Software Foundation, Inc.,
19 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 // --------------------------------------------------------------------------
21 
22 
23 #ifndef BIOMODULE2_H
24 #define BIOMODULE2_H
25 
26 #include <Population.h>
27 #include <Node.h>
28 #include <Vessel.h>
29 #include <options.h>
30 
31 using namespace std;
32 
33 #include <errno.h>
34 
35 // for Windows
36 #ifdef _WIN32
37 #include <windows.h>
38 #include <direct.h>
39 #endif
40 
41 
42 
43 bool applyBiologicalModule2(int tstep, int a_month_i, const string &namesimu,
44  const string & namefolderinput, const string & namefolderoutput, const string & pathoutput,
45  ofstream & popstats,
46  ofstream &popdyn_N,
47  ofstream &popdyn_F,
48  ofstream &popdyn_SSB,
49  ofstream &popdyn_annual_indic,
50  ofstream &popnodes_inc,
51  ofstream &popnodes_impact,
52  ofstream &popnodes_cumulcatches_per_pop,
53  ofstream &nodes_envt,
54  ofstream &popnodes_cumftime,
55  ofstream &popnodes_cumsweptarea,
56  ofstream &popnodes_cumcatches,
57  ofstream &popnodes_cumcatches_with_threshold,
58  ofstream &popnodes_cumdiscards,
59  ofstream &popnodes_cumdiscardsratio,
60  ofstream &popnodes_nbchoked,
61  ofstream &popnodes_tariffs,
62  ofstream &export_individual_tacs,
63  ofstream &popnodes_end,
64  ofstream &benthosbiomassnodes,
65  ofstream &benthosnumbernodes,
66  int nbbenthospops,
67  bool use_gui,
68  const string & popstats_filename,
69  const string & popdyn_N_filename,
70  const string & popdyn_F_filename,
71  const string & popdyn_SSB_filename,
72  const string & popnodes_inc_filename,
73  const string & popnodes_end_filename,
74  const string & popnodes_impact_filename,
75  const string & popnodes_cumulcatches_per_pop_filename,
76  const string & nodes_envt_filename,
77  const string & popnodes_cumftime_filename,
78  const string & popnodes_cumsweptarea_filename,
79  const string & popnodes_cumcatches_filename,
80  const string & popnodes_cumcatches_with_threshold_filename,
81  const string & popnodes_cumdiscards_filename,
82  const string & popnodes_cumdiscardsratio_filename,
83  const string & popnodes_nbchoked_filename,
84  const string & popnodes_tariffs_filename,
85  const string & popnodes_benthos_biomass_filename,
86  const string & popnodes_benthos_number_filename,
87  const vector<int> & tsteps_quarters, const vector<int> & tsteps_semesters,
88  const vector<int> & tsteps_years, const vector<int> & tsteps_months,
89  const vector<int> & implicit_pops,
90  const vector<double> & calib_oth_landings,
91  vector<vector <double> >& selectivity_per_stock_ogives_for_oth_land,
92  bool is_tacs,
93  int export_vmslike,
94  int freq_do_growth,
95  const multimap<int,double> &init_weight_per_szgroup,
96  const vector<vector <double> > &species_interactions_mortality_proportion_matrix,
97  vector<Population* >& populations,
98  vector<Node* >&nodes,
99  vector<Vessel* >& vessels,
100  vector<Benthos* >& benthos,
101  const PopSceOptions &dyn_pop_sce,
103  vector<vector<double> > &Ws_at_szgroup,
104  vector<vector<vector<vector<double> > > > &predKernel,
105  vector<vector<double> > &searchVolMat,
106  vector<vector<double> > &juveniles_diet_preference,
107  vector<vector<double> > &adults_diet_preference,
108  vector<int> & mat_cats
109  );
110 
111 
112 #endif // BIOMODULE2_H
Definition: options.h:151
vector< int > implicit_pops
Definition: main.cpp:238
vector< Vessel * > vessels
Definition: main.cpp:199
DynAllocOptions dyn_alloc_sce
Definition: main.cpp:248
PopSceOptions dyn_pop_sce
Definition: main.cpp:249
string namefolderinput
Definition: main.cpp:427
vector< Node * > nodes
Definition: main.cpp:270
Definition: pathshop.cpp:8
vector< double > calib_oth_landings
Definition: main.cpp:243
int tstep
Definition: main.cpp:205
string namefolderoutput
Definition: main.cpp:428
ofstream export_individual_tacs
Definition: main.cpp:279
int freq_do_growth
Definition: main.cpp:218
Definition: options.h:157
vector< Population * > populations
Definition: main.cpp:202
bool is_tacs
Definition: main.cpp:224
string namesimu
Definition: main.cpp:430
int export_vmslike
Definition: main.cpp:440
bool use_gui
Definition: main.cpp:435
bool applyBiologicalModule2(int tstep, int a_month_i, const string &namesimu, const string &namefolderinput, const string &namefolderoutput, const string &pathoutput, ofstream &popstats, ofstream &popdyn_N, ofstream &popdyn_F, ofstream &popdyn_SSB, ofstream &popdyn_annual_indic, ofstream &popnodes_inc, ofstream &popnodes_impact, ofstream &popnodes_cumulcatches_per_pop, ofstream &nodes_envt, ofstream &popnodes_cumftime, ofstream &popnodes_cumsweptarea, ofstream &popnodes_cumcatches, ofstream &popnodes_cumcatches_with_threshold, ofstream &popnodes_cumdiscards, ofstream &popnodes_cumdiscardsratio, ofstream &popnodes_nbchoked, ofstream &popnodes_tariffs, ofstream &export_individual_tacs, ofstream &popnodes_end, ofstream &benthosbiomassnodes, ofstream &benthosnumbernodes, int nbbenthospops, bool use_gui, const string &popstats_filename, const string &popdyn_N_filename, const string &popdyn_F_filename, const string &popdyn_SSB_filename, const string &popnodes_inc_filename, const string &popnodes_end_filename, const string &popnodes_impact_filename, const string &popnodes_cumulcatches_per_pop_filename, const string &nodes_envt_filename, const string &popnodes_cumftime_filename, const string &popnodes_cumsweptarea_filename, const string &popnodes_cumcatches_filename, const string &popnodes_cumcatches_with_threshold_filename, const string &popnodes_cumdiscards_filename, const string &popnodes_cumdiscardsratio_filename, const string &popnodes_nbchoked_filename, const string &popnodes_tariffs_filename, const string &popnodes_benthos_biomass_filename, const string &popnodes_benthos_number_filename, const vector< int > &tsteps_quarters, const vector< int > &tsteps_semesters, const vector< int > &tsteps_years, const vector< int > &tsteps_months, const vector< int > &implicit_pops, const vector< double > &calib_oth_landings, vector< vector< double > > &selectivity_per_stock_ogives_for_oth_land, bool is_tacs, int export_vmslike, int freq_do_growth, const multimap< int, double > &init_weight_per_szgroup, const vector< vector< double > > &species_interactions_mortality_proportion_matrix, vector< Population * > &populations, vector< Node * > &nodes, vector< Vessel * > &vessels, vector< Benthos * > &benthos, const PopSceOptions &dyn_pop_sce, const DynAllocOptions &dyn_alloc_sce, vector< vector< double > > &Ws_at_szgroup, vector< vector< vector< vector< double > > > > &predKernel, vector< vector< double > > &searchVolMat, vector< vector< double > > &juveniles_diet_preference, vector< vector< double > > &adults_diet_preference, vector< int > &mat_cats)
Definition: biomodule2.cpp:81
int nbbenthospops
Definition: main.cpp:207