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

#include <FMTactualdevelopment.hpp>

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

Public Member Functions

 FMTactualdevelopment ()
 
 ~FMTactualdevelopment ()=default
 
 FMTactualdevelopment (const FMTactualdevelopment &rhs)
 
 FMTactualdevelopment (const FMTmask &mask, const int &age, const int &lock, const double &area)
 
 FMTactualdevelopment (const FMTdevelopment &rhs, double larea)
 
FMTactualdevelopmentoperator= (const FMTactualdevelopment &rhs)
 
bool operator== (const FMTactualdevelopment &rhs) const
 
bool operator!= (const FMTactualdevelopment &rhs) const
 
bool operator< (const FMTactualdevelopment &rhs) const
 
 operator std::string () const override
 
double getarea () const override
 
void setarea (const double &newarea)
 
std::unique_ptr< FMTdevelopmentClone () const override
 
FMTactualdevelopment presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &presolvedthemes) const
 
FMTactualdevelopment reducelocktodeath (const FMTlifespans &lifespans) const
 
- Public Member Functions inherited from Core::FMTdevelopment
int getage () const
 
int getlock () const
 
int getperiod () const
 
const Core::FMTmaskgetmask () const
 
Core::FMTmask getmaskcopy () const
 
void setage (const int &lage)
 
void setlock (const int &llock)
 
void setperiod (const int &lperiod)
 
void setmask (const Core::FMTmask &lmask)
 
 FMTdevelopment ()
 
virtual ~FMTdevelopment ()=default
 
 FMTdevelopment (const FMTmask &mask, const int &age, const int &lock)
 
 FMTdevelopment (const FMTmask &lmask, const int &lage, const int &llock, const int &lperiod)
 
 FMTdevelopment (const FMTdevelopment &rhs)
 
virtual std::unique_ptr< FMTdevelopmentClone () const
 
FMTdevelopmentoperator= (const FMTdevelopment &rhs)
 
bool operator== (const FMTdevelopment &rhs) const
 
bool operator!= (const FMTdevelopment &rhs) const
 
bool operator< (const FMTdevelopment &rhs) const
 
FMTfuturdevelopment grow () const
 
FMTyieldrequest getyieldrequest (const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
bool operable (const FMTaction &action, const Core::FMTyields &ylds, const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
bool anyoperable (const std::vector< const FMTaction * > &actions, const Core::FMTyields &ylds, const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
virtual operator std::string () const
 
virtual double getarea () const
 
FMTdevelopment clearlock () const
 
std::vector< FMTdevelopmentpathoperate (const FMTaction &action, const FMTtransition &Transition, const Core::FMTyields &ylds, const std::vector< FMTtheme > &themes) const
 
double getinventorycoef (const Core::FMTyields &ylds, const std::string &target_yield, const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
double getharvestcoef (const std::vector< FMTdevelopmentpath > &topaths, const FMTaction &action, const Core::FMTyields &ylds, const std::string &target_yield, const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
bool is (const FMTspec &specification, const Core::FMTyields &ylds, const Graph::FMTgraphvertextoyield *graphyieldrequest=nullptr) const
 
bool worthtestingoperability (const FMTaction &action) const
 
std::vector< int > anyworthtestingoperability (const std::vector< const FMTaction * > &actions, const FMTaction &firstaction) const
 
std::vector< bool > isanyworthtestingoperability (const std::vector< const FMTaction * > &actions, const std::vector< FMTaction > &allactions) const noexcept
 
size_t hash () const
 
- Public Member Functions inherited from Core::FMTobject
 FMTobject ()
 
virtual ~FMTobject ()
 
 FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler)
 
 FMTobject (const FMTobject &rhs)
 
FMTobjectoperator= (const FMTobject &rhs)
 
virtual void passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger)
 
void passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler)
 
void redirectlogtofile (const std::string &location)
 
virtual void setdefaultlogger ()
 
virtual void setquietlogger ()
 
virtual void settasklogger ()
 
virtual void setdebuglogger ()
 
void setdefaultexceptionhandler ()
 
void setquietexceptionhandler ()
 
void setdebugexceptionhandler ()
 
void setfreeexceptionhandler ()
 
void disablenestedexceptions ()
 
void enablenestedexceptions ()
 
void seterrorstowarnings (const std::vector< Exception::FMTexc > &errors)
 
void setmaxwarningsbeforesilenced (const size_t &maxwarningcount)
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Static Public Member Functions inherited from Core::FMTobject
static std::string getruntimelocation ()
 
static unsigned long long getavailablememory ()
 
- Protected Member Functions inherited from Core::FMTobject
template<class Archive >
void forcesave (Archive &ar, const unsigned int version) const
 
template<class Archive >
void forceload (Archive &ar, const unsigned int version)
 
void checksignals () const
 
void setCPLhandler ()
 
- Static Protected Member Functions inherited from Core::FMTobject
static std::chrono::time_point< std::chrono::high_resolution_clock > getclock ()
 
template<class chrono >
static double getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock)
 
static std::string getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock)
 
