DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
benthos.h
Go to the documentation of this file.
1 /* --------------------------------------------------------------------------
2  * DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3  * AND EFFORT DISPLACEMENT
4  * Copyright (c) 2012, 2013, 2014 Francois Bastardie <fba@aqua.dtu.dk>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  * --------------------------------------------------------------------------
20  */
21 #ifndef BENTHOS_H
22 #define BENTHOS_H
23 
24 #include <QMap>
25 #include <QString>
26 
27 class NodeData;
28 
29 class Benthos
30 {
31  int mBenthosId;
32  int mIdx;
33  QList<NodeData *> mNodes;
34 
35 public:
36  explicit Benthos(int id);
37 
38  int getId() const { return mBenthosId; }
39  const QList<NodeData *> getNodes() const { return mNodes; }
40 
41  void setNodes(const QList<NodeData *> &nodes);
42  void appendNode (NodeData *node);
43 
44  int getIdx() const;
45  void setIdx(int idx);
46 };
47 
48 #endif // BENTHOS_H
int getId() const
Definition: benthos.h:38
void setNodes(const QList< NodeData * > &nodes)
Definition: benthos.cpp:29
void setIdx(int idx)
Definition: benthos.cpp:44
vector< Node * > nodes
Definition: main.cpp:270
void appendNode(NodeData *node)
Definition: benthos.cpp:34
an extension class for Node
Definition: nodedata.h:43
Benthos(int id, int marine_landscape, const vector< Node * > &nodes, const vector< double > &prop_funcgr_biomass_per_node, const vector< double > &prop_funcgr_number_per_node, const vector< double > &meanw_funcgr_number_per_node, const vector< double > &recovery_rates_per_funcgr, const vector< double > &benthos_biomass_carrying_capacity_K_per_landscape_per_funcgr, const vector< double > &benthos_number_carrying_capacity_K_per_landscape_per_funcgr, bool is_benthos_in_numbers, const vector< double > &h_betas_per_pop)
Definition: Benthos.cpp:29
Definition: Benthos.h:32
const QList< NodeData * > getNodes() const
Definition: benthos.h:39
int getIdx() const
Definition: benthos.cpp:39