DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
fishfarmdata.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 FISHFARMDATA_H
22 #define FISHFARMDATA_H
23 
24 #include <Fishfarm.h>
25 #include <QList>
26 
27 #include <memory>
28 
29 class FishfarmStats;
30 
32 {
33 
34  int mIdx;
35  int mFishfarmId;
36 
37 public:
38  std::shared_ptr<Fishfarm> mFishfarm; /* This is crap too. */
39 
40  FishfarmData(std::shared_ptr<Fishfarm> fishfarm);
41 
42  int getId() const { return mFishfarmId; }
43 
44 
45  double getX() const;
46  double getY() const;
47 
48  int getIdx() const;
49  void setIdx(int idx);
50 
51 
52 private:
53  double mX;
54  double mY;
55  };
56 
58 public:
59  double x;
60  double y;
61 
62 };
63 
64 #endif // FISHFARMDATA_H
FishfarmData(std::shared_ptr< Fishfarm > fishfarm)
Definition: fishfarmdata.cpp:23
double x
Definition: fishfarmdata.h:59
double y
Definition: fishfarmdata.h:60
std::shared_ptr< Fishfarm > mFishfarm
Definition: fishfarmdata.h:38
int getIdx() const
Definition: fishfarmdata.cpp:40
void setIdx(int idx)
Definition: fishfarmdata.cpp:45
double getY() const
Definition: fishfarmdata.cpp:35
Definition: fishfarmdata.h:57
Definition: fishfarmdata.h:31
double getX() const
Definition: fishfarmdata.cpp:30
int getId() const
Definition: fishfarmdata.h:42