FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMToperatingareaclusterbinary.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#ifdef FMTWITHOSI
9
10#ifndef FMToperatingareaclusterbinary_H_INCLUDED
11#define FMToperatingareaclusterbinary_H_INCLUDED
12
13#include <boost/serialization/serialization.hpp>
14#include <boost/serialization/nvp.hpp>
15#include <boost/serialization/export.hpp>
16#include "FMToperatingarea.hpp"
17
18
19namespace Core
20{
21 class FMToutput;
22}
23
24namespace Heuristics
25{
26// DocString: FMToperatingareaclusterbinary
33 {
34 friend class boost::serialization::access;
35 // DocString: FMToperatingareaclusterbinary:serialize
39 template<class Archive>
40 void serialize(Archive& ar, const unsigned int version)
41 {
42 ar & boost::serialization::make_nvp("operatingarea", boost::serialization::base_object<FMToperatingarea>(*this));
43 ar & BOOST_SERIALIZATION_NVP(variable);
44 ar & BOOST_SERIALIZATION_NVP(statistic);
45 }
46 // DocString: FMToperatingareaclusterbinary::variable
48 int variable;
49 // DocString: FMToperatingareaclusterbinary::statistic
51 double statistic;
52 public:
53 // DocString: FMToperatingareaclusterbinary::FMToperatingareaclusterbinary()
58 // DocString: FMToperatingareaclusterbinary::FMToperatingareaclusterbinary(const FMToperatingareaclusterbinary&)
63 // DocString: FMToperatingareaclusterbinary::operator=
68 // DocString: FMToperatingareaclusterbinary::~FMToperatingareaclusterbinary()
73 // DocString: FMToperatingareaclusterbinary::FMToperatingareaclusterbinary(const FMToperatingarea&)
78 // DocString: FMToperatingareaclusterbinary::filterneighbors
83 std::vector<FMToperatingareaclusterbinary> filterneighbors(std::vector<FMToperatingareaclusterbinary> potentiallink) const;
84 // DocString: FMToperatingareaclusterbinary::getoutputintersect
90 const std::vector<Core::FMTtheme>& themes) const;
91 // DocString: FMToperatingareaclusterbinary::setstatistic
95 void setstatistic(const double& statvalue);
96 // DocString: FMToperatingareaclusterbinary::setstatistic
100 void setvariable(const int& lvariable);
101 // DocString: FMToperatingareaclusterbinary::getvariable
105 inline const int& getvariable() const
106 {
107 return variable;
108 }
109 // DocString: FMToperatingareaclusterbinary::getstatistic
113 inline const double& getstatistic() const
114 {
115 return statistic;
116 }
117
118 };
119
120}
121BOOST_CLASS_EXPORT_KEY(Heuristics::FMToperatingareaclusterbinary)
122#endif
123#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMToutput.hpp:39
Definition: FMToperatingarea.hpp:29
Definition: FMToperatingareaclusterbinary.hpp:33
FMToperatingareaclusterbinary(const FMToperatingarea &oparea)
std::vector< FMToperatingareaclusterbinary > filterneighbors(std::vector< FMToperatingareaclusterbinary > potentiallink) const
FMToperatingareaclusterbinary(const FMToperatingareaclusterbinary &)=default
void setvariable(const int &lvariable)
Core::FMToutput getoutputintersect(const Core::FMToutput &output, const std::vector< Core::FMTtheme > &themes) const
void setstatistic(const double &statvalue)
const int & getvariable() const
Definition: FMToperatingareaclusterbinary.hpp:105
const double & getstatistic() const
Definition: FMToperatingareaclusterbinary.hpp:113
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
Namespace regrouping all tools for solving LP/MIP problems using an heuristic.
Definition: FMTareaparser.hpp:43