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

#include <FMTtransitionmask.hpp>

Inheritance diagram for Core::FMTtransitionmask:
[legend]
Collaboration diagram for Core::FMTtransitionmask:
[legend]

Public Member Functions

 FMTtransitionmask ()
 
 ~FMTtransitionmask ()=default
 
 FMTtransitionmask (const std::string &lmask, const std::vector< FMTtheme > &themes, const double &lproportion)
 
FMTmask trans (const FMTmask &basemask) const
 
 FMTtransitionmask (const FMTtransitionmask &rhs)
 
 FMTtransitionmask (const FMTtransitionmask &rhs, const FMTmask &lmask, const std::vector< FMTtheme > &themes)
 
FMTtransitionmaskoperator= (const FMTtransitionmask &rhs)
 
FMTdevelopment disturb (const Core::FMTdevelopment &dev, const FMTyields &yields, const std::vector< FMTtheme > &themes, const bool &reset_age) const
 
std::map< std::string, std::string > get (const std::vector< FMTtheme > &themes) const
 
bool operator== (const FMTtransitionmask &rhs) const
 
double getproportion () const
 
FMTmask getmask () const
 
void setmask (const Core::FMTmask &mtmask)
 
void setproportion (double newproportion)
 
FMTtransitionmask presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &presolvedthemes) const
 
 operator std::string () const override
 
- Public Member Functions inherited from Core::FMTmaskfilter
 FMTmaskfilter ()
 
virtual ~FMTmaskfilter ()=default
 
 FMTmaskfilter (const FMTmaskfilter &rhs)
 
FMTmaskfilteroperator= (const FMTmaskfilter &rhs)
 
 FMTmaskfilter (const FMTmask &presolveselection, const FMTmask &buffermask)
 
 FMTmaskfilter (const FMTmask &presolveselection)
 
 FMTmaskfilter (std::vector< FMTmask > &masks)
 
 FMTmaskfilter (std::vector< FMTmask > &masks, const std::vector< FMTtheme > &themes)
 
FMTmask filter (const FMTmask &devmask) const
 
void swap (FMTmaskfilter &rhs)
 
FMTmaskfilter presolve (const std::vector< FMTtheme > &themes) const
 
bool canpresolve (const FMTmask &mask, const std::vector< Core::FMTtheme > &themes) const
 
std::vector< Core::FMTthemegetselectedthemes (const std::vector< Core::FMTtheme > &themes) const
 
bool emptyflipped () const
 
bool empty () const
 
size_t hash () const
 
- Public Member Functions inherited from Core::FMTspec
 FMTspec ()
 
virtual ~FMTspec ()=default
 
 FMTspec (const FMTspec &rhs)
 
FMTspecoperator= (const FMTspec &rhs)
 
bool add (const FMTspec &rhs)
 
bool setbounds (const FMTperbounds &bound)
 
bool addbounds (const FMTagebounds &bound)
 
bool addbounds (const FMTyldbounds &bound)
 
bool addbounds (const FMTlockbounds &bound)
 
bool allowwithoutyield (const int &tperiod, const int &tage, const int &tlock) const
 
const FMTyldboundsgetyieldbound (const std::string &name) const
 
bool allowyields (const std::vector< double > &values) const
 
bool allow (const int &tperiod, const int &tage, const int &tlock, const std::vector< double > &values) const
 
const std::vector< std::string > & getylds () const
 
const std::vector< FMTyldbounds > & getyldbounds () const
 
virtual operator std::string () const
 
bool operator== (const FMTspec &rhs) const
 
bool operator< (const FMTspec &rhs) const
 
size_t hash () const
 
bool empty () const
 
bool emptyage () const
 
bool emptyylds () const
 
bool emptyperiod () const
 
bool emptylock () const
 
int getageupperbound () const
 
int getagelowerbound () const
 
int getperiodupperbound () const
 
int getperiodlowerbound () const
 
int getlockupperbound () const
 
int getlocklowerbound () const
 
bool issubsetof (const FMTspec &rhs) const
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Attributes inherited from Core::FMTmaskfilter
boost::dynamic_bitset selection
 
boost::dynamic_bitset flippedselection
 
- Protected Attributes inherited from Core::FMTspec
FMTperbounds per
 Period bounds so lower >= period <= upper.
 
FMTagebounds age
 Age bounds so lower >= age <= upper.
 
FMTlockbounds lock
 Lock bounds so lower >= lock <= upper.
 
std::vector< std::string > yieldnames
 The names of each yield in the vector of yieldbounds.
 
std::vector< FMTyldboundsyieldbounds
 the yields bounds vector lower>=y1<=upper,lower>=y2<=upper
 

Constructor & Destructor Documentation

◆ FMTtransitionmask() [1/4]

Core::FMTtransitionmask::FMTtransitionmask ( )

◆ ~FMTtransitionmask()

Core::FMTtransitionmask::~FMTtransitionmask ( )
default

◆ FMTtransitionmask() [2/4]

Core::FMTtransitionmask::FMTtransitionmask ( const std::string &  lmask,
const std::vector< FMTtheme > &  themes,
const double &  lproportion 
)

◆ FMTtransitionmask() [3/4]

Core::FMTtransitionmask::FMTtransitionmask ( const FMTtransitionmask rhs)

◆ FMTtransitionmask() [4/4]

Core::FMTtransitionmask::FMTtransitionmask ( const FMTtransitionmask rhs,
const FMTmask lmask,
const std::vector< FMTtheme > &  themes 
)

Member Function Documentation

◆ disturb()

FMTdevelopment Core::FMTtransitionmask::disturb ( const Core::FMTdevelopment dev,
const FMTyields yields,
const std::vector< FMTtheme > &  themes,
const bool &  reset_age 
) const

◆ get()

std::map< std::string, std::string > Core::FMTtransitionmask::get ( const std::vector< FMTtheme > &  themes) const

◆ getmask()

FMTmask Core::FMTtransitionmask::getmask ( ) const

◆ getproportion()

double Core::FMTtransitionmask::getproportion ( ) const

◆ operator std::string()

Core::FMTtransitionmask::operator std::string ( ) const
overridevirtual

Returns the string reprensentation of the FMTspec like _age >= lower and _Age <= upper and ....

Reimplemented from Core::FMTspec.

◆ operator=()

FMTtransitionmask & Core::FMTtransitionmask::operator= ( const FMTtransitionmask rhs)

◆ operator==()

bool Core::FMTtransitionmask::operator== ( const FMTtransitionmask rhs) const

◆ presolve()

FMTtransitionmask Core::FMTtransitionmask::presolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  presolvedthemes 
) const

◆ setmask()

void Core::FMTtransitionmask::setmask ( const Core::FMTmask mtmask)

◆ setproportion()

void Core::FMTtransitionmask::setproportion ( double  newproportion)

◆ trans()

FMTmask Core::FMTtransitionmask::trans ( const FMTmask basemask) const

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: