FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTbindingspatialaction.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTBINDINGSPATIALACTION_H_INCLUDED
9#define FMTBINDINGSPATIALACTION_H_INCLUDED
10
11#include <vector>
12#include <limits>
13#include <cstddef>
14
15namespace Spatial
16
17{
19 {
20 std::vector<int>neighbors;
21 size_t minimal_green_up;
22 size_t maximal_green_up;
23 size_t minimal_adjacency;
24 size_t maximal_adjacency;
25 size_t minimal_size;
26 size_t maximal_size;
27 size_t minimal_neighbors_size;
28 size_t maximal_neighbors_size;
29 public:
33 FMTbindingspatialaction(const std::vector<int>& lneighbors,
34 const size_t& mingreenup, const size_t& maxgreenup,
35 const size_t& minadjacency, const size_t& maxadjacency,
36 const size_t& minsize, const size_t& maxsize,
37 const size_t& minnsize, const size_t& maxnsize);
38 bool isspatialybinding() const;
43 inline const std::vector<int>& getneighbors() const
44 {
45 return neighbors;
46 }
47 inline const size_t& getminimalgreenup() const
48 {
49 return minimal_green_up;
50 }
51 inline const size_t& getmaximalgreenup() const
52 {
53 return maximal_green_up;
54 }
55 inline const size_t& getminimaladjacency() const
56 {
57 return minimal_adjacency;
58 }
59 inline const size_t& getmaximaladjacency() const
60 {
61 return maximal_adjacency;
62 }
63 inline const size_t& getminimalsize() const
64 {
65 return minimal_size;
66 }
67 inline const size_t& getmaximalsize() const
68 {
69 return maximal_size;
70 }
71 inline const size_t& getminimalneighborsize() const
72 {
73 return minimal_neighbors_size;
74 }
75 inline const size_t& getmaximalneighborsize() const
76 {
77 return maximal_neighbors_size;
78 }
79 };
80
81
82
83}
84#endif
Definition: FMTbindingspatialaction.hpp:19
const size_t & getmaximalsize() const
Definition: FMTbindingspatialaction.hpp:67
const size_t & getmaximalgreenup() const
Definition: FMTbindingspatialaction.hpp:51
const size_t & getminimalgreenup() const
Definition: FMTbindingspatialaction.hpp:47
const size_t & getminimaladjacency() const
Definition: FMTbindingspatialaction.hpp:55
const size_t & getmaximaladjacency() const
Definition: FMTbindingspatialaction.hpp:59
const std::vector< int > & getneighbors() const
Definition: FMTbindingspatialaction.hpp:43
const size_t & getminimalsize() const
Definition: FMTbindingspatialaction.hpp:63
FMTbindingspatialaction(const FMTbindingspatialaction &rhs)=default
const size_t & getmaximalneighborsize() const
Definition: FMTbindingspatialaction.hpp:75
FMTbindingspatialaction & operator=(const FMTbindingspatialaction &rhs)=default
const size_t & getminimalneighborsize() const
Definition: FMTbindingspatialaction.hpp:71
FMTbindingspatialaction(const std::vector< int > &lneighbors, const size_t &mingreenup, const size_t &maxgreenup, const size_t &minadjacency, const size_t &maxadjacency, const size_t &minsize, const size_t &maxsize, const size_t &minnsize, const size_t &maxnsize)
The spatial namespace provides classes for spatialy explicit simulation/optimization based on raster ...
Definition: FMTareaparser.hpp:36