FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTDevelopmentPath.h
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 FMTdevelopmentpath_Hm_included
9#define FMTdevelopmentpath_Hm_included
10
11
12#include <memory>
13#include "FMTutility.h"
14#include "FMTDevelopment.h"
15
16namespace Core
17{
18
19class FMTMask;
20
21// DocString: FMTDevelopmentPath
26 {
27 public:
28 // DocString: FMTDevelopmentPath()
33 // DocString: FMTDevelopmentPath::operator=
39 FMTDevelopmentPath& operator = (const FMTDevelopmentPath& rhs)=default;
40 // DocString: FMTDevelopmentPath(const FMTDevelopmentPath&)
46 // DocString: ~FMTDevelopmentPath()
51 // DocString: FMTDevelopmentPath::getDevelopment
57 // DocString: FMTDevelopmentPath::getDevelopmentReference
63 // DocString: FMTDevelopmentPath::getProportion
68 double getProportion() const;
69 // DocString: FMTDevelopmentPath::setProportion
74 void setProportion(double p_proportion);
75 // DocString: FMTDevelopmentPath(const FMTMask&,int,int,int,double)
85 int p_age, int p_lock, int p_period,double p_proportion);
86 private:
87 FMTDevelopment m_development;
88 double m_proportion;
89 };
90}
91
92
93#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Development path holding a generated development and the proportion of area going to it.
Definition: FMTDevelopmentPath.h:26
FMTDevelopmentPath()
Default constructor for FMTDevelopmentPath.
~FMTDevelopmentPath()=default
Default destructor for FMTDevelopmentPath.
const FMTDevelopment & getDevelopment() const
Get the new development.
FMTDevelopmentPath(const FMTMask &p_mask, int p_age, int p_lock, int p_period, double p_proportion)
Construct a development path from a mask, an age, a lock, a period and a proportion.
double getProportion() const
Get the proportion of area going to this dev.
FMTDevelopmentPath(const FMTDevelopmentPath &rhs)=default
Copy constructor for FMTDevelopmentPath.
void setProportion(double p_proportion)
Set the proportion of area going to this development.
FMTDevelopment & getDevelopmentReference()
Get the new development.
Base class of FMTActualDevelopment and FMTFuturDevelopment representing a forest stand.
Definition: FMTDevelopment.h:44
Core class holding, as a boost dynamic bitset, which theme attributes are part of a mask.
Definition: FMTMask.h:96
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34