FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Heuristics::FMToperatingareacluster Class Reference

#include <FMToperatingareacluster.hpp>

Public Member Functions

 FMToperatingareacluster ()=default
 
 FMToperatingareacluster (const FMToperatingareaclusterbinary &localcentroid, const std::vector< FMToperatingareaclusterbinary > &neighborsbinaries)
 
 FMToperatingareacluster (const FMToperatingareacluster &basecluster, const double &lminimalarea, const double &lmaximalarea)
 
 FMToperatingareacluster (const FMToperatingareacluster &)=default
 
FMToperatingareaclusteroperator= (const FMToperatingareacluster &)=default
 
 ~FMToperatingareacluster ()=default
 
const FMToperatingareaclusterbinarygetbinary (const Core::FMTmask &mask) const
 
FMToperatingareaclusterbinary getcentroid () const
 
std::vector< FMToperatingareaclusterbinarygetbinaries () const
 
int getmaximalobjectivevariable () const
 
int getminimalobjectivevariable () const
 
double getminimalarea () const
 
double getmaximalarea () const
 
double getmaximalstats () const
 
double getrealminimalarea () const
 
double getrealmaximalarea () const
 
double gettotalpotentialarea () const
 
bool isvalidarea (const double &area) const
 
void setmaximalobjectivevariable (const int &lmaxvar)
 
void setminimalobjectivevariable (const int &lminvar)
 
void setminimalarea (const double &newminimalarea)
 
void setmaximalarea (const double &newmaximalarea)
 
bool isvalidareabounds () const
 
FMToperatingareacluster getfilteredcluster (const Core::FMTmask &filtermask) const
 
std::vector< Core::FMTmaskgetallmasks () const
 

Friends

class boost::serialization::access
 

Detailed Description

FMToperatingareacluster represent a potential cluster of multiple operating area. Each operating area is represented by a FMToperatingareaclusterbinary (binaries). The centroid of the potential cluster is also represented by a FMToperatingareaclusterbinary (centroid). If the centroid clusterbinary is active then the cluster is considered active.

Constructor & Destructor Documentation

◆ FMToperatingareacluster() [1/4]

Heuristics::FMToperatingareacluster::FMToperatingareacluster ( )
default

FMToperatingareacluster default constructor.

◆ FMToperatingareacluster() [2/4]

Heuristics::FMToperatingareacluster::FMToperatingareacluster ( const FMToperatingareaclusterbinary localcentroid,
const std::vector< FMToperatingareaclusterbinary > &  neighborsbinaries 
)

FMToperatingareacluster main constructor taking the (localcentroid) and (neighborsbinaries) has arguments, it's a non complete constructor.

◆ FMToperatingareacluster() [3/4]

Heuristics::FMToperatingareacluster::FMToperatingareacluster ( const FMToperatingareacluster basecluster,
const double &  lminimalarea,
const double &  lmaximalarea 
)

FMToperatingareacluster constructor taking an already builded FMToperatingareacluster (basecluster) and an minimal area (lminimalarea) and a maximal area (lmaximalarea), this is a complete constructor.

◆ FMToperatingareacluster() [4/4]

Heuristics::FMToperatingareacluster::FMToperatingareacluster ( const FMToperatingareacluster )
default

FMToperatingareacluster default copy constructor.

◆ ~FMToperatingareacluster()

Heuristics::FMToperatingareacluster::~FMToperatingareacluster ( )
default

FMToperatingareacluster default destructor.

Member Function Documentation

◆ getallmasks()

std::vector< Core::FMTmask > Heuristics::FMToperatingareacluster::getallmasks ( ) const

Returns all the mask contained by the cluster including the operating area centroid.

◆ getbinaries()

std::vector< FMToperatingareaclusterbinary > Heuristics::FMToperatingareacluster::getbinaries ( ) const
inline

Getter for the binaries vector member data.

◆ getbinary()

const FMToperatingareaclusterbinary & Heuristics::FMToperatingareacluster::getbinary ( const Core::FMTmask mask) const

Returns the corresponding binary const reference of the cluster corresponding to the given (mask).

◆ getcentroid()

FMToperatingareaclusterbinary Heuristics::FMToperatingareacluster::getcentroid ( ) const
inline

Getter for cluster centroid binary.

◆ getfilteredcluster()

FMToperatingareacluster Heuristics::FMToperatingareacluster::getfilteredcluster ( const Core::FMTmask filtermask) const

Base on a given mask the function is going to remove any binary that does not fell in the mask definition. It can reduce the size of the binaries.

◆ getmaximalarea()

double Heuristics::FMToperatingareacluster::getmaximalarea ( ) const

Get the maximal area of the potential cluster considering the number of binaries in the cluster.

◆ getmaximalobjectivevariable()

int Heuristics::FMToperatingareacluster::getmaximalobjectivevariable ( ) const
inline

Getter for the maximal objective variable.

◆ getmaximalstats()

double Heuristics::FMToperatingareacluster::getmaximalstats ( ) const

Get maximal stats for the whole cluster.

◆ getminimalarea()

double Heuristics::FMToperatingareacluster::getminimalarea ( ) const

Get the minimal area of the potential cluster considering the number of binaries in the cluster.

◆ getminimalobjectivevariable()

int Heuristics::FMToperatingareacluster::getminimalobjectivevariable ( ) const
inline

Getter for the minimal objective variable.

◆ getrealmaximalarea()

double Heuristics::FMToperatingareacluster::getrealmaximalarea ( ) const
inline

Getter for the maximalarea.

◆ getrealminimalarea()

double Heuristics::FMToperatingareacluster::getrealminimalarea ( ) const
inline

Getter for the minimalarea.

◆ gettotalpotentialarea()

double Heuristics::FMToperatingareacluster::gettotalpotentialarea ( ) const

Get the maximal potential area of the cluster.

◆ isvalidarea()

bool Heuristics::FMToperatingareacluster::isvalidarea ( const double &  area) const

Check if the (area) is a valid area for the cluster (between bounds).

◆ isvalidareabounds()

bool Heuristics::FMToperatingareacluster::isvalidareabounds ( ) const

Validate is the minimal and maximal area used by the user respect the binaries present in the cluster.

◆ operator=()

FMToperatingareacluster & Heuristics::FMToperatingareacluster::operator= ( const FMToperatingareacluster )
default

FMToperatingareacluster default copy assignment.

◆ setmaximalarea()

void Heuristics::FMToperatingareacluster::setmaximalarea ( const double &  newmaximalarea)

Set the potential maximal area of the cluster.

◆ setmaximalobjectivevariable()

void Heuristics::FMToperatingareacluster::setmaximalobjectivevariable ( const int &  lmaxvar)

Set the maximal objective variable of the cluster.

◆ setminimalarea()

void Heuristics::FMToperatingareacluster::setminimalarea ( const double &  newminimalarea)

Set the minimal area of the cluster.

◆ setminimalobjectivevariable()

void Heuristics::FMToperatingareacluster::setminimalobjectivevariable ( const int &  lminvar)

Set the minimal objective variable of the cluster.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

The documentation for this class was generated from the following file: