DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
firmdata.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-2019 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 FIRMDATA_H
22 #define FIRMDATA_H
23 
24 #include <Firm.h>
25 #include <QList>
26 
27 #include <memory>
28 
29 class FirmStats;
30 
31 class FirmData
32 {
33 public:
34  std::shared_ptr<Firm> mFirm; /* This is crap too. */
35 
36  FirmData(std::shared_ptr<Firm> firm);
37 
38  double getX() const;
39  double getY() const;
40 
41 private:
42  double mX;
43  double mY;
44  };
45 
46 class FirmStats {
47 public:
48  double x;
49  double y;
50 
51 };
52 
53 #endif // FIRMDATA_H
double x
Definition: firmdata.h:48
double getX() const
Definition: firmdata.cpp:28
Definition: firmdata.h:46
double getY() const
Definition: firmdata.cpp:33
Definition: firmdata.h:31
FirmData(std::shared_ptr< Firm > firm)
Definition: firmdata.cpp:23
double y
Definition: firmdata.h:49
std::shared_ptr< Firm > mFirm
Definition: firmdata.h:34