- Static Protected Attributes inherited from Core::FMTobject
static std::shared_ptr< Exception::FMTexceptionhandler_exhandler
 A shared pointer to the exception handler.
 
static std::shared_ptr< Logging::FMTlogger_logger
 A shared pointer to the logger.
 

Detailed Description

FMTactualdevelopement is the child class of FMTdevelopement. It stands for the representation of an actual forest stand so it holds the amount of area of this stand as a member variable.

Constructor & Destructor Documentation

◆ FMTactualdevelopment() [1/4]

Core::FMTactualdevelopment::FMTactualdevelopment ( )

Default constructor for FMTactualdevelopement

◆ ~FMTactualdevelopment()

Core::FMTactualdevelopment::~FMTactualdevelopment ( )
default

Default destructor for FMTactualdevelopement.

◆ FMTactualdevelopment() [2/4]

Core::FMTactualdevelopment::FMTactualdevelopment ( const FMTactualdevelopment rhs)

FMTactualdevelopement copy constructor.

◆ FMTactualdevelopment() [3/4]

Core::FMTactualdevelopment::FMTactualdevelopment ( const FMTmask mask,
const int &  age,
const int &  lock,
const double &  area 
)

FMTactualdevelopement constructor using a FMTmask the age and the lock level period and the area of the FMTactualdevelopment.

◆ FMTactualdevelopment() [4/4]

Core::FMTactualdevelopment::FMTactualdevelopment ( const FMTdevelopment rhs,
double  larea 
)

FMTactualdevelopement constructor using a FMTdevelopment and an area.

Member Function Documentation

◆ Clone()

std::unique_ptr< FMTdevelopment > Core::FMTactualdevelopment::Clone ( ) const
overridevirtual

Return a unique_ptr of FMTdevelopment of the FMTactualdevelopement.

Reimplemented from Core::FMTdevelopment.

◆ getarea()

double Core::FMTactualdevelopment::getarea ( ) const
overridevirtual

Returns the area of the FMTactualdevelopement.

Reimplemented from Core::FMTdevelopment.

◆ operator std::string()

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

Returns the string reprensentation of a FMTactualdevelopment like in the area section.

Reimplemented from Core::FMTdevelopment.

◆ operator!=()

bool Core::FMTactualdevelopment::operator!= ( const FMTactualdevelopment rhs) const

FMTactualdevelopement nonequality operator.

◆ operator<()

bool Core::FMTactualdevelopment::operator< ( const FMTactualdevelopment rhs) const

FMTactualdevelopment less than operator.

◆ operator=()

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

FMTactualdevelopement copy assignment.

◆ operator==()

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

FMTactualdevelopement equality operator.

◆ presolve()

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

Will presolve the FMTactualdevelopment using the FMTdevelopement::presolve() function.

◆ reducelocktodeath()

FMTactualdevelopment Core::FMTactualdevelopment::reducelocktodeath ( const FMTlifespans lifespans) const

This function check if the actualdevelopement lifespan is shorter than the lock present in area section. If not so, it raise the error FMTdeathwithlock and if the error is set to warning, it returns a FMTactualdevelopment with the lock reduced accordingly. If the lifespan is shorter than the lock, it returns a copy of itself. This is mainly use in FMTmodel::setarea.

◆ setarea()

void Core::FMTactualdevelopment::setarea ( const double &  newarea)

Set the newarea has the area of the FMTactualdevelopement.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialize function is for serialization, used to do multiprocessing across multiple cpus (pickle in Pyhton)


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